/* Fuentes personalizadas */
@font-face {
    font-family: 'Conthrax';
    src: url('../assets/fonts/Conthrax-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Francy';
    src: url('../assets/fonts/Francy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comodo';
    src: url('../assets/fonts/Comodo-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "calt" 1;
}

/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #239089;
    --secondary-color: #42a8a1;
    --accent-color: #5dc1b9;
    --accent-light: #8ae0db;
    --accent-pastel: #b5ffff;
    --dark-color: #1A1A1A;
    --light-color: #FFFFFF;
    --gray-color: #666666;
    --light-gray: #F8F8F8;
    --font-family-body: 'Francy', Georgia, serif;
    --font-family-titles: 'Comodo', Arial, sans-serif;
    --font-family-nav: 'Francy', Georgia, serif;
    
    /* Light mode colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F4F6;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border-color: #E5E7EB;
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #1A1A1A;
    --bg-secondary: #2D2D2D;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --border-color: #404040;
}

/* Dark mode specific styles */
[data-theme="dark"] .about {
    background: var(--bg-secondary);
}

[data-theme="dark"] .about[id="about"] {
    background: var(--bg-secondary);
}

[data-theme="dark"] .about-text h2 {
    color: #000000;
}

[data-theme="dark"] .about-text p {
    color: #000000;
}

[data-theme="dark"] .about[id="servicios"] .about-text h2 {
    color: #ffffff;
}

[data-theme="dark"] .about[id="servicios"] .about-text p {
    color: #ffffff;
}

[data-theme="dark"] .hero {
    background-color: var(--light-color);
}

[data-theme="dark"] .recent-work {
    background: #222;
}

[data-theme="dark"] .reviews {
    background: #222;
}

/* Barras paralelas decorativas - ELIMINADAS */
.parallel-bars {
    display: none !important;
}

.parallel-bar {
    display: none !important;
}

/* Animaciones eliminadas - barras paralelas ya no existen */

html {
    background: var(--bg-secondary);
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-size: auto !important;
}

body {
    font-family: var(--font-family-body) !important;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: var(--bg-secondary);
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-size: auto !important;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

/* Títulos con fuente Francy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-titles) !important;
    font-weight: normal;
    line-height: 1.2;
}

/* Espaciado de caracteres en títulos h2 */
h2 {
    letter-spacing: 0.1em;
}

/* Navegación con fuente Francy */
header nav ul li a,
.mobile-nav a,
.desktop-nav a,
nav a {
    font-family: var(--font-family-nav) !important;
}

/* Asegurar que todos los elementos usen nuestras fuentes sobre TailwindCSS */
* {
    font-family: inherit;
}

p, span, div, button, input, textarea, label {
    font-family: var(--font-family-body) !important;
    letter-spacing: 0.02em;
}

/* Override agresivo para TailwindCSS */
.text-lowercase, .lowercase {
    text-transform: none !important;
}

.capitalize, .text-capitalize {
    text-transform: none !important;
}

/* Asegurar que el texto respete las mayúsculas y minúsculas originales */
body, p, .about-text p, .about-description,
.review-text, .testimonial p, .experience-description,
.hero-description, .service-description, 
.portfolio-description, .content-text {
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
    font-feature-settings: normal !important;
    letter-spacing: 0.02em;
}

/* Reglas específicas para la sección about */
.about-text p,
.about p,
section.about p {
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
    font-feature-settings: normal !important;
    text-rendering: optimizeLegibility !important;
}

/* Reglas base para fuentes personalizadas */
* {
    font-variant-ligatures: normal;
    font-variant-caps: normal;
    font-variant-numeric: normal;
    font-variant-alternates: normal;
    font-variant-east-asian: normal;
}

/* Forzar mayúsculas y minúsculas originales en todo el contenido de texto */
body, p, div, span, article, section, main, aside,
.about-text p, .about p, section#about .about-text p,
.review-text, .testimonial p, .experience-description,
.hero-description, .service-description, 
.portfolio-description, .content-text {
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
    font-feature-settings: "c2sc" 0, "smcp" 0, "pcap" 0, "c2pc" 0, "unic" 0, "titl" 0 !important;
    text-rendering: optimizeLegibility !important;
}

/* Reglas muy específicas para todos los párrafos con problemas de mayúsculas */
section#about .about-text p,
section#servicios .about-text p,
.about-text p {
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
    font-feature-settings: normal !important;
    text-rendering: auto !important;
    font-synthesis: none !important;
    -webkit-font-feature-settings: normal !important;
    -moz-font-feature-settings: normal !important;
}

/* Fuerza específica para elementos con clase y texto específico */
p:first-letter {
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.about .container {
    padding: 0 100px;
}

/* Header - Tailwind styles */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    transition: all 0.3s ease;
}

header nav ul li a {
    transition: color 0.3s ease;
    text-decoration: none;
}

header nav ul li a:hover {
    color: var(--accent-color) !important;
}

/* Theme Toggle Switch */
.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-input {
    display: none;
}

.theme-toggle-label {
    cursor: pointer;
    display: block;
}

.theme-toggle-track {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.theme-icon-light,
.theme-icon-dark {
    font-size: 12px;
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-icon-light {
    opacity: 1;
    transform: scale(1);
}

.theme-icon-dark {
    opacity: 0;
    transform: scale(0);
}

/* Dark mode state */
.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-track {
    background: var(--primary-color);
}

.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-thumb {
    transform: translateX(30px);
}

.theme-toggle-input:checked + .theme-toggle-label .theme-icon-light {
    opacity: 0;
    transform: scale(0);
}

.theme-toggle-input:checked + .theme-toggle-label .theme-icon-dark {
    opacity: 1;
    transform: scale(1);
}

/* Light mode state (default) */
.theme-toggle-input:not(:checked) + .theme-toggle-label .theme-toggle-track {
    background: var(--accent-color);
}

.theme-toggle-input:not(:checked) + .theme-toggle-label .theme-toggle-thumb {
    transform: translateX(0);
}

.theme-toggle-input:not(:checked) + .theme-toggle-label .theme-icon-light {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle-input:not(:checked) + .theme-toggle-label .theme-icon-dark {
    opacity: 0;
    transform: scale(0);
}

/* Hover effects */
.theme-toggle-label:hover .theme-toggle-track {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle-label:hover .theme-toggle-thumb {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    max-height: 80vh;
    background-color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Asegurar fondo sólido sin elementos decorativos */
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    transition: background-color 0.3s ease;
}

/* Eliminar cualquier elemento decorativo no deseado */
.hero * {
    background-image: none !important;
}

.hero::before,
.hero::after {
    display: none !important;
}

/* Eliminar cualquier línea o elemento blanco */
.hero *[style*="white"],
.hero *[style*="255, 255, 255"] {
    display: none !important;
}

/* Asegurar que no hay elementos decorativos */
.hero .particle,
.hero .decoration,
.hero .line {
    display: none !important;
}

.hero-content {
    text-align: center;
    color: var(--light-color);
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}



@keyframes blink {
    0%, 50% { border-right-color: var(--accent-color); }
    51%, 100% { border-right-color: transparent; }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Carrusel Mejorado */
.hero-carousel-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    padding: 0 60px;
}

.hero-carousel {
    position: relative;
    width: 80%;
    max-width: 900px;
    height: 65vh;
    margin: 80px auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    backface-visibility: hidden;
}

/* Efectos de parallax durante la transición */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(35, 144, 137, 0.1), 
        rgba(93, 193, 185, 0.1), 
        rgba(138, 224, 219, 0.05)
    );
    opacity: 0;
    transition: opacity 0.8s ease;
    border-radius: 20px;
    z-index: 1;
}

.carousel-slide.active::before {
    opacity: 0.2;
}



.carousel-controls {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.carousel-dot {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.carousel-dot::before {
    display: none !important;
}

.carousel-dot:hover::before {
    display: none !important;
}

.carousel-dot.active {
    display: none !important;
}

.carousel-dot:hover {
    display: none !important;
}

/* Botones de navegación del carrusel hero - OCULTOS */
.hero-carousel-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hero-carousel-btn::before {
    display: none !important;
}

.hero-carousel-btn:hover::before {
    display: none !important;
}

.hero-carousel-btn:hover {
    display: none !important;
}

.hero-carousel-btn:active {
    display: none !important;
}

.hero-carousel-btn.prev-btn {
    display: none !important;
}

.hero-carousel-btn.next-btn {
    display: none !important;
}

.hero-carousel-btn:disabled {
    display: none !important;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

/* About Me Section (alternate background) */
.about[id="about"] {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    justify-items: center;
}

.about-image {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.about-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: block;
}

.about-text {
    max-width: 500px;
}

.about-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: 0.1em !important;
    color: var(--text-primary);
    transition: all 0.3s ease;
	text-align: center;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-align: justify;
}

.signature {
    margin-top: 40px;
}

.signature img {
    width: 80px;
    height: auto;
    opacity: 0.7;
}

.signature-placeholder {
    width: 80px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 5px;
    opacity: 0.7;
    font-size: 16px;
    letter-spacing: 2px;
}

/* Recent Work Section */
.recent-work {
    padding: 120px 0;
    background: #f0f0f0;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 0.1em !important;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}

/* Crear un layout masonry mejorado */
.work-item {
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    /* Mejorar performance en animaciones */
    will-change: transform;
    backface-visibility: hidden;
}

/* Elementos destacados más grandes */
.work-item:nth-child(1) {
    grid-row: span 2;
    grid-column: span 2;
}

.work-item:nth-child(5) {
    grid-row: span 2;
}

.work-item:nth-child(9) {
    grid-row: span 2;
}

.work-item:nth-child(13) {
    grid-column: span 2;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Kaizen Content Section (Always Dark) */
.content-kaizen,
#content-preview {
    padding: 120px 0;
    background: #222 !important; /* Always dark */
    color: #FFFFFF !important; /* Always light text */
    transition: background-color 0.3s ease;
}

.content-kaizen .section-title,
#content-preview .section-title {
    color: #FFFFFF !important; /* Always light text */
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 15px;
    /* Mejorar la calidad de imagen en escalas */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.work-item:hover img {
    transform: scale(1.05);
}

/* Overlay sutil para mejorar legibilidad */
.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(35, 144, 137, 0.1), rgba(93, 193, 185, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    z-index: 1;
}

.work-item:hover::before {
    opacity: 1;
}

/* Estilos adicionales para pantallas grandes */
@media (min-width: 1200px) {
    .work-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1400px;
        gap: 25px;
    }
    
    .work-item:nth-child(7) {
        grid-column: span 2;
    }
    
    .work-item:nth-child(11) {
        grid-row: span 2;
    }
}

/* Optimizaciones para pantallas ultra amplias */
@media (min-width: 1600px) {
    .work-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 1600px;
        gap: 30px;
    }
    
    .work-item:nth-child(3) {
        grid-row: span 2;
    }
    
    .work-item:nth-child(8) {
        grid-column: span 2;
    }
}

/* Experiences Section */
.experiences {
    padding: 120px 0 120px 100px;
    background: var(--dark-color);
    color: var(--light-color);
}

.experiences-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.experience-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.experience-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    font-family: var(--font-family-body);
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.stat-number[data-symbol]::before {
    content: attr(data-symbol);
}

#kaizen-logo-section {
    background: #1A1A1A !important;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-style: italic;
    transition: all 0.3s ease;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.author-images {
    display: flex;
    gap: 10px;
}

.author-images img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--dark-color);
    color: var(--light-color);
}

.contact-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -2px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--light-color);
    font-family: var(--font-family-body);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    padding: 20px;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 10px;
    font-family: var(--font-family-body);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.contact-form button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Modal para imágenes */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y pinch-zoom;
}

/* Botones de navegación del modal */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(35, 144, 137, 0.8);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(35, 144, 137, 0.9);
}

.modal-nav-btn:hover {
    background: rgba(35, 144, 137, 1);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--accent-color);
}

.modal-nav-btn.prev-btn {
    left: 30px;
}

.modal-nav-btn.next-btn {
    right: 30px;
}

.modal-nav-btn:disabled {
    /* Botones siempre habilitados para carrusel infinito */
    opacity: 1;
    cursor: pointer;
    transform: translateY(-50%) scale(1);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.modal-close {
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

/* Indicador de swipe para móviles */
.image-modal::after {
    content: '← Desliza para navegar →';
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 10003;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Mostrar indicador solo en móviles */
@media (max-width: 768px) {
    .image-modal::after {
        opacity: 1;
    }
    
    /* Ocultar indicador después de 3 segundos */
    .image-modal.show-swipe-hint::after {
        opacity: 0;
    }
}




    
    /* Modal navigation buttons responsive */
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .modal-nav-btn.prev-btn {
        left: 20px;
    }
    
    .modal-nav-btn.next-btn {
        right: 20px;
    }
    
    /* Modal responsive improvements for mobile */
    .image-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
        border-radius: 8px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }

/* Footer */
.footer {
    background: var(--bg-secondary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.footer-top {
    background: #000000;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: #000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
}

.logo-globe {
    font-size: 20px;
    margin-bottom: 2px;
}

.logo-image {
    width: 800px;
    height: auto;
    object-fit: contain;
    margin-bottom: 2px;
}

/* Logo de Kaizen en navegación */
nav ul li a img[src*="kaizenblanco"] {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

[data-theme="light"] nav ul li a img[src*="kaizenblanco"] {
    filter: brightness(0) invert(0);
}

/* Logo principal IANSINFILM - Control por tema */
.logo-container {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-light,
.logo-dark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    height: auto;
    width: auto;
    max-height: 120px;
    max-width: 450px;
    object-fit: contain;
}

/* Por defecto mostrar logo blanco (dark mode) */
.logo-light {
    opacity: 0;
}

.logo-dark {
    opacity: 1;
}

/* Modo light: mostrar logo negro, ocultar blanco */
[data-theme="light"] .logo-light {
    opacity: 1 !important;
}

[data-theme="light"] .logo-dark {
    opacity: 0 !important;
}

/* Modo dark: mostrar logo blanco, ocultar negro */
[data-theme="dark"] .logo-light {
    opacity: 0 !important;
}

[data-theme="dark"] .logo-dark {
    opacity: 1 !important;
}

.logo-text {
    font-size: 8px;
    text-align: center;
    line-height: 1;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    background: #000000;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}

.contact-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

.site-credit {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .experiences-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        margin: 0;
        box-shadow: none;
        background: var(--bg-primary);
    }
    
    .container {
        padding: 0 15px;
    }
    
    .about .container {
        padding: 0 20px;
    }
    
    header {
        padding: 15px 20px;
    }
    
    .logo-image {
        width: 100%;
        max-width: 400px;
    }
    
    /* Logo principal más pequeño en tablet */
    .logo-container {
        height: 100px;
    }
    
    .logo-light,
    .logo-dark {
        max-height: 100px;
        max-width: 350px;
    }
    
    header nav ul {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    header nav ul li a {
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 15px;
        background: var(--bg-secondary);
        transition: all 0.3s ease;
    }
    
    header nav ul li a:hover {
        background: var(--primary-color);
        color: white !important;
    }
    
    /* Toggle de tema más pequeño */
    .theme-toggle-container {
        margin-top: 15px;
    }
    
    .theme-toggle-track {
        width: 50px;
        height: 25px;
    }
    
    .theme-toggle-thumb {
        width: 21px;
        height: 21px;
    }
    
    .theme-toggle-input:checked + .theme-toggle-label .theme-toggle-thumb {
        transform: translateX(25px);
    }
    
    /* Hero section optimizado para tablet */
    .hero {
        min-height: 60vh;
        max-height: 70vh;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-image {
        width: 300px;
        height: 400px;
    }
    
    /* Hero carousel responsive */
    .hero-carousel {
        width: 85%;
        max-width: 500px;
        height: 50vh;
        margin: 60px auto;
        border-radius: 15px;
    }
    
    .hero-carousel-container {
        padding: 0 20px;
    }
    
    /* Ajustar botones del carrusel en tablet */
    .hero-carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        opacity: 0.8;
    }
    
    .hero-carousel-btn.prev-btn {
        left: 10px;
    }
    
    .hero-carousel-btn.next-btn {
        right: 10px;
    }
    
    .carousel-controls {
        margin-top: 20px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
    
    /* Secciones About optimizadas */
    .about {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-text {
        padding: 0 10px;
        margin: 0 auto;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
        line-height: 1.2;
        letter-spacing: 0.1em !important;
    }
    
    .about-text p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-image img {
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
        line-height: 1.2;
        letter-spacing: 0.1em !important;
    }
    
    /* Galería de trabajo optimizada */
    .recent-work {
        padding: 60px 0;
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 15px;
        margin-top: 30px;
        max-width: 100%;
    }
    
    /* Reset de elementos destacados para tablet */
    .work-item:nth-child(1) {
        grid-row: span 2;
        grid-column: span 2;
    }
    
    .work-item:nth-child(5) {
        grid-row: span 1;
        grid-column: span 1;
    }
    
    .work-item:nth-child(9) {
        grid-row: span 1;
        grid-column: span 1;
    }
    
    .work-item:nth-child(13) {
        grid-column: span 2;
    }
    
    .work-item {
        border-radius: 12px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .work-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }
    
    .work-item img {
        transition: transform 0.3s ease;
        border-radius: 12px;
    }
    
    .work-item:hover img {
        transform: scale(1.05);
    }
    
    /* Sección de experiencias */
    .experiences {
        padding: 60px 0;
    }
    
    .experiences-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .experience-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .experience-image img {
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    
    .experience-stats {
        display: flex;
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stat {
        justify-content: center;
        text-align: center;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    /* Footer optimizado */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo img {
        max-width: 300px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }
    
    .site-credit {
        position: static;
        transform: none;
        font-size: 14px;
    }
    
    .social-icons {
        gap: 20px;
        justify-content: center;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        transition: transform 0.3s ease;
    }
    
    .social-icon:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    /* Layout base para móviles */
    .page-wrapper {
        margin: 0;
        box-shadow: none;
        background: var(--bg-primary);
    }
    
    .container {
        padding: 0 12px;
    }
    
    .about .container {
        padding: 0 15px;
    }
    
    /* Header móvil */
    header {
        padding: 12px 15px;
    }
    
    /* Logo principal más pequeño en móvil */
    .logo-container {
        height: 80px;
    }
    
    .logo-light,
    .logo-dark {
        max-height: 80px;
        max-width: 280px;
    }
    
    header nav ul {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    header nav ul li a {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .theme-toggle-container {
        margin-top: 12px;
    }
    
    .theme-toggle-track {
        width: 45px;
        height: 22px;
    }
    
    .theme-toggle-thumb {
        width: 18px;
        height: 18px;
    }
    
    .theme-toggle-input:checked + .theme-toggle-label .theme-toggle-thumb {
        transform: translateX(23px);
    }
    
    .logo-image {
        width: 100%;
        max-width: 280px;
    }
    
    /* Hero móvil optimizado */
    .hero {
        min-height: 50vh;
        max-height: 60vh;
        padding: 15px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        width: 250px;
        height: 350px;
    }
    
    /* Hero carousel mobile */
    .hero-carousel {
        width: 92%;
        max-width: 350px;
        height: 40vh;
        margin: 40px auto;
        border-radius: 12px;
    }
    
    .hero-carousel-container {
        padding: 0 15px;
    }
    
    /* Ocultar botones del carrusel en móvil para mejor experiencia táctil */
    .hero-carousel-btn {
        display: none;
    }
    
    .carousel-controls {
        margin-top: 15px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    .carousel-dot.active {
        transform: scale(1.5);
    }
    
    /* Mejorar transiciones en móvil */
    .carousel-slide {
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .carousel-slide.active img {
        transform: scale(1.01);
    }
    
    /* Secciones About móvil */
    .about {
        padding: 30px 0;
        margin: 0;
    }
    
    .about-content {
        gap: 20px;
    }
    
    .about-text {
        padding: 0 20px;
        margin: 0 auto;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        line-height: 1.1;
        letter-spacing: 0.1em !important;
    }
    
    .about-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .about-image {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .about-image img {
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        line-height: 1.1;
        letter-spacing: 0.1em !important;
    }
    
    /* Galería móvil mejorada */
    .recent-work {
        padding: 40px 0;
        margin: 0;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 20px;
        margin-top: 25px;
        max-width: 100%;
        padding: 0 5px;
    }
    
    /* Reset completo de elementos destacados para móvil */
    .work-item:nth-child(1),
    .work-item:nth-child(5),
    .work-item:nth-child(9),
    .work-item:nth-child(13) {
        grid-row: span 1;
        grid-column: span 1;
    }
    
    /* Hacer algunos elementos ligeramente más altos para variedad */
    .work-item:nth-child(3n+1) {
        grid-row: span 1;
    }
    
    .work-item {
        border-radius: 12px;
        min-height: 220px;
    }
    
    .work-item img {
        border-radius: 12px;
    }
    
    /* Mejorar espaciado y efectos hover en móvil */
    .work-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
    
    .work-item:hover img {
        transform: scale(1.02);
    }
    

    /* Experiencias móvil */
    .experiences {
        padding: 20px 0;
        margin: 0;
    }
    
    .experiences-content {
        gap: 20px;
    }
    
    .experience-image {
        max-width: 300px;
    }
    
    .experience-image img {
        border-radius: 10px;
    }
    
    .experience-stats {
        gap: 25px;
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        min-width: auto;
        width: 100px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* Footer móvil */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-top {
        gap: 20px;
    }
    
    .footer-logo img {
        max-width: 250px;
    }
    
    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
        gap: 12px;
    }
    
    .site-credit {
        font-size: 12px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Modal navigation buttons mobile */
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .modal-nav-btn.prev-btn {
        left: 15px;
    }
    
    .modal-nav-btn.next-btn {
        right: 15px;
    }
    
    /* Modal improvements for very small screens */
    .image-modal {
        padding: 5px;
    }
    
    .modal-content {
        max-width: 98%;
        max-height: 80%;
        border-radius: 6px;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* Animaciones adicionales */
.work-item,
.about-image,
.experience-image,
.about-text,
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animación solo cuando se activa */
.work-item.animate,
.about-image.animate,
.experience-image.animate,
.about-text.animate,
.section-title.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.work-item:nth-child(1) { animation-delay: 0.1s; }
.work-item:nth-child(2) { animation-delay: 0.2s; }
.work-item:nth-child(3) { animation-delay: 0.3s; }
.work-item:nth-child(4) { animation-delay: 0.4s; }
.work-item:nth-child(5) { animation-delay: 0.5s; }
.work-item:nth-child(6) { animation-delay: 0.6s; }
.work-item:nth-child(7) { animation-delay: 0.7s; }
.work-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Eliminar todos los contornos de focus */
button:focus,
input:focus,
textarea:focus,
a:focus,
.hamburger-btn:focus,
.mobile-menu-close:focus {
    outline: none !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Floating Contact Bubble */
.contact-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-bubble:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.contact-bubble svg {
    width: 30px;
    height: 30px;
    color: white;
}

.contact-form-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 280px;
    background-color: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 998;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.contact-form-widget.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.contact-form-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-form-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.contact-form-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 40px;
    margin-right: 40px;
}

.contact-form-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-form-close:active {
    transform: scale(0.95);
}

.contact-form-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form-widget input,
.contact-form-widget textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-family-body);
    font-size: 13px;
}

.contact-form-widget input:focus,
.contact-form-widget textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form-widget button {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 6px;
    font-family: var(--font-family-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form-widget button:hover {
    background: var(--accent-color);
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid;
    overflow: hidden;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    border-left-color: var(--primary-color);
}

.toast-notification.error {
    border-left-color: #e74c3c;
}

.toast-content {
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.toast-notification.success .toast-icon {
    background: var(--primary-color);
}

.toast-notification.error .toast-icon {
    background: #e74c3c;
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.toast-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* Progress bar for auto-dismiss */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: left;
    animation: toast-progress 4s linear forwards;
}

.toast-notification.success .toast-progress {
    background: var(--primary-color);
}

.toast-notification.error .toast-progress {
    background: #e74c3c;
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
    
    .toast-content {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .toast-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .toast-title {
        font-size: 14px;
    }
    
    .toast-description {
        font-size: 12px;
    }
}

/* Dark mode support */
[data-theme="dark"] .toast-notification {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Textarea container and character counter */
.textarea-container {
    position: relative;
    width: 100%;
}

.textarea-container textarea {
    resize: none;
    width: 100%;
    padding: 10px;
    padding-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-family-body);
    font-size: 13px;
    min-height: 100px;
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.danger {
    color: #ef4444;
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
    .contact-bubble {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
    }
    
    .contact-bubble svg {
        width: 26px;
        height: 26px;
    }
    
    .contact-form-widget {
        width: 260px;
        right: 20px;
        bottom: 90px;
    }
    
    .contact-form-header {
        padding: 10px 14px;
    }
    
    .contact-form-header h3 {
        font-size: 15px;
    }
    
    .contact-form-close {
        width: 40px !important;
        height: 40px;
        font-size: 26px;
        font-weight: bold;
        font-family: Arial, sans-serif;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 40px;
        margin-right: 40px;
    }
    
    .contact-form-body {
        padding: 14px;
        gap: 10px;
    }
    
    .contact-form-widget input {
        padding: 8px;
        font-size: 12px;
    }
    
    .textarea-container textarea {
        padding: 8px;
        padding-bottom: 25px;
        font-size: 12px;
        min-height: 80px;
    }
    
    .char-counter {
        font-size: 10px;
        bottom: 6px;
        right: 8px;
    }
    
    .contact-form-widget button {
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .contact-bubble {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .contact-bubble svg {
        width: 24px;
        height: 24px;
    }
    
    .contact-form-widget {
        width: calc(100vw - 40px);
        max-width: 280px;
        right: 20px;
        bottom: 80px;
    }
    
    .contact-form-header {
        padding: 8px 12px;
    }
    
    .contact-form-header h3 {
        font-size: 14px;
    }
    
    .contact-form-close {
        width: 36px !important;
        height: 36px;
        font-size: 24px;
        font-weight: bold;
        font-family: Arial, sans-serif;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 40px;
        margin-right: 40px;
    }
    
    .contact-form-body {
        padding: 12px;
        gap: 8px;
    }
    
    .contact-form-widget input {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .textarea-container textarea {
        padding: 6px 8px;
        padding-bottom: 22px;
        font-size: 11px;
        min-height: 70px;
    }
    
    .char-counter {
        font-size: 9px;
        bottom: 4px;
        right: 6px;
    }
    
    .contact-form-widget button {
        padding: 6px;
        font-size: 12px;
    }
}

/* Optimizaciones específicas para página Kaizen */
@media (max-width: 768px) {
    .kaizen-hero {
        min-height: 50vh;
        padding: 40px 20px;
    }
    
    .kaizen-description {
        max-width: 100%;
        margin: 1.5rem auto;
        font-size: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .kaizen-hero {
        min-height: 40vh;
        padding: 30px 15px;
    }
    
    .kaizen-description {
        margin: 1rem auto;
        font-size: 14px;
        line-height: 1.6;
        padding: 0 5px;
    }
}

/* ===== MENÚ HAMBURGUESA MÓVIL ===== */

/* Header container */
.header-container {
    position: relative;
}

/* Botón hamburguesa - oculto por defecto */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    backdrop-filter: blur(10px);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Eliminamos la transformación a X - el hamburger se mantiene igual cuando se activa */

/* Eliminar contornos y efectos hover en todos los elementos interactivos */
*, *:focus, *:hover, *:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

button, a, input, textarea, select {
    outline: none !important;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button:focus, button:hover, button:active,
a:focus, a:hover, a:active,
.hamburger-btn:focus, .hamburger-btn:hover, .hamburger-btn:active,
.mobile-menu-close:focus, .mobile-menu-close:hover, .mobile-menu-close:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Menú móvil lateral */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

/* Ocultar botón hamburguesa cuando el menú está abierto */
body.menu-open .hamburger-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mobile-menu-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

.mobile-nav {
    margin-top: 60px;
    flex: 1;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 15px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-nav a:hover {
    background: var(--bg-secondary);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* Enlace especial de Kaizen en index.html */
.mobile-nav .kaizen-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 20px 15px;
}

.mobile-nav .kaizen-link img {
    width: 80px;
    height: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
}

.mobile-nav .kaizen-link:hover a {
    background: var(--accent-color);
    transform: translateX(5px);
}

/* Indicador de página actual en kaizen.html */
.mobile-nav .kaizen-current {
    padding: 15px 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.mobile-nav .kaizen-current span {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.mobile-nav .kaizen-current small {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Toggle de tema en móvil */
.mobile-theme-toggle {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-theme-toggle .theme-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Overlay para cerrar el menú */
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 100%;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
}

.mobile-menu.active::before {
    left: 0;
    opacity: 1;
    visibility: visible;
}

/* Mejoras generales de accesibilidad táctil */
@media (max-width: 768px) {
    /* Mostrar menú hamburguesa y ocultar navegación desktop */
    .hamburger-btn {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    /* Ajustar header para el botón hamburguesa */
    .header-container {
        position: relative;
    }
    
    /* Logo centrado sin solaparse con hamburguesa */
    .logo-container {
        margin-top: 60px;
        margin-bottom: 20px;
    }
    
    /* Botones más grandes para tocar */
    button, .btn, a.btn {
        min-height: 15px;
        min-width: 15px;
    }
    
    /* Espaciado mejorado para elementos interactivos */
    .work-item {
        margin-bottom: 8px;
    }
    
    /* Scroll suave en móviles */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevenir zoom en inputs en iOS */
    input[type="text"],
    input[type="email"], 
    textarea {
        font-size: 16px !important;
    }
}

/* ===== EFECTO DE DEGRADADO DE SALIDA PARA TODAS LAS SECCIONES ===== */
.section-fade-out {
    transition: opacity 0.3s ease-out;
}

/* Asegurar que las secciones tengan opacidad inicial completa y transiciones suaves */
.about,
.recent-work,
.experiences,
.reviews,
.footer {
    opacity: 1 !important;
    transition: opacity 0.4s ease-out !important;
    will-change: opacity;
    /* Prevenir que otras animaciones interfieran con la opacidad */
    animation-fill-mode: forwards;
}

/* Asegurar que el hero también tenga transiciones suaves */
.hero {
    transition: opacity 0.4s ease-out !important;
    will-change: opacity;
    /* Prevenir que otras animaciones interfieran con la opacidad */
    animation-fill-mode: forwards;
}

/* Media query para usuarios que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .section-fade-out,
    .about,
    .recent-work,
    .experiences,
    .reviews,
    .footer,
    .hero {
        transition: none !important;
    }
}



 