/* Skip Link - Accesibilidad */
.skip-link:focus {
    top: 0 !important;
}

/* Forzar ocultar cursor en toda la página - SOLO EN DESKTOP */
@media (hover: hover) and (pointer: fine) {
    html, body {
        cursor: none !important;
    }
}

/* ==================== FORGE LOADER ==================== */
.forge-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 50%, #0f0f1e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.forge-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.forge-container {
    position: relative;
    width: 320px;
    height: 280px;
    margin-bottom: 40px;
}

@keyframes floorGlow {
    0%, 48% {
        opacity: 0.3;
        transform: translateX(-50%) scale(0.9);
    }
    52% {
        opacity: 1;
        transform: translateX(-50%) scale(1.3);
    }
    65% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }
}

/* Chispas que caen al suelo */
.falling-sparks {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    pointer-events: none;
}

.falling-spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #ffcc00 0%, #ff8800 50%, #ff4400 100%);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 
        0 0 3px #ffaa00,
        0 0 6px rgba(255, 136, 0, 0.6);
}

.falling-spark-1 { left: 20%; animation: sparkFall1 1.2s ease-in 0s infinite; }
.falling-spark-2 { left: 35%; animation: sparkFall2 1.2s ease-in 0s infinite; }
.falling-spark-3 { left: 50%; animation: sparkFall3 1.2s ease-in 0s infinite; }
.falling-spark-4 { left: 65%; animation: sparkFall4 1.2s ease-in 0s infinite; }
.falling-spark-5 { left: 80%; animation: sparkFall5 1.2s ease-in 0s infinite; }
.falling-spark-6 { left: 45%; animation: sparkFall6 1.2s ease-in 0s infinite; }

@keyframes sparkFall1 {
    0%, 52% { opacity: 0; top: 0; transform: scale(0); }
    54% { opacity: 1; top: 0; transform: scale(1); }
    70% { opacity: 0.8; top: 25px; }
    100% { opacity: 0; top: 55px; transform: scale(0.3); }
}

@keyframes sparkFall2 {
    0%, 52% { opacity: 0; top: 0; transform: scale(0); }
    55% { opacity: 1; top: 0; transform: scale(0.8); }
    72% { opacity: 0.7; top: 22px; }
    100% { opacity: 0; top: 50px; transform: scale(0.2); }
}

@keyframes sparkFall3 {
    0%, 52% { opacity: 0; top: 0; transform: scale(0); }
    53% { opacity: 1; top: 0; transform: scale(1.2); }
    68% { opacity: 0.9; top: 28px; }
    100% { opacity: 0; top: 58px; transform: scale(0.4); }
}

@keyframes sparkFall4 {
    0%, 52% { opacity: 0; top: 0; transform: scale(0); }
    56% { opacity: 1; top: 0; transform: scale(0.9); }
    74% { opacity: 0.75; top: 24px; }
    100% { opacity: 0; top: 52px; transform: scale(0.25); }
}

@keyframes sparkFall5 {
    0%, 52% { opacity: 0; top: 0; transform: scale(0); }
    54% { opacity: 1; top: 0; transform: scale(0.7); }
    70% { opacity: 0.65; top: 20px; }
    100% { opacity: 0; top: 48px; transform: scale(0.2); }
}

@keyframes sparkFall6 {
    0%, 52% { opacity: 0; top: 0; transform: scale(0); }
    53% { opacity: 1; top: 0; transform: scale(1.1); }
    66% { opacity: 0.85; top: 30px; }
    100% { opacity: 0; top: 60px; transform: scale(0.35); }
}

/* Yunque Hiper-Realista */
.anvil {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
}

/* Superficie de trabajo del yunque (cara superior) */
.anvil-top {
    width: 140px;
    height: 28px;
    background: 
        linear-gradient(180deg, 
            #6a6a7a 0%,
            #5a5a6a 5%,
            #4a4a5a 15%,
            #3a3a4a 50%,
            #2a2a3a 85%,
            #1a1a2a 100%
        );
    border-radius: 3px 3px 0 0;
    margin: 0 auto;
    position: relative;
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.2),
        inset 0 -2px 8px rgba(0, 0, 0, 0.4),
        inset 4px 0 8px rgba(255, 255, 255, 0.1),
        inset -4px 0 8px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Marcas de uso en la superficie */
.anvil-top::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.2) 70%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
    border-radius: 1px;
}

/* Cuerno del yunque (lado izquierdo) */
.anvil-top::after {
    content: '';
    position: absolute;
    top: 8px;
    left: -25px;
    width: 35px;
    height: 12px;
    background: 
        linear-gradient(180deg,
            #5a5a6a 0%,
            #4a4a5a 30%,
            #3a3a4a 70%,
            #2a2a3a 100%
        );
    border-radius: 8px 0 0 8px;
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* Cuerpo principal del yunque */
.anvil-body {
    width: 90px;
    height: 50px;
    background: 
        linear-gradient(180deg, 
            #3a3a4a 0%,
            #2a2a3a 20%,
            #252535 40%,
            #1a1a2a 70%,
            #151525 100%
        );
    margin: 0 auto;
    position: relative;
    box-shadow: 
        inset 4px 0 10px rgba(255, 255, 255, 0.05),
        inset -4px 0 10px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(0, 0, 0, 0.5),
        4px 0 10px rgba(0, 0, 0, 0.3),
        -4px 0 10px rgba(0, 0, 0, 0.3);
}

/* Textura del cuerpo */
.anvil-body::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 4px,
        rgba(0, 0, 0, 0.1) 4px,
        rgba(0, 0, 0, 0.1) 5px
    );
    opacity: 0.5;
}

/* Agujero para herramientas */
.anvil-body::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #0a0a15 0%, #1a1a2a 100%);
    border-radius: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Base del yunque */
.anvil-base {
    width: 110px;
    height: 25px;
    background: 
        linear-gradient(180deg, 
            #2a2a3a 0%,
            #1a1a2a 30%,
            #151525 60%,
            #0a0a1a 100%
        );
    margin: 0 auto;
    border-radius: 0 0 6px 6px;
    position: relative;
    box-shadow: 
        inset 0 3px 8px rgba(0, 0, 0, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.8),
        0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Patas del yunque */
.anvil-base::before,
.anvil-base::after {
    content: '';
    position: absolute;
    bottom: -15px;
    width: 25px;
    height: 18px;
    background: 
        linear-gradient(180deg,
            #2a2a3a 0%,
            #1a1a2a 50%,
            #0a0a1a 100%
        );
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.anvil-base::before {
    left: 15px;
}

.anvil-base::after {
    right: 15px;
}

/* Pieza de metal caliente sobre el yunque - Hiper-Realista */
.hot-metal {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 14px;
    background: 
        radial-gradient(ellipse at 30% 50%,
            #fff8e0 0%,
            #ffee88 10%,
            #ffdd44 20%,
            #ffaa00 35%,
            #ff8800 50%,
            #ff6600 65%,
            #ee4400 80%,
            #cc2200 90%,
            #991100 100%
        );
    border-radius: 4px;
    box-shadow: 
        0 0 10px #ffdd00,
        0 0 20px #ffaa00,
        0 0 35px #ff6600,
        0 0 50px rgba(255, 102, 0, 0.8),
        0 0 70px rgba(255, 68, 0, 0.6),
        0 0 100px rgba(255, 34, 0, 0.4),
        inset 0 0 10px rgba(255, 255, 200, 0.5);
    animation: metalGlow 1.2s ease-in-out infinite;
    position: relative;
}

/* Textura del metal caliente */
.hot-metal::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    right: 5px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 220, 0.6) 20%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 220, 0.6) 80%,
        transparent 100%
    );
    border-radius: 2px;
    filter: blur(1px);
}

/* Escamas de óxido en los bordes */
.hot-metal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 50%, rgba(100, 50, 0, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(80, 40, 0, 0.25) 0%, transparent 15%),
        radial-gradient(circle at 85% 70%, rgba(90, 45, 0, 0.2) 0%, transparent 18%);
    border-radius: 4px;
}

@keyframes metalGlow {
    0%, 48% {
        box-shadow: 
            0 0 8px #ffcc00,
            0 0 16px #ffaa00,
            0 0 28px #ff6600,
            0 0 40px rgba(255, 102, 0, 0.6),
            0 0 55px rgba(255, 68, 0, 0.4),
            0 0 80px rgba(255, 34, 0, 0.3),
            inset 0 0 8px rgba(255, 255, 200, 0.4);
        filter: brightness(0.9);
        transform: translateX(-50%) scale(1);
    }
    52% {
        box-shadow: 
            0 0 25px #ffff00,
            0 0 45px #ffcc00,
            0 0 70px #ff8800,
            0 0 100px rgba(255, 136, 0, 1),
            0 0 130px rgba(255, 102, 0, 0.9),
            0 0 170px rgba(255, 68, 0, 0.7),
            inset 0 0 25px rgba(255, 255, 255, 0.9);
        filter: brightness(1.5);
        transform: translateX(-50%) scale(1.05);
    }
    60% {
        box-shadow: 
            0 0 18px #ffee00,
            0 0 35px #ffbb00,
            0 0 55px #ff7700,
            0 0 80px rgba(255, 119, 0, 0.85),
            0 0 110px rgba(255, 85, 0, 0.65),
            0 0 140px rgba(255, 51, 0, 0.45),
            inset 0 0 18px rgba(255, 255, 220, 0.7);
        filter: brightness(1.25);
        transform: translateX(-50%) scale(1.02);
    }
    100% {
        box-shadow: 
            0 0 8px #ffcc00,
            0 0 16px #ffaa00,
            0 0 28px #ff6600,
            0 0 40px rgba(255, 102, 0, 0.6),
            0 0 55px rgba(255, 68, 0, 0.4),
            0 0 80px rgba(255, 34, 0, 0.3),
            inset 0 0 8px rgba(255, 255, 200, 0.4);
        filter: brightness(0.9);
        transform: translateX(-50%) scale(1);
    }
}

/* Martillo Hiper-Realista */
.hammer {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-30%) rotate(-50deg);
    transform-origin: 85% 90%;
    animation: hammerStrike 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.6));
}

.hammer-head {
    width: 70px;
    height: 38px;
    background: 
        linear-gradient(175deg, 
            #8a8a9a 0%, 
            #6a6a7a 8%,
            #4a4a5a 15%,
            #5a5a6a 20%,
            #3a3a4a 40%,
            #2a2a3a 60%,
            #3a3a4a 80%,
            #1a1a2a 100%
        );
    border-radius: 4px 6px 6px 4px;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.4),
        inset 3px 0 8px rgba(255, 255, 255, 0.1),
        inset -3px 0 8px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Cara de golpe del martillo */
.hammer-head::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    width: 18px;
    height: 32px;
    background: 
        linear-gradient(180deg, 
            #7a7a8a 0%,
            #5a5a6a 20%,
            #4a4a5a 40%,
            #3a3a4a 60%,
            #4a4a5a 80%,
            #2a2a3a 100%
        );
    border-radius: 4px 0 0 4px;
    box-shadow: 
        inset 0 2px 3px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        -2px 0 6px rgba(0, 0, 0, 0.4);
}

/* Desgaste y textura del martillo */
.hammer-head::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 10px;
    right: 5px;
    height: 6px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
    );
    border-radius: 2px;
}

/* Mango de madera realista */
.hammer-handle {
    width: 16px;
    height: 120px;
    background: 
        linear-gradient(90deg,
            #5D3A1A 0%,
            #8B5A2B 15%,
            #A0522D 30%,
            #CD853F 45%,
            #A0522D 55%,
            #8B5A2B 70%,
            #6B4423 85%,
            #5D3A1A 100%
        );
    border-radius: 4px 4px 6px 6px;
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: left center;
    box-shadow: 
        inset 3px 0 6px rgba(0, 0, 0, 0.3),
        inset -3px 0 6px rgba(0, 0, 0, 0.2),
        inset 0 5px 10px rgba(0, 0, 0, 0.2),
        3px 0 8px rgba(0, 0, 0, 0.4);
}

/* Vetas de madera */
.hammer-handle::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 3px;
    right: 3px;
    bottom: 10px;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 8px,
        rgba(0, 0, 0, 0.1) 8px,
        rgba(0, 0, 0, 0.1) 10px,
        transparent 10px,
        transparent 15px,
        rgba(139, 90, 43, 0.2) 15px,
        rgba(139, 90, 43, 0.2) 16px
    );
    border-radius: 2px;
}

/* Cuña metálica donde el mango entra en la cabeza */
.hammer-handle::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 8px;
    background: linear-gradient(180deg, #4a4a5a 0%, #2a2a3a 100%);
    border-radius: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animación de golpe hiper-realista con física mejorada */
@keyframes hammerStrike {
    0% {
        transform: translateX(-30%) rotate(-50deg);
        filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.6));
    }
    /* Levantamiento - movimiento lento hacia arriba */
    15% {
        transform: translateX(-30%) rotate(-65deg) translateY(-5px);
        filter: drop-shadow(8px 15px 20px rgba(0, 0, 0, 0.5));
    }
    25% {
        transform: translateX(-30%) rotate(-75deg) translateY(-8px);
        filter: drop-shadow(10px 18px 25px rgba(0, 0, 0, 0.4));
    }
    /* Punto más alto - pausa momentánea */
    35% {
        transform: translateX(-30%) rotate(-78deg) translateY(-10px);
        filter: drop-shadow(12px 20px 28px rgba(0, 0, 0, 0.35));
    }
    /* Bajada rápida - aceleración por gravedad */
    45% {
        transform: translateX(-30%) rotate(-40deg) translateY(0px);
        filter: drop-shadow(6px 12px 18px rgba(0, 0, 0, 0.5));
    }
    /* Impacto */
    52% {
        transform: translateX(-30%) rotate(8deg) translateY(3px);
        filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.7));
    }
    /* Rebote del impacto */
    58% {
        transform: translateX(-30%) rotate(-5deg) translateY(-2px);
        filter: drop-shadow(4px 8px 12px rgba(0, 0, 0, 0.6));
    }
    /* Segundo rebote más pequeño */
    65% {
        transform: translateX(-30%) rotate(3deg) translateY(1px);
        filter: drop-shadow(3px 6px 10px rgba(0, 0, 0, 0.65));
    }
    /* Estabilización */
    75% {
        transform: translateX(-30%) rotate(-15deg) translateY(0px);
        filter: drop-shadow(4px 8px 12px rgba(0, 0, 0, 0.6));
    }
    /* Preparación para siguiente golpe */
    100% {
        transform: translateX(-30%) rotate(-50deg);
        filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.6));
    }
}

/* Chispas Hiper-Realistas */
.sparks-container {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 150px;
    pointer-events: none;
}

.spark {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffffff 0%, #ffff00 30%, #ffaa00 60%, #ff6600 100%);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 
        0 0 4px 2px #ffff00,
        0 0 8px 4px #ffaa00,
        0 0 15px 6px rgba(255, 102, 0, 0.8),
        0 0 25px 8px rgba(255, 68, 0, 0.5);
}

/* Variaciones de tamaño para chispas */
.spark-1, .spark-5, .spark-9 { width: 5px; height: 5px; }
.spark-2, .spark-6, .spark-10 { width: 3px; height: 3px; }
.spark-3, .spark-7, .spark-11 { width: 4px; height: 4px; }
.spark-4, .spark-8, .spark-12 { width: 2px; height: 2px; }

/* Animaciones sincronizadas con el impacto del martillo */
/* La animación del martillo dura 1.2s, el impacto ocurre en el 52% = 0.624s */
/* Las chispas deben aparecer en ese momento exacto */
.spark-1 { animation: sparkFly1 1.2s ease-out 0s infinite; }
.spark-2 { animation: sparkFly2 1.2s ease-out 0s infinite; }
.spark-3 { animation: sparkFly3 1.2s ease-out 0s infinite; }
.spark-4 { animation: sparkFly4 1.2s ease-out 0s infinite; }
.spark-5 { animation: sparkFly5 1.2s ease-out 0s infinite; }
.spark-6 { animation: sparkFly6 1.2s ease-out 0s infinite; }
.spark-7 { animation: sparkFly7 1.2s ease-out 0s infinite; }
.spark-8 { animation: sparkFly8 1.2s ease-out 0s infinite; }
.spark-9 { animation: sparkFly9 1.2s ease-out 0s infinite; }
.spark-10 { animation: sparkFly10 1.2s ease-out 0s infinite; }
.spark-11 { animation: sparkFly11 1.2s ease-out 0s infinite; }
.spark-12 { animation: sparkFly12 1.2s ease-out 0s infinite; }

/* Trayectorias parabólicas - Las chispas aparecen SOLO en el momento del impacto (52%) */
@keyframes sparkFly1 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(-35px, -50px) scale(0.8); }
    80% { opacity: 0.6; transform: translate(-60px, -40px) scale(0.5); }
    100% { opacity: 0; transform: translate(-80px, -10px) scale(0.1); }
}

@keyframes sparkFly2 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(-20px, -65px) scale(0.75); }
    80% { opacity: 0.5; transform: translate(-35px, -55px) scale(0.4); }
    100% { opacity: 0; transform: translate(-45px, -30px) scale(0.1); }
}

@keyframes sparkFly3 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(-8px, -70px) scale(0.85); }
    80% { opacity: 0.55; transform: translate(-12px, -60px) scale(0.45); }
    100% { opacity: 0; transform: translate(-15px, -35px) scale(0.1); }
}

@keyframes sparkFly4 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(15px, -60px) scale(0.8); }
    80% { opacity: 0.5; transform: translate(28px, -50px) scale(0.4); }
    100% { opacity: 0; transform: translate(40px, -25px) scale(0.1); }
}

@keyframes sparkFly5 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(40px, -45px) scale(0.85); }
    80% { opacity: 0.55; transform: translate(65px, -35px) scale(0.45); }
    100% { opacity: 0; transform: translate(85px, -5px) scale(0.1); }
}

@keyframes sparkFly6 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(50px, -35px) scale(0.75); }
    80% { opacity: 0.45; transform: translate(75px, -20px) scale(0.35); }
    100% { opacity: 0; transform: translate(95px, 5px) scale(0.1); }
}

@keyframes sparkFly7 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(-45px, -35px) scale(0.8); }
    80% { opacity: 0.5; transform: translate(-70px, -20px) scale(0.4); }
    100% { opacity: 0; transform: translate(-90px, 5px) scale(0.1); }
}

@keyframes sparkFly8 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(55px, -30px) scale(0.7); }
    80% { opacity: 0.4; transform: translate(80px, -15px) scale(0.3); }
    100% { opacity: 0; transform: translate(100px, 10px) scale(0.1); }
}

@keyframes sparkFly9 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(-5px, -80px) scale(0.9); }
    80% { opacity: 0.6; transform: translate(-8px, -70px) scale(0.5); }
    100% { opacity: 0; transform: translate(-10px, -45px) scale(0.1); }
}

@keyframes sparkFly10 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(25px, -55px) scale(0.75); }
    80% { opacity: 0.45; transform: translate(40px, -45px) scale(0.35); }
    100% { opacity: 0; transform: translate(55px, -20px) scale(0.1); }
}

@keyframes sparkFly11 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(-38px, -50px) scale(0.8); }
    80% { opacity: 0.5; transform: translate(-60px, -40px) scale(0.4); }
    100% { opacity: 0; transform: translate(-78px, -15px) scale(0.1); }
}

@keyframes sparkFly12 {
    0%, 50% { opacity: 0; transform: translate(0, 0) scale(0); }
    52% { opacity: 1; transform: translate(0, 0) scale(1); }
    65% { opacity: 1; transform: translate(60px, -25px) scale(0.7); }
    80% { opacity: 0.4; transform: translate(85px, -10px) scale(0.3); }
    100% { opacity: 0; transform: translate(105px, 15px) scale(0.1); }
}

/* Resplandor del metal al impacto - Hiper-Realista */
.metal-glow {
    position: absolute;
    bottom: 105px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 100px;
    background: 
        radial-gradient(ellipse 60% 40% at 50% 80%, 
            rgba(255, 200, 100, 0.5) 0%, 
            rgba(255, 150, 50, 0.35) 20%,
            rgba(255, 100, 0, 0.25) 40%, 
            rgba(255, 50, 0, 0.15) 60%,
            transparent 80%
        );
    border-radius: 50%;
    animation: glowPulse 1.2s ease-in-out infinite;
    pointer-events: none;
    filter: blur(2px);
}

/* Resplandor secundario más difuso */
.metal-glow::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -30px;
    right: -30px;
    bottom: -20px;
    background: 
        radial-gradient(ellipse 70% 50% at 50% 70%,
            rgba(255, 150, 0, 0.2) 0%,
            rgba(255, 100, 0, 0.1) 40%,
            transparent 70%
        );
    border-radius: 50%;
    filter: blur(8px);
}

/* Flash de impacto */
.metal-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, 
        rgba(255, 255, 200, 0.9) 0%,
        rgba(255, 220, 100, 0.6) 30%,
        rgba(255, 150, 0, 0.3) 60%,
        transparent 100%
    );
    border-radius: 50%;
    opacity: 0;
    animation: impactFlash 1.2s ease-out infinite;
}

@keyframes glowPulse {
    0%, 48% {
        opacity: 0.3;
        transform: translateX(-50%) scale(0.8);
    }
    52% {
        opacity: 1;
        transform: translateX(-50%) scale(1.5);
    }
    60% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
    }
    75%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes impactFlash {
    0%, 50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    52% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(2.5);
    }
    60% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(3);
    }
    75%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3.5);
    }
}

/* Humo/vapor sutil del metal caliente */
.forge-container::before {
    content: '';
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    background: 
        radial-gradient(ellipse at 50% 100%,
            rgba(200, 200, 200, 0.08) 0%,
            rgba(180, 180, 180, 0.04) 40%,
            transparent 70%
        );
    filter: blur(8px);
    animation: smokeRise 3s ease-out infinite;
    pointer-events: none;
}

@keyframes smokeRise {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    20% {
        opacity: 0.5;
    }
    60% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-60px) scale(1.5);
    }
}

/* Reflejo de luz en el suelo/base */
.forge-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    background: 
        radial-gradient(ellipse 100% 100% at 50% 0%,
            rgba(255, 100, 0, 0.15) 0%,
            rgba(255, 50, 0, 0.08) 50%,
            transparent 100%
        );
    filter: blur(5px);
    animation: floorGlow 1.2s ease-in-out infinite;
}

/* Texto de carga */
.forge-text {
    text-align: center;
    z-index: 10;
}

.forge-title {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b00, #ffaa00, #ffdd00, #ffaa00, #ff6b00);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s linear infinite;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 150, 0, 0.5);
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.forge-subtitle {
    display: block;
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 25px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Barra de carga */
.loading-bar {
    width: 250px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff6b00, #ffaa00, #ffdd00);
    border-radius: 3px;
    animation: loadingProgress 2.5s ease-in-out forwards;
    box-shadow: 0 0 10px #ff6b00, 0 0 20px rgba(255, 150, 0, 0.5);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    20% { width: 20%; }
    40% { width: 45%; }
    60% { width: 70%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

/* Partículas de fondo (humo/brasas) */
.forge-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 100, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 150, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 69, 0, 0.05) 0%, transparent 60%);
    animation: ambientGlow 3s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .forge-container {
        transform: scale(0.8);
        margin-bottom: 20px;
    }
    
    .forge-title {
        font-size: 1.8rem;
    }
    
    .forge-subtitle {
        font-size: 0.95rem;
    }
    
    .loading-bar {
        width: 200px;
    }
}
        
        
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #1a1a2e;
    --text-color: #f0f0f0;
    --accent-color: #e94560;
    --card-bg: #21213f;
    
    /* Nuevas variables para temas */
    --services-bg: #f8f8f8;
    --services-text: #333;
    --services-card-bg: #fff;
    --testimonios-bg: #f7f7f7;
    --faq-bg: #f8f8f8;
    --faq-card-bg: #fff;
    --faq-text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    transform: translateY(-5px);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

/* HEADER */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(26, 26, 46, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-link a {
    font-weight: 600;
    position: relative;
}

.nav-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-link a:hover::after {
    width: 100%;
}

.nav-link.active a::after {
    width: 100%;
}

.nav-button {
    margin-left: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
    transition: color 0.3s;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle i {
    pointer-events: none;
}

.language-selector {
    position: relative;
    margin-left: 20px;
}

.language-button {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.language-button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
    min-width: 120px;
    display: none;
    flex-direction: column;
    gap: 5px;
}

.language-selector.active .language-dropdown {
    display: flex;
}

.language-dropdown li a {
    padding: 8px 20px;
    display: block;
    color: var(--text-color);
    font-weight: 500;
    transition: background-color 0.3s;
}

.language-dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1549692520-acc6669f6e1f?q=80&w=2940&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-content h1 #heroTitle {
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 #heroTitleSpan {
    color: var(--text-color);
    -webkit-text-fill-color: var(--text-color);
    font-weight: 700;
}

.hero-content h1 #heroSubtitle {
    color: var(--text-color);
    -webkit-text-fill-color: var(--text-color);
    font-weight: 700;
    display: block;
    margin-top: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* SERVICES */
.services {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333;
}

.services h2 {
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.service-card li {
    margin-bottom: 10px;
}

.service-card li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* PROCESS */
.process {
    padding: 80px 0;
    background-color: var(--background-color);
}

.process h2 {
    color: var(--text-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.process-step {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.process-step:hover {
    transform: translateY(-10px);
}

.process-step .step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.process-step p {
    color: #ccc;
}

/* SOLICITUD */
.solicitud {
    padding: 80px 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

.solicitud h2 {
    color: #fff;
}

.solicitud-content {
    max-width: 800px;
    margin: 0 auto;
}

.solicitud p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .solicitud h2,p {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: left;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #333;
    font-size: 1rem;
    transition: background-color 0.3s;
}

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

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.solicitud button {
    width: 100%;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.solicitud button:hover {
    background-color: #c9354f;
}

/* ABOUT */
.about {
    padding: 80px 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
    padding:20px;
}

.about-content h2 {
    text-align: center;
    margin-bottom: 30px;
}

.about-content p {
    max-width: 800px;
    margin-left: auto;
    margin-right:auto;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #ccc;
    text-align: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right:auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #999;
    display: block;
}

.about-visual {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    text-align: center;
    color: #fff;
    margin-left:20px;
    margin-right:20px;
    margin-top:20px;
}

.about-visual h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* TESTIMONIOS */
.testimonios {
    padding: 80px 0;
    background-color: #f7f7f7;
    color: #333;
}

.testimonios .title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.testimonio-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-10px);
}

.testimonio-card p {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-details {
    text-align: left;
}

.author-name {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.author-title {
    font-size: 0.9rem;
    color: #777;
}

.testimony-link {
    text-align: center;
    margin-top: 30px;
}

.testimony-link .btn-primary {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}



/* FOOTER */
.footer {
    background-color: #111;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #aaa;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
    color: #777;
}

/* Estilo para ocultar los espacios en el email ofuscado */
#ofuscated-email {
    text-decoration: none; 
}

#ofuscated-email::after {
    content: attr(href); 
    display: none;
}

#ofuscated-email:hover {
    transform: none; 
}

/* FAQ Section */
.faq {
    padding: 80px 20px;
    background: #f8f8f8;
}

.faq .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2575fc;
}

.faq-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== CHATBOT ==================== */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Poppins', sans-serif;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(106, 17, 203, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(106, 17, 203, 0.6);
}

.chatbot-button.pulse {
    animation: chatbot-pulse 2s infinite;
}

@keyframes chatbot-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(106, 17, 203, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(106, 17, 203, 0.8); }
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
    animation: chatbot-open 0.3s ease;
}

@keyframes chatbot-open {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.chatbot-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chatbot-message {
    display: flex;
    gap: 10px;
    animation: message-in 0.3s ease;
}

@keyframes message-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.message-content {
    max-width: 75%;
}

.message-content p {
    margin: 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.bot-message .message-content p {
    background: white;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 4px;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: #e94560;
}

.user-message .message-content {
    display: flex;
    justify-content: flex-end;
}

.user-message .message-content p {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border-bottom-right-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #aaa;
    animation: typing-dot 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.7; }
    30% { transform: translateY(-10px); opacity: 1; }
}

.chatbot-input-form {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: #6a11cb;
}

.chatbot-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== VALIDACIÓN DE FORMULARIO ========== */
@media (max-width: 768px) {
    form {
        padding: 20px;
    }
}

.form-group {
    position: relative;
}

.input-wrapper {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.form-group.validating .validation-icon.loading {
    opacity: 1;
    color: #f59e0b;
    animation: spin 1s linear infinite;
}

.form-group.valid .validation-icon.success {
    opacity: 1;
    color: #10b981;
}

.form-group.invalid .validation-icon.error {
    opacity: 1;
    color: #ef4444;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.form-group.valid input,
.form-group.valid textarea {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.feedback-message {
    display: none;
    margin-top: 8px;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
}

.feedback-message.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-message.error {
    background-color: #fee2e2;
    color: #ef4444;
    border-left: 3px solid #ef4444;
}

.feedback-message.success {
    background-color: #f0fdf4;
    color: #10b981;
    border-left: 3px solid #10b981;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

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

.char-counter.error {
    color: #ef4444;
    font-weight: 600;
}

/* ========== MEJORAS DE ACCESIBILIDAD ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para teclado */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mejor contraste en hover */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========== DARK MODE TOGGLE ========== */
/* Variables para tema claro */
[data-theme="light"] {
    --background-color: #ffffff;
    --text-color: #1a1a2e;
    --card-bg: #f5f5f5;
    --services-bg: #f8f8f8;
    --services-text: #333;
    --services-card-bg: #fff;
    --testimonios-bg: #f7f7f7;
    --faq-bg: #f8f8f8;
    --faq-card-bg: #fff;
    --faq-text: #333;
}

/* Variables para tema oscuro */
[data-theme="dark"] {
    --background-color: #0f0f1e;
    --text-color: #f0f0f0;
    --card-bg: #1a1a2e;
    --services-bg: #1a1a2e;
    --services-text: #f0f0f0;
    --services-card-bg: #21213f;
    --testimonios-bg: #1a1a2e;
    --faq-bg: #0f0f1e;
    --faq-card-bg: #21213f;
    --faq-text: #f0f0f0;
}

/* Botón de Dark Mode */
.theme-toggle {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.6);
}

.theme-toggle i {
    transition: transform 0.5s ease;
}

.theme-toggle:active i {
    transform: rotate(360deg);
}

/* Transición suave entre temas */
body,
.services,
.testimonios,
.faq,
.service-card,
.testimonio-card,
.faq-item,
.process-step,
.about {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ajustes de secciones para tema oscuro */
[data-theme="dark"] .services {
    background-color: var(--services-bg);
    color: var(--services-text);
}

[data-theme="dark"] .services h2 {
    color: var(--text-color);
}

[data-theme="dark"] .service-card {
    background-color: var(--services-card-bg);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .service-card h3 {
    color: var(--text-color);
}

[data-theme="dark"] .service-card p {
    color: #e5e7eb;
}

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

[data-theme="dark"] .testimonios .title {
    color: var(--text-color);
}

[data-theme="dark"] .testimonio-card {
    background-color: var(--services-card-bg);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonio-card p {
    color: #e5e7eb;
}

[data-theme="dark"] .author-name {
    color: var(--text-color);
}

[data-theme="dark"] .author-title {
    color: #d1d5db;
}

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

[data-theme="dark"] .faq .section-title {
    color: var(--text-color);
}

[data-theme="dark"] .faq-item {
    background-color: var(--faq-card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .faq-item h3 {
    color: var(--secondary-color);
}

[data-theme="dark"] .faq-item p {
    color: #e5e7eb;
}

/* NUEVO - Mejora general de contraste en dark mode */
[data-theme="dark"] .about-content p,
[data-theme="dark"] .process-step p {
    color: #d1d5db;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    color: #333;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    transform: translateX(400px);
    opacity: 0;
    animation: slideIn 0.4s ease forwards;
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.hiding {
    animation: slideOut 0.4s ease forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Tipos de toast */
.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

/* Iconos */
.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

/* Contenido */
.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.toast-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Botón cerrar */
.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #333;
}

/* Barra de progreso */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    width: 100%;
    transform-origin: left;
}

.toast.success .toast-progress {
    background: #10b981;
}

.toast.error .toast-progress {
    background: #ef4444;
}

.toast.warning .toast-progress {
    background: #f59e0b;
}

.toast.info .toast-progress {
    background: #3b82f6;
}

/* Animación de la barra */
@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Dark mode */
[data-theme="dark"] .toast {
    background: #1a1a2e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .toast-title {
    color: #f0f0f0;
}

[data-theme="dark"] .toast-message {
    color: #ccc;
}

[data-theme="dark"] .toast-close {
    color: #999;
}

[data-theme="dark"] .toast-close:hover {
    background: #2a2a3e;
    color: #f0f0f0;
}

/* Hover para enlaces sociales */
a:hover {
    transform: scale(1.05);
}

/* Hover específico para WhatsApp */
a[href*="wa.me"]:hover,
a[href*="whatsapp"]:hover {
    background-color: #1ebe5d !important;
}

/* Hover específico para Instagram */
a[href*="instagram.com"]:hover {
    background: linear-gradient(135deg, #a042c2 0%, #ff2e2e 50%, #ffc157 100%) !important;
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.6);
}

/* ==================== CURSOR PERSONALIZADO ==================== */
/* Solo para dispositivos con mouse (desktop) - NO en móviles/tablets */
@media (hover: hover) and (pointer: fine) {
    /* Ocultar cursor por defecto */
    *, 
    *::before, 
    *::after,
    html,
    body,
    a,
    button,
    input,
    textarea,
    select {
        cursor: none !important;
    }

    /* Para todos los elementos interactivos */
    a, a:hover,
    button, button:hover,
    .btn, .btn:hover,
    input, input:focus,
    textarea, textarea:focus {
        cursor: none !important;
    }

    /* Cursor principal (punto pequeño) */
    .custom-cursor {
        position: fixed;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #00d4ff;
        pointer-events: none;
        z-index: 99999;
        mix-blend-mode: difference;
        transition: transform 0.05s ease;
        transform: translate(-50%, -50%);
    }

    /* Cursor secundario (círculo grande) */
    .custom-cursor-follower {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 2px solid rgba(0, 212, 255, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transition: all 0.1s ease;
        transform: translate(-50%, -50%);
    }

    /* Efecto hover */
    body.cursor-hover .custom-cursor {
        transform: translate(-50%, -50%) scale(1.5);
        background: #ff00ff;
    }

    body.cursor-hover .custom-cursor-follower {
        width: 60px;
        height: 60px;
        border-color: rgba(255, 0, 255, 0.8);
    }
}

/* Ocultar cursores personalizados en móviles/tablets */
@media (hover: none), (pointer: coarse) {
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }
    
    /* Restaurar cursor normal en móviles */
    *, *::before, *::after {
        cursor: auto !important;
    }
    
    a, button, .btn {
        cursor: pointer !important;
    }
    
    input, textarea, select {
        cursor: text !important;
    }
}

/* ==================== BANNER DE COOKIES ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    padding: 25px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    animation: slideUp 0.4s ease;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.cookie-text p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

.cookie-text a {
    color: #2575fc;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.cookie-btn-accept {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-config {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cookie-btn-config:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal de Configuración */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal-content {
    background: #1a1a2e;
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-modal-content h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.cookie-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #555;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle input {
    display: none;
}

.cookie-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    transform: translateX(24px);
}

.cookie-toggle input:checked ~ .cookie-toggle {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
}

.cookie-toggle.active {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(24px);
}

.cookie-option p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.cookie-modal-buttons button {
    flex: 1;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .mobile-menu-toggle {
        display: block;
    }

    /* Menú lateral deslizable */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        gap: 20px;
        transition: right 0.4s ease;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    /* Overlay oscuro cuando el menú está abierto */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* Ajustar header en móvil */
    .header {
        padding: 15px 0;
    }
    
    .nav-container {
        gap: 15px;
        flex-wrap: nowrap;
    }
    
    .logo {
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    /* Espaciado automático para empujar los botones a la derecha */
    nav {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    /* Botón de solicitud más pequeño en móvil */
    .nav-button {
        padding: 8px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* HERO - Más espacio arriba */
    .hero {
        min-height: 90vh;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-badges {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link a {
        font-size: 1.1rem;
        display: block;
    }

    /* Botón de solicitud en el menú móvil */
    .nav-button {
        margin: 20px 0 0 0;
        text-align: center;
        display: none;
        width: 100%;
    }

    /* Selector de idioma en móvil */
    .language-selector {
        margin: 20px auto 0;
        width: 100%;
    }

    .language-button {
        width: 100%;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .chatbot-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 150px);
        bottom: 80px;
        right: 15px;
    }
    
    .chatbot-button {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .theme-toggle {
        bottom: 160px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-modal-content {
        padding: 25px;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }

    .toast-container {
        top: auto;
        bottom: 90px;
        right: 10px;
        left: 10px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .toast {
        min-width: auto;
        max-width: none;
        margin-bottom: 10px;
    }

    a[href*="wa.me"],
    a[href*="instagram.com"],
    a[href*="mail.google.com"] {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    a[href*="wa.me"] img,
    a[href*="instagram.com"] img,
    a[href*="mail.google.com"] img {
        width: 22px;
        height: 22px;
    }
}

/* ==================== BOTÓN DE PLANTILLAS ==================== */
.templates-cta-container {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.templates-cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(106, 17, 203, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.templates-cta-text {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

[data-theme="light"] .templates-cta-text {
    color: #333;
}

.btn-templates {
    padding: 18px 40px;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #6a11cb, #2575fc, #6a11cb);
    background-size: 200% auto;
    color: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(37, 117, 252, 0.4);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
}

.btn-templates:hover {
    background-position: right center;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(106, 17, 203, 0.6);
    color: white;
}

.btn-templates i {
    transition: transform 0.4s ease;
}

.btn-templates:hover i {
    transform: rotate(15deg) scale(1.2);
}

@media (max-width: 768px) {
    .templates-cta-container {
        padding: 30px 20px;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .templates-cta-text {
        font-size: 1.2rem;
    }
    
    .btn-templates {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}
.btn-templates-hero {
    background: linear-gradient(45deg, #ff6b00, #ffaa00);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-templates-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.6);
    color: #fff;
}