/* ================================================= */
        /* 1. Variables y Estilos Generales (Farmasi Theme) */
        /* ================================================= */
        :root {
            /* PALETA PRINCIPAL (MODO CLARO PROFESIONAL: BEIGE, CAFÉ Y TAUPE) - Por defecto */
            --accent: #765D54; /* Café Profundo/Mocha (Botones CTA, Títulos) */
            --secondary: #C4A696; /* Taupe Suave/Medio (CTA Kit, Borde) */
            --primary: #e9deda; /* Fondo Secundario (Taupe Claro) */
            --text-dark: #1a1a1a; /* Negro Intenso (Texto principal) */
            --text-light: #F7F7F7; /* Blanco Suave (Texto en fondo oscuro) */
            --bg-dark: #fefaf7; /* Fondo Principal CLARO (Cream) */
            --card-bg-dark: rgba(118, 93, 84, 0.1); /* Fondo de Tarjetas CLARO (Sutil) */
            --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --shadow: 0 5px 20px rgba(118, 93, 84, 0.2); /* Sombra suave de color café */
            --gradient-bg: linear-gradient(135deg, var(--primary), var(--bg-dark));
            --particle-color: rgba(118, 93, 84, 0.5); /* Partículas oscuras en modo claro */
            --light-effect-color: rgba(118, 93, 84, 0.2); /* Efecto de luz Café */
            /* VARIABLES DE WHATSAPP */
            --whatsapp-color: var(--accent);
            --whatsapp-color-dark: var(--secondary); /* Taupe Suave para el hover */
            --whatsapp-pulse-color: rgba(118, 93, 84, 1.0); /* Máxima intensidad */
        }

        /* Modo Oscuro (Se activa con la clase .light-mode en JS) */
        body.light-mode {
            /* PALETA INVERTIDA (MODO OSCURO COHERENTE: CAFÉ OSCURO Y BEIGE CLARO) */
            --accent: #D8C0B7; /* Light Taupe (Accent CTA/Titles) */
            --secondary: #4A3B37; /* Darker Mocha (Kit CTA) */
            --primary: #2B2421; /* Medium Dark Taupe (Secondary background) */
            --text-dark: #F7F7F7; /* Light Text */
            --text-light: #1a1a1a; /* Dark Text */
            --bg-dark: #1D1715; /* Deep Charcoal Brown (Main Background) */
            --card-bg-dark: rgba(255, 255, 255, 0.08); /* Card Background Dark (Subtle White) */
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.6); /* Dark Shadow */
            --gradient-bg: linear-gradient(135deg, var(--secondary), var(--bg-dark));
            --particle-color: rgba(255, 255, 255, 0.5); /* Light particles */
            --light-effect-color: rgba(216, 192, 183, 0.2); /* Light Taupe Effect */

            /* Ajustes para WhatsApp en modo Oscuro */
            --whatsapp-color: var(--accent); /* Light Taupe */
            --whatsapp-color-dark: #FFFFFF;
            --whatsapp-pulse-color: rgba(216, 192, 183, 1.0); /* Light Taupe Pulse (Full intensity) */
        }

        body.light-mode .menu-toggle span {
            background-color: var(--text-dark); 
        }

        body.light-mode .theme-toggle i {
            color: var(--text-dark); 
        }
        
        body.light-mode .menu-mobile a {
            color: var(--text-dark); 
            border-bottom-color: rgba(255, 255, 255, 0.1);
        }
        
        /* 🌑 MODO OSCURO: La luna está activa, el sol atenuado */
        body.light-mode .theme-toggle .fa-moon { 
            color: var(--accent); /* Resalta la luna con el color de acento del modo oscuro */
            opacity: 1.0;
        }
        
        body.light-mode .theme-toggle .fa-sun { 
            opacity: 0.3; /* Atenúa el sol en Modo Oscuro */
        } 
        
        /* Ajuste para el texto principal en modo Oscuro */
        body.light-mode .main-title,
        body.light-mode .subtitle,
        body.light-mode .link-item p,
        body.light-mode .legal-links a,
        body.light-mode footer,
        body.light-mode .card-header h2,
        body.light-mode .card-content p {
            color: var(--text-dark); 
        }

        /* Desplazamiento Suave para enlaces internos */
        html {
            scroll-behavior: smooth;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Open Sans', sans-serif;
            background: var(--gradient-bg);
            color: var(--text-dark);
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
            transition: background 0.5s ease, color 0.5s ease;
        }

        /* ================================================= */
        /* 2. Estilos del Fondo (Parallax y Efectos) */
        /* ================================================= */
        .background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            transition: filter 0.3s ease;
            will-change: transform;
        }
        
        .light-effect {
            position: fixed;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, var(--light-effect-color) 0%, transparent 70%);
            border-radius: 50%;
            filter: blur(50px);
            z-index: -1;
            animation: pulse-light 8s infinite alternate;
        }

        @keyframes pulse-light {
            0% { transform: scale(1) translate(-20%, -20%); opacity: 0.8; }
            100% { transform: scale(1.2) translate(20%, 20%); opacity: 1; }
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--particle-color);
            border-radius: 50%;
            transition: transform 0.2s ease;
        }

        .floating-card {
            position: absolute;
            width: 70px;
            height: 70px;
            background: var(--card-bg-dark);
            border-radius: 10px;
            backdrop-filter: blur(5px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(0, 0, 0, 0.1);
            animation: float 6s infinite ease-in-out;
            transition: transform 0.2s ease;
        }

        body.light-mode .floating-card {
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
            50% { transform: translateY(-20px) rotateX(10deg) rotateY(10deg); }
        }

        /* ================================================= */
        /* 3. Encabezado y Navegación (Responsive) */
        /* ================================================= */
        .sticky-header-wrapper {
            position: sticky;
            top: 0;
            z-index: 1005;
        }

        header {
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-dark);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        
        /* Ajuste de colores del header para el modo Oscuro */
        body.light-mode header {
            background: var(--bg-dark);
            box-shadow: var(--shadow);
        }

        .logo {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--accent);
            text-decoration: none;
        }
        
        /* Toggle de Modo Oscuro/Claro */
        .theme-toggle {
            width: 50px;
            height: 25px;
            background: var(--card-bg-dark);
            border-radius: 25px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 5px;
            cursor: pointer;
            transition: var(--transition);
        }

        /* Estilos base para el ícono (aplica el color de texto del tema actual) */
        .theme-toggle i {
            font-size: 15px;
            color: var(--text-dark);
            transition: var(--transition);
        }

        /* 🌞 MODO CLARO (DEFAULT): El sol está activo, la luna atenuada */
        .theme-toggle .fa-sun {
            opacity: 1.0; /* Asegura visibilidad total al Sol */
        }
        
        .theme-toggle .fa-moon {
            opacity: 0.3; /* Atenúa la Luna en Modo Claro */
        }
        
        /* Menú Hamburguesa (Mobile) */
        .menu-toggle {
            display: none; 
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 20px;
            cursor: pointer;
            z-index: 1006; 
        }

        .menu-toggle span {
            display: block;
            height: 3px;
            width: 100%;
            background-color: var(--text-dark);
            border-radius: 3px;
            transition: var(--transition);
        }

        /* ESTILOS DE CIERRE (LA "X") */
        .menu-toggle.active span:nth-child(1) { 
            transform: rotate(45deg) translate(4px, 4px);
        }
        .menu-toggle.active span:nth-child(2) { 
            opacity: 0; 
        }
        .menu-toggle.active span:nth-child(3) { 
            transform: rotate(-45deg) translate(5px, -5px);
        }

        .menu-mobile {
            position: fixed;
            top: 0;
            right: -210px;
            width: 210px;
            height: 100vh;
            background: var(--bg-dark);
            backdrop-filter: blur(10px);
            padding: 100px 20px 30px;
            transition: right 0.4s ease;
            z-index: 1000;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        }
        
        .menu-mobile.active { right: 0; }
        .menu-mobile ul { list-style: none; }
        .menu-mobile li { margin-bottom: 25px; }

        .menu-mobile a {
            color: var(--text-dark);
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 600;
            display: block;
            padding: 10px 0;
            border-bottom: 2px solid rgba(0, 0, 0, 0.1);
            transition: var(--transition);
        }

        body.light-mode .menu-mobile a {
            border-bottom-color: rgba(255, 255, 255, 0.1);
        }
        
        .menu-desktop {
            display: flex;
            gap: 30px;
        }

        .menu-desktop a {
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 600;
            position: relative;
            transition: var(--transition);
        }

        .menu-desktop a:hover,
        .menu-desktop a.active {
            color: var(--accent);
        }

        body.light-mode .menu-desktop a {
            color: var(--text-dark); 
        }

        body.light-mode .menu-desktop a:hover,
        body.light-mode .menu-desktop a.active {
            color: var(--accent); 
        }

        /* ================================================= */
        /* 4. Contenido Principal y Secciones */
        /* ================================================= */
        .container {
            padding: 120px 20px 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 1;
            width: 100%;
        }
        
        .image-profile-container {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin-bottom: 80px;
        }
        
        .cover-image, .profile-image {
            cursor: pointer; 
        }

        .cover-image {
            width: 100%;
            height: 250px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            position: relative;
        }
        
        .cover-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.8; 
        }

        .profile-image {
            position: absolute;
            bottom: -50px;
            left: 50%;
            transform: translateX(-50%);
            width: 140px;
            height: 140px;
            border-radius: 50%;
            overflow: hidden;
            border: 5px solid var(--bg-dark);
            box-shadow: 0 0 0 5px var(--accent);
            z-index: 2;
            transition: box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .profile-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .main-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 3rem;
            font-weight: 700;
            margin-top: 20px;
            margin-bottom: 10px;
            text-align: center;
        }

        .subtitle {
            font-size: 1.2rem;
            font-weight: 400;
            color: var(--accent);
            margin-bottom: 40px;
            text-align: center;
        }
        
        .social-icons-hero {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: -20px;
            margin-bottom: 40px;
        }

        .social-icon-circle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: var(--accent);
            color: var(--text-light); /* Icono blanco para el modo claro */
            font-size: 1.2rem;
            /* Usar función rgba con la variable accent para la sombra */
            box-shadow: 0 5px 15px rgba(118, 93, 84, 0.5); 
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
        }

        .social-icon-circle:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(118, 93, 84, 0.8);
        }
        
        /* Ajuste de sombras en modo Oscuro para iconos sociales */
        body.light-mode .social-icon-circle {
            box-shadow: 0 5px 15px rgba(216, 192, 183, 0.5);
            color: var(--text-dark); /* Icono light text para el modo Oscuro */
        }
        
        body.light-mode .social-icon-circle:hover {
            box-shadow: 0 8px 20px rgba(216, 192, 183, 0.8);
        }


        .card-section {
            width: 100%;
            max-width: 650px; 
            margin-top: 15px;
            margin-bottom: 30px;
            background: var(--card-bg-dark);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            box-shadow: var(--shadow);
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        body.light-mode .card-section {
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .card-header {
            padding: 15px 20px; 
            background: rgba(118, 93, 84, 0.05);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
        }
        
        /* Ajuste de colores de header para el modo Oscuro */
        body.light-mode .card-header {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-dark);
        }
        
        .card-header h2 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .card-header .fa-chevron-down {
            transition: transform 0.4s ease;
        }

        .card-header.active .fa-chevron-down {
            transform: rotate(180deg);
        }

        .card-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, padding 0.5s ease;
            padding: 0 20px;
        }
        
        .card-content.active {
            max-height: 1200px; 
            padding: 20px;
        }
        
        .card-content p {
            margin-bottom: 15px;
            line-height: 1.6;
            word-break: break-word;
        }
        
        .card-content h3 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.1rem;
            color: var(--accent);
            margin-top: 10px;
            margin-bottom: 8px;
        }
        
        .promo-subtitle {
            font-family: 'Montserrat', sans-serif; 
            font-weight: 600;
            font-size: 1.15rem; 
            margin-bottom: 15px; 
            color: var(--text-dark);
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        }

        .link-kit-cta {
            width: 100%;
            max-width: 650px; 
            margin: 0 auto; 
            background: var(--secondary); /* Taupe Suave */
            color: var(--text-dark); 
            /* Sombra y Borde ajustados a la nueva paleta */
            box-shadow: 0 10px 20px rgba(196, 166, 150, 0.5); 
            padding: 20px 25px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center; 
            transition: transform 0.3s ease;
            text-decoration: none;
            border: 2px solid var(--accent); /* Café Profundo */
            position: relative;
            overflow: hidden;
        }
        
        .link-kit-cta:hover {
            transform: translateY(-3px) scale(1.005);
            box-shadow: 0 15px 30px rgba(196, 166, 150, 0.7);
        }
        
        /* Ajustes de sombras en modo Oscuro para el Kit CTA */
        body.light-mode .link-kit-cta {
            box-shadow: 0 10px 20px rgba(216, 192, 183, 0.5);
        }
        
        body.light-mode .link-kit-cta:hover {
            box-shadow: 0 15px 30px rgba(216, 192, 183, 0.7);
        }


        .link-principal-cta {
            width: 100%;
            max-width: 650px; 
            margin: 30px auto; 
            background: var(--accent); /* Café Profundo */
            color: var(--text-dark); 
            /* Sombra ajustada a la nueva paleta */
            box-shadow: 0 10px 20px rgba(118, 93, 84, 0.5); 
            padding: 20px 25px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center; 
            transition: transform 0.3s ease;
            text-decoration: none;
            border: none;
        }
        
        .link-principal-cta h3,
        .link-principal-cta p,
        .link-principal-cta i,
        .link-kit-cta h3,
        .link-kit-cta p,
        .link-kit-cta i {
            color: var(--text-light) !important; /* Texto/Icono Blanco para el modo claro */
            opacity: 1 !important;
        }
        
/* TIENDA ONLINE: Sigue con texto blanco (--text-light) porque su fondo es el color de acento (--accent) oscuro */
.link-principal-cta h3,
.link-principal-cta p,
.link-principal-cta i {
    color: var(--text-light) !important; /* #F7F7F7 (Blanco) */
    opacity: 1 !important;
}

/* KIT CONTROL DE PESO: Usará texto oscuro (--text-dark) porque su fondo (--secondary) es claro (Taupe) */
.link-kit-cta h3,
.link-kit-cta p,
.link-kit-cta i {
    color: var(--text-dark) !important; /* #1a1a1a (Oscuro) */
    opacity: 1 !important;
}
        
        .link-principal-cta:hover {
            transform: translateY(-3px) scale(1.005);
            box-shadow: 0 15px 30px rgba(118, 93, 84, 0.7);
        }
        
        /* Ajustes de sombras en modo Oscuro para el Principal CTA */
        body.light-mode .link-principal-cta {
            box-shadow: 0 10px 20px rgba(216, 192, 183, 0.5);
        }
        
        body.light-mode .link-principal-cta:hover {
            box-shadow: 0 15px 30px rgba(216, 192, 183, 0.7);
        }


        .link-principal-cta i.icon,
        .link-kit-cta i.icon {
            font-size: 2rem;
            margin-right: 20px;
        }
        .link-principal-cta .link-info,
        .link-kit-cta .link-info {
            flex-grow: 1;
            text-align: left;
        }

        .link-principal-cta h3,
        .link-kit-cta h3 {
            font-family: 'Montserrat', sans-serif; 
            font-weight: 700;
            margin-bottom: 5px;
            padding-top: 3px;
        }

        .link-principal-cta p,
        .link-kit-cta p {
            margin-bottom: 0;
            font-size: 0.9rem;
        }
        
        .links-grid {
            display: flex;
            flex-direction: column;
            gap: 20px; 
            margin-top: 40px;
            width: 100%;
            padding: 20px;
            align-items: center;
        }

        .link-item {
            width: 100%;
            max-width: 500px;
            background: var(--card-bg-dark);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            transition: var(--transition);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.1);
            padding: 15px 25px;
            text-decoration: none;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        body.light-mode .link-item {
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .link-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px var(--accent);
        }
        
        .link-item i.icon {
            font-size: 1.8rem;
            color: var(--accent);
            margin-right: 20px;
            min-width: 30px;
            text-align: center;
        }
        
        .link-item .link-info {
            flex-grow: 1;
            text-align: left;
        }

        .link-item h3 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.1rem;
            margin-bottom: 2px;
        }
        
        .link-item p {
            font-size: 0.85rem;
            opacity: 0.8;
        }
        
        .link-item i.fa-chevron-right {
            color: var(--accent);
            opacity: 0.8;
            transition: var(--transition);
        }
        
        .link-item:hover i.fa-chevron-right {
            transform: translateX(5px);
            opacity: 1;
        }

           .fade-in {
         opacity: 0;
         transition: opacity 0.6s ease;
     }

     .fade-in.visible {
         opacity: 1;
     }
        
        .lightbox {
            display: none; 
            position: fixed;
            z-index: 2000; 
            padding-top: 60px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.9);
            text-align: center;
        }

        .lightbox-content {
            margin: auto;
            display: block;
            width: 90%;
            max-width: 700px;
            animation-name: zoom;
            animation-duration: 0.6s;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        }

        @keyframes zoom {
            from {transform:scale(0.5)} 
            to {transform:scale(1)}
        }

        .close-button {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
        }

        .close-button:hover,
        .close-button:focus {
            color: var(--accent);
            text-decoration: none;
        }

/* ================================================= */
/* 7. BOTÓN FLOTANTE DE WHATSAPP */
/* ================================================= */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999; 
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Open Sans', sans-serif;
}

.whatsapp-btn {
    background-color: var(--whatsapp-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(118, 93, 84, 0.5); /* Café Profundo Sombra (Modo Claro) */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn i {
    color: white; 
    transition: color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: var(--whatsapp-color-dark); /* Taupe Suave en hover del modo Claro */
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(196, 166, 150, 0.7); /* Taupe Suave Sombra (Modo Claro) */
    border: 2px solid var(--accent);
}

.whatsapp-btn:hover i {
    color: var(--bg-dark); /* Cream del tema claro */
}

.whatsapp-text {
    /* Utiliza colores de las tarjetas del proyecto para integrarse mejor */
    background: var(--card-bg-dark); 
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Open Sans', sans-serif;
    position: absolute;
    right: 60px;
    border: 1px solid var(--whatsapp-color); 
}

.whatsapp-container:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--whatsapp-pulse-color); 
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* AJUSTES PARA MODO OSCURO DEL BOTÓN WHATSAPP */
body.light-mode .whatsapp-btn {
    background-color: var(--accent); /* Light Taupe del tema Oscuro */
    box-shadow: 0 5px 15px rgba(216, 192, 183, 0.5);
}

body.light-mode .whatsapp-btn:hover {
    background-color: var(--whatsapp-color-dark); /* Blanco en hover del modo Oscuro */
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(216, 192, 183, 0.7);
}

body.light-mode .whatsapp-btn:hover i {
    color: var(--bg-dark); /* El color de fondo del modo oscuro (casi negro) */
}

/* ================================================= */
/* 8. BOTÓN DE SCROLL-TO-TOP */
/* ================================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 998;
    width: 35px;
    height: 55px;
    background-color: var(--accent);
    color: var(--text-light); /* Ícono blanco para el modo claro */
    border: none;
    border-radius: 18px;
    font-size: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    text-decoration: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
}

/* NUEVO: Hacer que el ícono de subir página sea oscuro en Modo Oscuro */
body.light-mode .scroll-top-btn {
    color: var(--text-dark); /* Light Text (Dark mode text) */
}


/* ================================================= */
/* 12. Entry Animations                              */
/* ================================================= */

/* Keyframes for animations */
@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUpFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Applying animations to elements */
/* Initially hide elements that will be animated */
.cover-image,
.profile-image,
.main-title,
.subtitle,
.social-icons-hero {
    opacity: 0; /* Start as invisible */
    animation-fill-mode: forwards; /* Keep final state */
}

.cover-image {
    animation-name: slideDownFadeIn;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-delay: 0.2s;
}

.profile-image {
    /* The transform: translateX(-50%) is already on this element, so I need to include it in the animation */
    animation-name: scaleUpFadeIn;
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-delay: 0.5s;
}

.main-title {
    animation-name: slideInFromLeft;
    animation-duration: 0.9s;
    animation-timing-function: ease-out;
    animation-delay: 0.8s;
}

.subtitle {
    animation-name: slideInFromRight;
    animation-duration: 0.9s;
    animation-timing-function: ease-out;
    animation-delay: 1s;
}

.social-icons-hero {
    animation-name: fadeInDelayed;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-delay: 1.2s;
}

/* ================================================= */
/* 9. Estilos Responsive (Agrupados al final) */
/* ================================================= */

/* BLOQUE PC: Reglas para Desktop (769px o más) */
@media (min-width: 769px) {
    header {
        max-width: 700px;
        margin: 20px auto 0;
        border-radius: 12px;
    }
    .container {
        max-width: 700px;
        margin: 20px auto 0;
        background: var(--card-bg-dark);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 40px;
    }
    
    body.light-mode .container {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }


    .link-item {
    max-width: 550px; 
    padding-top: 20px;    
    padding-bottom: 20px; 
}
    
    /* AJUSTES DE SCROLL INDIVIDUALES PARA PC (VALORES ALTOS) */
    #sobre-mi {
        scroll-margin-top: 90px; 
    }
    
    #enlaces {
        scroll-margin-top: 70px; 
    }

    #faq {
    scroll-margin-top: 90px;

}
}

/* BLOQUE MÓVIL: Reglas para Mobile (768px o menos) */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .menu-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .container {
        padding-top: 0px;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .image-profile-container {
        margin-bottom: 70px;
    }
    
.image-profile-container {
        /* SOLUCIÓN: Usar margen negativo para anular el padding de 20px de su padre (.container) */
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px); 
        max-width: none; 
        margin-bottom: 70px; 
    }

    .cover-image {
        height: 200px;
        border-radius: 0px 0px 20px 20px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        bottom: -50px;
    }
    
    .card-section, .link-item { 
        max-width: 90vw;
    }

    .links-grid {
        padding: 0 10px;
    }
    
    /* AJUSTES DE SCROLL INDIVIDUALES PARA MÓVIL (VALORES BAJOS) */
    #sobre-mi {
        scroll-margin-top: 75px; 
    }
    
    #enlaces {
        scroll-margin-top: 70px; 
    }

    #faq {
    scroll-margin-top: 75px;
}

    .link-kit-cta,
    .link-principal-cta {
        padding-left: 15px;
        padding-right: 15px;
        justify-content: flex-start;
    }

    .link-kit-cta h3,
    .link-principal-cta h3 {
        font-size: 1rem; 
    }

    /* Estilos de WhatsApp para móvil */
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .whatsapp-text {
        display: none;
    }
}
.link-kit-cta,
    .link-principal-cta {
        padding-left: 15px;
        padding-right: 20px;
        justify-content: flex-start;
    }
    .link-kit-cta h3,
    .link-principal-cta h3 {
        font-size: 1rem; 
    }
    .link-item {
        padding-left: 15px;
        padding-right: 15px;
    }
      .link-item i.icon {
        margin-right: 10px; 
    }
    .link-principal-cta i.icon,
    .link-kit-cta i.icon {
        margin-right: 15px; 
    }

.content-blurred {
    filter: blur(5px);
    transition: filter 0.4s ease;
    pointer-events: none; 
}

.link-item h3 {
        font-size: 1rem;
    }

/* ================================================= */
/* 10. Estilos de la Sección de FAQ                  */
/* ================================================= */
#faq {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    gap: 0px; 
}

.faq-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Ajuste para que el h2 dentro de las tarjetas de FAQ no sea tan grande */
#faq .card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Estilos para las listas dentro de las respuestas de FAQ */
#faq .card-content ul {
    list-style-position: inside;
    padding-left: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

#faq .card-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-main-icon {
    display: block;
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ================================================= */
/* 11. Pre-loader                                    */
/* ================================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark); 
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    visibility: visible;
    opacity: 1;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden; 
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1); 
    border-top-color: var(--accent); 
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* Estilo del spinner en modo oscuro */
body.light-mode .spinner {
    border: 5px solid rgba(255, 255, 255, 0.2); 
    border-top-color: var(--accent);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================================= */
/* 14. Estilos del Crédito de Creador                */
/* ================================================= */
.creator-credit {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.linkea-gradient {
    background: linear-gradient(to right, #407eff, #836dfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.creator-credit a {
    text-decoration: none;
}

/* ================================================= */
/* ESTILOS ESPECÍFICOS PARA LA IMAGEN EN EL LOGIN */
/* ================================================= */

.login-profile-img {
    /* 1. CENTRADO: display: block y margin: auto */
    display: block; 
    margin: 0 auto 15px auto; 
    width: 90px; 
    height: 90px;
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid var(--bg-light); 
    box-shadow: 0 0 0 3px var(--accent), 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.login-profile-img:hover {
    transform: scale(1.05);
}