@media (max-width: 768px) {
    /* Header */
    .header-content {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    }
    .header-side.header-right {
        justify-content: center !important;
        width: 100%;
        margin: 0 auto !important;
        flex-shrink: 1;
        flex-basis: 100%; /* Ocupa todo el ancho si se envuelve */
        order: 2; /* Cambia el orden si es necesario */
    }
    .logo-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto !important;
    }
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
        order: 1; /* Asegura que el botón aparezca primero si se envuelve */
    }
    .header-download-plan .download-btn {
        font-size: 0.9rem; /* Reducir un poco para más compatibilidad */
        padding: 0.4rem 0.7rem;
    }

    /* Hero Section */
        .hero-download-plan {
            display: flex;
            justify-content: center;
            margin: 1rem 0 0 0;
        }
        .hero-download-plan .download-btn {
            font-size: 1.1rem;
            padding: 0.75rem 1.5rem;
        }
    /* Niko logo under profile - shown only on mobile */
    .niko-under-profile {
        display: block;
        width: 200px; /* Increased from 100px to 200px */
        max-width: 90vw;
        margin: 0 auto;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        padding-top: 60px;
        animation: fadeIn 0.3s;
    }

    .modal-content {
        width: 90%; /* Asegura que el modal se ajuste en móviles */
        padding: 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }
}

/* Mostrar botón de descarga entre los logos del header solo en mobile */
.header-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
    }
    .header-download-plan .download-btn {
        font-size: 1.05rem;
        padding: 0.5rem 1.2rem;
    }
}
/* Mostrar botón de descarga entre los logos solo en mobile */
.hero-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    /* Opcional: agrandar el botón en mobile */
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}
/* Ocultar logos laterales en la sección hero en mobile */
@media (max-width: 768px) {
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}
/* CSS Variables */
:root {
    --primary-color: #415472; /* Color principal solicitado: #415472 */
    --primary-dark: #31415a; /* Tonalidad más oscura para hover y gradientes */
    --primary-light: #52678C; /* Tonalidad más clara para detalles */
    --secondary-color: #dc2626;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Nuevos gradientes usando el color principal */
    --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px; /* Ligero aumento */
    --border-radius-lg: 20px;
}

/* Hide Niko logo by default (for desktop) */
.niko-under-profile {
    display: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Previene el scroll horizontal en el body */
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Asegura que el contenedor ocupe el ancho disponible */
}

/* Header */
.header {
    background: var(--gradient);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Clase para el menú activo */
.nav-menu.active {
    left: 0;
}

/* Transición suave para el menú */
.nav-menu {
    transition: transform 0.3s ease-in-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.5rem 2rem;
    gap: 1rem;
}

/* Header Side Containers */
.header-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
    padding: 0 0.5rem;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

/* Logo container */
.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 56px;
    width: auto;
    max-width: 120px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.candidate-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    color: var(--white);
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-radius: 50px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Sombra sutil al activar/hover */
}

.nav-link::after {
    display: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
    margin-top: -20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('back.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.4; /* Imagen más transparente */
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Fondo oscuro más claro */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem;
}

/* Hero Header */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-align: center;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}


.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

.download-btn:active {
    transform: translateY(1px);
}

.hero-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem; /* Espacio mínimo entre elementos */
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Modal Styles (Popup) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding-top: 60px;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 90%; /* Usa un ancho máximo relativo */
    width: 500px; /* Mantiene un ancho base pero puede encogerse */
    text-align: left;
    animation: fadeInUp 0.4s ease;
}

.close {
    color: var(--primary-color); /* Usando color principal */
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: var(--transition);
    line-height: 1;
    border-radius: 50%;
    padding: 5px 10px;
}

.close:hover,
.close:focus {
    color: var(--primary-dark); /* Color más oscuro al hacer hover */
    text-decoration: none;
    cursor: pointer;
    background-color: var(--light-color);
}

.modal-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 5px;
}

.modal-content p,
.modal-content ul {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Sección de Apoyo - Mejorada */
.support-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white; /* Color de texto blanco por defecto */
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Asegurar que todo el texto sea blanco */
.support-section,
.support-section p,
.support-section h1,
.support-section h2,
.support-section h3,
.support-section h4,
.support-section h5,
.support-section h6,
.support-section span,
.support-section a,
.support-section li,
.support-section label,
.support-section .fa-heart {
    color: white !important;
}

/* Mejorar contraste de enlaces */
.support-section a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.support-section a:hover {
    border-bottom-color: white;
    opacity: 0.9;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.support-section .section-header h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    display: inline-block;
}

.support-section .section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.support-content {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    color: white; /* Asegurar texto blanco en el contenido */
}

/* Mejorar legibilidad de los botones */
.support-content .btn {
    color: var(--primary-color);
    background: white;
    border: 2px solid white;
}

.support-content .btn:hover {
    background: transparent;
    color: white;
}

.support-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-counter {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.support-counter::after {
    content: '';
}

.support-counter span:first-child {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-actions {
    margin-bottom: 2rem;
}

.support-button {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.support-button:hover::before {
    left: 100%;
}

.support-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.support-button:hover i {
    transform: scale(1.2);
}

.support-message {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.support-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de confeti al hacer clic */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    opacity: 0;
    z-index: 1000;
    animation: confetti 3s ease-out forwards;
}

/* Footer */
.footer {
    background-color: var(--dark-color); /* Fondo oscuro para contraste */
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

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

.footer h3 {
    color: var(--primary-light); /* Tonalidad más clara de la marca */
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-links a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.6rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color); /* Color de marca para hover */
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14.5px;
    }
    .container {
        padding: 0 15px;
    }
    .navigation,
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    }
    .header-side.header-right {
        justify-content: center !important;
        width: 100%;
        margin: 0 auto !important;
        flex-shrink: 1;
        flex-basis: 100%; /* Ocupa todo el ancho si se envuelve */
        order: 2; /* Cambia el orden si es necesario */
    }
    .logo-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto !important;
    }
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
        order: 1; /* Asegura que el botón aparezca primero si se envuelve */
    }
    .header-download-plan .download-btn {
        font-size: 0.9rem; /* Reducir un poco para más compatibilidad */
        padding: 0.4rem 0.7rem;
    }

    /* Hero Section */
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    /* Niko logo under profile - shown only on mobile */
    .niko-under-profile {
        display: block;
        width: 200px; /* Increased from 100px to 200px */
        max-width: 90vw;
        margin: 0 auto;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        padding-top: 60px;
        animation: fadeIn 0.3s;
    }

    .modal-content {
        width: 90%; /* Asegura que el modal se ajuste en móviles */
        padding: 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    }
/* Mostrar botón de descarga entre los logos del header solo en mobile */
.header-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
    }
    .header-download-plan .download-btn {
        font-size: 1.05rem;
        padding: 0.5rem 1.2rem;
    }
}
/* Mostrar botón de descarga entre los logos solo en mobile */
.hero-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    /* Opcional: agrandar el botón en mobile */
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}
/* Ocultar logos laterales en la sección hero en mobile */
@media (max-width: 768px) {
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}
/* CSS Variables */
:root {
    --primary-color: #415472; /* Color principal solicitado: #415472 */
    --primary-dark: #31415a; /* Tonalidad más oscura para hover y gradientes */
    --primary-light: #52678C; /* Tonalidad más clara para detalles */
    --secondary-color: #dc2626;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Nuevos gradientes usando el color principal */
    --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px; /* Ligero aumento */
    --border-radius-lg: 20px;
}

/* Hide Niko logo by default (for desktop) */
.niko-under-profile {
    display: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Previene el scroll horizontal en el body */
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Asegura que el contenedor ocupe el ancho disponible */
}

/* Header */
.header {
    background: var(--gradient);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Clase para el menú activo */
.nav-menu.active {
    left: 0;
}

/* Transición suave para el menú */
.nav-menu {
    transition: transform 0.3s ease-in-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.5rem 2rem;
    gap: 1rem;
}

/* Header Side Containers */
.header-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
    padding: 0 0.5rem;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

/* Logo container */
.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 56px;
    width: auto;
    max-width: 120px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.candidate-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    color: var(--white);
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-radius: 50px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Sombra sutil al activar/hover */
}

.nav-link::after {
    display: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
    margin-top: -20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('back.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.4; /* Imagen más transparente */
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Fondo oscuro más claro */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem;
}

/* Hero Header */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-align: center;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}


.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

.download-btn:active {
    transform: translateY(1px);
}

.hero-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem; /* Espacio mínimo entre elementos */
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Modal Styles (Popup) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding-top: 60px;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 90%; /* Usa un ancho máximo relativo */
    width: 500px; /* Mantiene un ancho base pero puede encogerse */
    text-align: left;
    animation: fadeInUp 0.4s ease;
}

.close {
    color: var(--primary-color); /* Usando color principal */
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: var(--transition);
    line-height: 1;
    border-radius: 50%;
    padding: 5px 10px;
}

.close:hover,
.close:focus {
    color: var(--primary-dark); /* Color más oscuro al hacer hover */
    text-decoration: none;
    cursor: pointer;
    background-color: var(--light-color);
}

.modal-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 5px;
}

.modal-content p,
.modal-content ul {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Sección de Apoyo - Mejorada */
.support-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white; /* Color de texto blanco por defecto */
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Asegurar que todo el texto sea blanco */
.support-section,
.support-section p,
.support-section h1,
.support-section h2,
.support-section h3,
.support-section h4,
.support-section h5,
.support-section h6,
.support-section span,
.support-section a,
.support-section li,
.support-section label,
.support-section .fa-heart {
    color: white !important;
}

/* Mejorar contraste de enlaces */
.support-section a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.support-section a:hover {
    border-bottom-color: white;
    opacity: 0.9;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.support-section .section-header h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    display: inline-block;
}

.support-section .section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.support-content {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    color: white; /* Asegurar texto blanco en el contenido */
}

/* Mejorar legibilidad de los botones */
.support-content .btn {
    color: var(--primary-color);
    background: white;
    border: 2px solid white;
}

.support-content .btn:hover {
    background: transparent;
    color: white;
}

.support-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-counter {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.support-counter::after {
    content: '';
}

.support-counter span:first-child {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-actions {
    margin-bottom: 2rem;
}

.support-button {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.support-button:hover::before {
    left: 100%;
}

.support-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.support-button:hover i {
    transform: scale(1.2);
}

.support-message {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.support-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de confeti al hacer clic */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    opacity: 0;
    z-index: 1000;
    animation: confetti 3s ease-out forwards;
}

/* Footer */
.footer {
    background-color: var(--dark-color); /* Fondo oscuro para contraste */
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

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

.footer h3 {
    color: var(--primary-light); /* Tonalidad más clara de la marca */
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-links a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.6rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color); /* Color de marca para hover */
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14.5px;
    }
    .container {
        padding: 0 15px;
    }
    .navigation,
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    }
    .header-side.header-right {
        justify-content: center !important;
        width: 100%;
        margin: 0 auto !important;
        flex-shrink: 1;
        flex-basis: 100%; /* Ocupa todo el ancho si se envuelve */
        order: 2; /* Cambia el orden si es necesario */
    }
    .logo-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto !important;
    }
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
        order: 1; /* Asegura que el botón aparezca primero si se envuelve */
    }
    .header-download-plan .download-btn {
        font-size: 0.9rem; /* Reducir un poco para más compatibilidad */
        padding: 0.4rem 0.7rem;
    }

    /* Hero Section */
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    /* Niko logo under profile - shown only on mobile */
    .niko-under-profile {
        display: block;
        width: 200px; /* Increased from 100px to 200px */
        max-width: 90vw;
        margin: 0 auto;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        padding-top: 60px;
        animation: fadeIn 0.3s;
    }

    .modal-content {
        width: 90%; /* Asegura que el modal se ajuste en móviles */
        padding: 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    }
/* Mostrar botón de descarga entre los logos del header solo en mobile */
.header-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
    }
    .header-download-plan .download-btn {
        font-size: 1.05rem;
        padding: 0.5rem 1.2rem;
    }
}
/* Mostrar botón de descarga entre los logos solo en mobile */
.hero-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    /* Opcional: agrandar el botón en mobile */
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}
/* Ocultar logos laterales en la sección hero en mobile */
@media (max-width: 768px) {
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}
/* CSS Variables */
:root {
    --primary-color: #415472; /* Color principal solicitado: #415472 */
    --primary-dark: #31415a; /* Tonalidad más oscura para hover y gradientes */
    --primary-light: #52678C; /* Tonalidad más clara para detalles */
    --secondary-color: #dc2626;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Nuevos gradientes usando el color principal */
    --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px; /* Ligero aumento */
    --border-radius-lg: 20px;
}

/* Hide Niko logo by default (for desktop) */
.niko-under-profile {
    display: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Previene el scroll horizontal en el body */
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Asegura que el contenedor ocupe el ancho disponible */
}

/* Header */
.header {
    background: var(--gradient);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Clase para el menú activo */
.nav-menu.active {
    left: 0;
}

/* Transición suave para el menú */
.nav-menu {
    transition: transform 0.3s ease-in-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.5rem 2rem;
    gap: 1rem;
}

/* Header Side Containers */
.header-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
    padding: 0 0.5rem;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

/* Logo container */
.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 56px;
    width: auto;
    max-width: 120px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.candidate-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    color: var(--white);
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-radius: 50px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Sombra sutil al activar/hover */
}

.nav-link::after {
    display: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
    margin-top: -20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('back.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.4; /* Imagen más transparente */
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Fondo oscuro más claro */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem;
}

/* Hero Header */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-align: center;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}


.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

.download-btn:active {
    transform: translateY(1px);
}

.hero-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem; /* Espacio mínimo entre elementos */
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.hero-profile-container {
    width: 400px;
    height: auto;
    margin: 0 15px;
    animation: fadeIn 1s ease-out;
    flex-shrink: 0;
    position: relative;
    padding: 20px;
    border-radius: 20px;
    background: rgba(65, 84, 114, 0.2); /* Usando el color principal con transparencia */
    backdrop-filter: blur(10px); /* Aumentando el desenfoque */
    -webkit-backdrop-filter: blur(10px); /* Para compatibilidad con Safari */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.hero-profile {
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-logo-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    padding: 10px;
    animation: slideIn 1s ease-out;
    margin: 0 5px; /* Pequeño margen positivo para evitar superposición */
}

.hero-logo {
    max-width: 90%;
    max-height: 90%;
}

/* Diagnosis Section */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section#diagnostico {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.section#diagnostico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(65, 84, 114, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h2 i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.diagnosis-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.diagnosis-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(65, 84, 114, 0.2);
}

.diagnosis-content {
    text-align: center;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Card Grid Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color); /* Borde superior con color de marca */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card p {
    color: var(--gray-color);
    font-size: 1rem;
    min-height: 48px; /* Altura mínima para mantener tarjetas uniformes */
}

/* Botón Mejorado (Nuevo Estilo para .card-btn) */
.card-btn {
    display: inline-block;
    padding: 12px 24px; /* Ligeramente más grande */
    margin-top: 15px;
    background: var(--gradient-primary); /* Degradado del color principal */
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    /* Sombra con color principal para "brillo" */
    box-shadow: 0 6px 15px -3px rgba(65, 84, 114, 0.4), 0 3px 6px -3px rgba(65, 84, 114, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-btn:hover {
    background: var(--primary-dark); /* Color más oscuro al hacer hover */
    transform: translateY(-2px);
    /* Sombra más fuerte al hacer hover */
    box-shadow: 0 12px 25px -5px rgba(65, 84, 114, 0.6), 0 6px 10px -5px rgba(65, 84, 114, 0.4);
}


/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.solution-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px dashed var(--primary-light);
    padding-bottom: 5px;
}

.solution-category .card {
    text-align: left;
    margin-bottom: 20px;
    min-height: 280px; /* Altura fija para todas las tarjetas */
    display: flex;
    flex-direction: column;
}

.solution-category .card h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.solution-category .card p {
    margin-bottom: 15px;
}

/* Stats Section */
.hero-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    flex: 1;
    margin: 0 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color); /* Mantener un color contrastante */
    line-height: 1;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-color);
}

/* Call to Action Section */
.cta {
    background: var(--gradient); /* Usa el nuevo gradiente */
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    /* Mismo estilo mejorado que .card-btn pero con un color de acento para diferenciar la CTA */
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 50px; /* Más redondeado para CTA */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 8px 20px -5px rgba(245, 158, 11, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Modal Styles (Popup) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding-top: 60px;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 90%; /* Usa un ancho máximo relativo */
    width: 500px; /* Mantiene un ancho base pero puede encogerse */
    text-align: left;
    animation: fadeInUp 0.4s ease;
}

.close {
    color: var(--primary-color); /* Usando color principal */
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: var(--transition);
    line-height: 1;
    border-radius: 50%;
    padding: 5px 10px;
}

.close:hover,
.close:focus {
    color: var(--primary-dark); /* Color más oscuro al hacer hover */
    text-decoration: none;
    cursor: pointer;
    background-color: var(--light-color);
}

.modal-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 5px;
}

.modal-content p,
.modal-content ul {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Sección de Apoyo - Mejorada */
.support-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white; /* Color de texto blanco por defecto */
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Asegurar que todo el texto sea blanco */
.support-section,
.support-section p,
.support-section h1,
.support-section h2,
.support-section h3,
.support-section h4,
.support-section h5,
.support-section h6,
.support-section span,
.support-section a,
.support-section li,
.support-section label,
.support-section .fa-heart {
    color: white !important;
}

/* Mejorar contraste de enlaces */
.support-section a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.support-section a:hover {
    border-bottom-color: white;
    opacity: 0.9;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.support-section .section-header h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    display: inline-block;
}

.support-section .section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.support-content {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    color: white; /* Asegurar texto blanco en el contenido */
}

/* Mejorar legibilidad de los botones */
.support-content .btn {
    color: var(--primary-color);
    background: white;
    border: 2px solid white;
}

.support-content .btn:hover {
    background: transparent;
    color: white;
}

.support-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-counter {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.support-counter::after {
    content: '';
}

.support-counter span:first-child {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-actions {
    margin-bottom: 2rem;
}

.support-button {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.support-button:hover::before {
    left: 100%;
}

.support-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.support-button:hover i {
    transform: scale(1.2);
}

.support-message {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.support-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de confeti al hacer clic */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    opacity: 0;
    z-index: 1000;
    animation: confetti 3s ease-out forwards;
}

/* Footer */
.footer {
    background-color: var(--dark-color); /* Fondo oscuro para contraste */
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

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

.footer h3 {
    color: var(--primary-light); /* Tonalidad más clara de la marca */
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-links a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.6rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color); /* Color de marca para hover */
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14.5px;
    }
    .container {
        padding: 0 15px;
    }
    .navigation,
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    }
    .header-side.header-right {
        justify-content: center !important;
        width: 100%;
        margin: 0 auto !important;
        flex-shrink: 1;
        flex-basis: 100%; /* Ocupa todo el ancho si se envuelve */
        order: 2; /* Cambia el orden si es necesario */
    }
    .logo-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto !important;
    }
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
        order: 1; /* Asegura que el botón aparezca primero si se envuelve */
    }
    .header-download-plan .download-btn {
        font-size: 0.9rem; /* Reducir un poco para más compatibilidad */
        padding: 0.4rem 0.7rem;
    }

    /* Hero Section */
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    /* Niko logo under profile - shown only on mobile */
    .niko-under-profile {
        display: block;
        width: 200px; /* Increased from 100px to 200px */
        max-width: 90vw;
        margin: 0 auto;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        padding-top: 60px;
        animation: fadeIn 0.3s;
    }

    .modal-content {
        width: 90%; /* Asegura que el modal se ajuste en móviles */
        padding: 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    }
/* Mostrar botón de descarga entre los logos del header solo en mobile */
.header-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
    }
    .header-download-plan .download-btn {
        font-size: 1.05rem;
        padding: 0.5rem 1.2rem;
    }
}
/* Mostrar botón de descarga entre los logos solo en mobile */
.hero-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    /* Opcional: agrandar el botón en mobile */
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}
/* Ocultar logos laterales en la sección hero en mobile */
@media (max-width: 768px) {
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}
/* CSS Variables */
:root {
    --primary-color: #415472; /* Color principal solicitado: #415472 */
    --primary-dark: #31415a; /* Tonalidad más oscura para hover y gradientes */
    --primary-light: #52678C; /* Tonalidad más clara para detalles */
    --secondary-color: #dc2626;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Nuevos gradientes usando el color principal */
    --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px; /* Ligero aumento */
    --border-radius-lg: 20px;
}

/* Hide Niko logo by default (for desktop) */
.niko-under-profile {
    display: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Previene el scroll horizontal en el body */
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Asegura que el contenedor ocupe el ancho disponible */
}

/* Header */
.header {
    background: var(--gradient);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Clase para el menú activo */
.nav-menu.active {
    left: 0;
}

/* Transición suave para el menú */
.nav-menu {
    transition: transform 0.3s ease-in-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.5rem 2rem;
    gap: 1rem;
}

/* Header Side Containers */
.header-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
    padding: 0 0.5rem;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

/* Logo container */
.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 56px;
    width: auto;
    max-width: 120px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.candidate-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    color: var(--white);
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-radius: 50px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Sombra sutil al activar/hover */
}

.nav-link::after {
    display: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
    margin-top: -20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('back.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.4; /* Imagen más transparente */
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Fondo oscuro más claro */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem;
}

/* Hero Header */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-align: center;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}


.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

.download-btn:active {
    transform: translateY(1px);
}

.hero-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem; /* Espacio mínimo entre elementos */
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Diagnosis Section */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section#diagnostico {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.section#diagnostico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(65, 84, 114, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h2 i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.diagnosis-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.diagnosis-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(65, 84, 114, 0.2);
}

.diagnosis-content {
    text-align: center;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Card Grid Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color); /* Borde superior con color de marca */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card p {
    color: var(--gray-color);
    font-size: 1rem;
    min-height: 48px; /* Altura mínima para mantener tarjetas uniformes */
}

/* Botón Mejorado (Nuevo Estilo para .card-btn) */
.card-btn {
    display: inline-block;
    padding: 12px 24px; /* Ligeramente más grande */
    margin-top: 15px;
    background: var(--gradient-primary); /* Degradado del color principal */
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    /* Sombra con color principal para "brillo" */
    box-shadow: 0 6px 15px -3px rgba(65, 84, 114, 0.4), 0 3px 6px -3px rgba(65, 84, 114, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-btn:hover {
    background: var(--primary-dark); /* Color más oscuro al hacer hover */
    transform: translateY(-2px);
    /* Sombra más fuerte al hacer hover */
    box-shadow: 0 12px 25px -5px rgba(65, 84, 114, 0.6), 0 6px 10px -5px rgba(65, 84, 114, 0.4);
}


/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.solution-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px dashed var(--primary-light);
    padding-bottom: 5px;
}

.solution-category .card {
    text-align: left;
    margin-bottom: 20px;
    min-height: 280px; /* Altura fija para todas las tarjetas */
    display: flex;
    flex-direction: column;
}

.solution-category .card h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.solution-category .card p {
    margin-bottom: 15px;
}

/* Stats Section */
.hero-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    flex: 1;
    margin: 0 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color); /* Mantener un color contrastante */
    line-height: 1;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-color);
}

/* Call to Action Section */
.cta {
    background: var(--gradient); /* Usa el nuevo gradiente */
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    /* Mismo estilo mejorado que .card-btn pero con un color de acento para diferenciar la CTA */
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 50px; /* Más redondeado para CTA */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 8px 20px -5px rgba(245, 158, 11, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Modal Styles (Popup) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding-top: 60px;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 90%; /* Usa un ancho máximo relativo */
    width: 500px; /* Mantiene un ancho base pero puede encogerse */
    text-align: left;
    animation: fadeInUp 0.4s ease;
}

.close {
    color: var(--primary-color); /* Usando color principal */
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: var(--transition);
    line-height: 1;
    border-radius: 50%;
    padding: 5px 10px;
}

.close:hover,
.close:focus {
    color: var(--primary-dark); /* Color más oscuro al hacer hover */
    text-decoration: none;
    cursor: pointer;
    background-color: var(--light-color);
}

.modal-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 5px;
}

.modal-content p,
.modal-content ul {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Sección de Apoyo - Mejorada */
.support-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white; /* Color de texto blanco por defecto */
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Asegurar que todo el texto sea blanco */
.support-section,
.support-section p,
.support-section h1,
.support-section h2,
.support-section h3,
.support-section h4,
.support-section h5,
.support-section h6,
.support-section span,
.support-section a,
.support-section li,
.support-section label,
.support-section .fa-heart {
    color: white !important;
}

/* Mejorar contraste de enlaces */
.support-section a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.support-section a:hover {
    border-bottom-color: white;
    opacity: 0.9;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.support-section .section-header h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    display: inline-block;
}

.support-section .section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.support-content {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    color: white; /* Asegurar texto blanco en el contenido */
}

/* Mejorar legibilidad de los botones */
.support-content .btn {
    color: var(--primary-color);
    background: white;
    border: 2px solid white;
}

.support-content .btn:hover {
    background: transparent;
    color: white;
}

.support-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-counter {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.support-counter::after {
    content: '';
}

.support-counter span:first-child {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-actions {
    margin-bottom: 2rem;
}

.support-button {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.support-button:hover::before {
    left: 100%;
}

.support-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.support-button:hover i {
    transform: scale(1.2);
}

.support-message {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.support-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de confeti al hacer clic */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    opacity: 0;
    z-index: 1000;
    animation: confetti 3s ease-out forwards;
}

/* Footer */
.footer {
    background-color: var(--dark-color); /* Fondo oscuro para contraste */
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

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

.footer h3 {
    color: var(--primary-light); /* Tonalidad más clara de la marca */
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-links a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.6rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color); /* Color de marca para hover */
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14.5px;
    }
    .container {
        padding: 0 15px;
    }
    .navigation,
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    }
    .header-side.header-right {
        justify-content: center !important;
        width: 100%;
        margin: 0 auto !important;
        flex-shrink: 1;
        flex-basis: 100%; /* Ocupa todo el ancho si se envuelve */
        order: 2; /* Cambia el orden si es necesario */
    }
    .logo-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto !important;
    }
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
        order: 1; /* Asegura que el botón aparezca primero si se envuelve */
    }
    .header-download-plan .download-btn {
        font-size: 0.9rem; /* Reducir un poco para más compatibilidad */
        padding: 0.4rem 0.7rem;
    }

    /* Hero Section */
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    /* Niko logo under profile - shown only on mobile */
    .niko-under-profile {
        display: block;
        width: 200px; /* Increased from 100px to 200px */
        max-width: 90vw;
        margin: 0 auto;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
}

/* Botón de descarga del plan de gobierno en la sección hero (oculto por defecto) */
.hero-download-plan {
    display: none;
}

/* CSS Variables */
:root {
    --primary-color: #415472; /* Color principal solicitado: #415472 */
    --primary-dark: #31415a; /* Tonalidad más oscura para hover y gradientes */
    --primary-light: #52678C; /* Tonalidad más clara para detalles */
    --secondary-color: #dc2626;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Nuevos gradientes usando el color principal */
    --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px; /* Ligero aumento */
    --border-radius-lg: 20px;
}

/* Hide Niko logo by default (for desktop) */
.niko-under-profile {
    display: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Previene el scroll horizontal en el body */
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Asegura que el contenedor ocupe el ancho disponible */
}

/* Header */
.header {
    background: var(--gradient);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Clase para el menú activo */
.nav-menu.active {
    left: 0;
}

/* Transición suave para el menú */
.nav-menu {
    transition: transform 0.3s ease-in-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.5rem 2rem;
    gap: 1rem;
}

/* Header Side Containers */
.header-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
    padding: 0 0.5rem;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

/* Logo container */
.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 56px;
    width: auto;
    max-width: 120px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.candidate-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    color: var(--white);
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-radius: 50px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Sombra sutil al activar/hover */
}

.nav-link::after {
    display: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
    margin-top: -20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('back.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.4; /* Imagen más transparente */
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Fondo oscuro más claro */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem;
}

/* Hero Header */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-align: center;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}


.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

.download-btn:active {
    transform: translateY(1px);
}

.hero-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem; /* Espacio mínimo entre elementos */
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Diagnosis Section */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section#diagnostico {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.section#diagnostico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(65, 84, 114, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h2 i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.diagnosis-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.diagnosis-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(65, 84, 114, 0.2);
}

.diagnosis-content {
    text-align: center;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Card Grid Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color); /* Borde superior con color de marca */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card p {
    color: var(--gray-color);
    font-size: 1rem;
    min-height: 48px; /* Altura mínima para mantener tarjetas uniformes */
}

/* Botón Mejorado (Nuevo Estilo para .card-btn) */
.card-btn {
    display: inline-block;
    padding: 12px 24px; /* Ligeramente más grande */
    margin-top: 15px;
    background: var(--gradient-primary); /* Degradado del color principal */
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    /* Sombra con color principal para "brillo" */
    box-shadow: 0 6px 15px -3px rgba(65, 84, 114, 0.4), 0 3px 6px -3px rgba(65, 84, 114, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-btn:hover {
    background: var(--primary-dark); /* Color más oscuro al hacer hover */
    transform: translateY(-2px);
    /* Sombra más fuerte al hacer hover */
    box-shadow: 0 12px 25px -5px rgba(65, 84, 114, 0.6), 0 6px 10px -5px rgba(65, 84, 114, 0.4);
}


/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.solution-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px dashed var(--primary-light);
    padding-bottom: 5px;
}

.solution-category .card {
    text-align: left;
    margin-bottom: 20px;
    min-height: 280px; /* Altura fija para todas las tarjetas */
    display: flex;
    flex-direction: column;
}

.solution-category .card h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.solution-category .card p {
    margin-bottom: 15px;
}

/* Stats Section */
.hero-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    flex: 1;
    margin: 0 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color); /* Mantener un color contrastante */
    line-height: 1;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-color);
}

/* Call to Action Section */
.cta {
    background: var(--gradient); /* Usa el nuevo gradiente */
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    /* Mismo estilo mejorado que .card-btn pero con un color de acento para diferenciar la CTA */
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 50px; /* Más redondeado para CTA */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 8px 20px -5px rgba(245, 158, 11, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Modal Styles (Popup) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding-top: 60px;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 90%; /* Usa un ancho máximo relativo */
    width: 500px; /* Mantiene un ancho base pero puede encogerse */
    text-align: left;
    animation: fadeInUp 0.4s ease;
}

.close {
    color: var(--primary-color); /* Usando color principal */
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: var(--transition);
    line-height: 1;
    border-radius: 50%;
    padding: 5px 10px;
}

.close:hover,
.close:focus {
    color: var(--primary-dark); /* Color más oscuro al hacer hover */
    text-decoration: none;
    cursor: pointer;
    background-color: var(--light-color);
}

.modal-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 5px;
}

.modal-content p,
.modal-content ul {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Sección de Apoyo - Mejorada */
.support-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white; /* Color de texto blanco por defecto */
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Asegurar que todo el texto sea blanco */
.support-section,
.support-section p,
.support-section h1,
.support-section h2,
.support-section h3,
.support-section h4,
.support-section h5,
.support-section h6,
.support-section span,
.support-section a,
.support-section li,
.support-section label,
.support-section .fa-heart {
    color: white !important;
}

/* Mejorar contraste de enlaces */
.support-section a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.support-section a:hover {
    border-bottom-color: white;
    opacity: 0.9;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.support-section .section-header h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    display: inline-block;
}

.support-section .section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.support-content {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    color: white; /* Asegurar texto blanco en el contenido */
}

/* Mejorar legibilidad de los botones */
.support-content .btn {
    color: var(--primary-color);
    background: white;
    border: 2px solid white;
}

.support-content .btn:hover {
    background: transparent;
    color: white;
}

.support-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-counter {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.support-counter::after {
    content: '';
}

.support-counter span:first-child {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-actions {
    margin-bottom: 2rem;
}

.support-button {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.support-button:hover::before {
    left: 100%;
}

.support-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.support-button:hover i {
    transform: scale(1.2);
}

.support-message {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.support-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de confeti al hacer clic */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    opacity: 0;
    z-index: 1000;
    animation: confetti 3s ease-out forwards;
}

/* Footer */
.footer {
    background-color: var(--dark-color); /* Fondo oscuro para contraste */
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

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

.footer h3 {
    color: var(--primary-light); /* Tonalidad más clara de la marca */
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-links a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.6rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color); /* Color de marca para hover */
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14.5px;
    }
    .container {
        padding: 0 15px;
    }
    .navigation,
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    }
    .header-side.header-right {
        justify-content: center !important;
        width: 100%;
        margin: 0 auto !important;
        flex-shrink: 1;
        flex-basis: 100%; /* Ocupa todo el ancho si se envuelve */
        order: 2; /* Cambia el orden si es necesario */
    }
    .logo-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto !important;
    }
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
        order: 1; /* Asegura que el botón aparezca primero si se envuelve */
    }
    .header-download-plan .download-btn {
        font-size: 0.9rem; /* Reducir un poco para más compatibilidad */
        padding: 0.4rem 0.7rem;
    }

    /* Hero Section */
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    /* Niko logo under profile - shown only on mobile */
    .niko-under-profile {
        display: block;
        width: 200px; /* Increased from 100px to 200px */
        max-width: 90vw;
        margin: 0 auto;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        padding-top: 60px;
        animation: fadeIn 0.3s;
    }

    .modal-content {
        width: 90%; /* Asegura que el modal se ajuste en móviles */
        padding: 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    }
/* Mostrar botón de descarga entre los logos del header solo en mobile */
.header-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
    }
    .header-download-plan .download-btn {
        font-size: 1.05rem;
        padding: 0.5rem 1.2rem;
    }
}
/* Mostrar botón de descarga entre los logos solo en mobile */
.hero-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    /* Opcional: agrandar el botón en mobile */
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}
/* Ocultar logos laterales en la sección hero en mobile */
@media (max-width: 768px) {
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}
/* CSS Variables */
:root {
    --primary-color: #415472; /* Color principal solicitado: #415472 */
    --primary-dark: #31415a; /* Tonalidad más oscura para hover y gradientes */
    --primary-light: #52678C; /* Tonalidad más clara para detalles */
    --secondary-color: #dc2626;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Nuevos gradientes usando el color principal */
    --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px; /* Ligero aumento */
    --border-radius-lg: 20px;
}

/* Hide Niko logo by default (for desktop) */
.niko-under-profile {
    display: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Previene el scroll horizontal en el body */
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Asegura que el contenedor ocupe el ancho disponible */
}

/* Header */
.header {
    background: var(--gradient);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Clase para el menú activo */
.nav-menu.active {
    left: 0;
}

/* Transición suave para el menú */
.nav-menu {
    transition: transform 0.3s ease-in-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.5rem 2rem;
    gap: 1rem;
}

/* Header Side Containers */
.header-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
    padding: 0 0.5rem;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

/* Logo container */
.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 56px;
    width: auto;
    max-width: 120px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.candidate-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    color: var(--white);
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-radius: 50px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Sombra sutil al activar/hover */
}

.nav-link::after {
    display: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
    margin-top: -20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('back.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.4; /* Imagen más transparente */
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Fondo oscuro más claro */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem;
}

/* Hero Header */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-align: center;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}


.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

.download-btn:active {
    transform: translateY(1px);
}

.hero-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem; /* Espacio mínimo entre elementos */
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Diagnosis Section */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section#diagnostico {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.section#diagnostico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(65, 84, 114, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h2 i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.diagnosis-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.diagnosis-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(65, 84, 114, 0.2);
}

.diagnosis-content {
    text-align: center;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Card Grid Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color); /* Borde superior con color de marca */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card p {
    color: var(--gray-color);
    font-size: 1rem;
    min-height: 48px; /* Altura mínima para mantener tarjetas uniformes */
}

/* Botón Mejorado (Nuevo Estilo para .card-btn) */
.card-btn {
    display: inline-block;
    padding: 12px 24px; /* Ligeramente más grande */
    margin-top: 15px;
    background: var(--gradient-primary); /* Degradado del color principal */
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    /* Sombra con color principal para "brillo" */
    box-shadow: 0 6px 15px -3px rgba(65, 84, 114, 0.4), 0 3px 6px -3px rgba(65, 84, 114, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-btn:hover {
    background: var(--primary-dark); /* Color más oscuro al hacer hover */
    transform: translateY(-2px);
    /* Sombra más fuerte al hacer hover */
    box-shadow: 0 12px 25px -5px rgba(65, 84, 114, 0.6), 0 6px 10px -5px rgba(65, 84, 114, 0.4);
}


/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.solution-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px dashed var(--primary-light);
    padding-bottom: 5px;
}

.solution-category .card {
    text-align: left;
    margin-bottom: 20px;
    min-height: 280px; /* Altura fija para todas las tarjetas */
    display: flex;
    flex-direction: column;
}

.solution-category .card h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.solution-category .card p {
    margin-bottom: 15px;
}

/* Stats Section */
.hero-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    flex: 1;
    margin: 0 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color); /* Mantener un color contrastante */
    line-height: 1;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-color);
}

/* Call to Action Section */
.cta {
    background: var(--gradient); /* Usa el nuevo gradiente */
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    /* Mismo estilo mejorado que .card-btn pero con un color de acento para diferenciar la CTA */
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 50px; /* Más redondeado para CTA */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 8px 20px -5px rgba(245, 158, 11, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Modal Styles (Popup) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding-top: 60px;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 90%; /* Usa un ancho máximo relativo */
    width: 500px; /* Mantiene un ancho base pero puede encogerse */
    text-align: left;
    animation: fadeInUp 0.4s ease;
}

.close {
    color: var(--primary-color); /* Usando color principal */
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: var(--transition);
    line-height: 1;
    border-radius: 50%;
    padding: 5px 10px;
}

.close:hover,
.close:focus {
    color: var(--primary-dark); /* Color más oscuro al hacer hover */
    text-decoration: none;
    cursor: pointer;
    background-color: var(--light-color);
}

.modal-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 5px;
}

.modal-content p,
.modal-content ul {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Sección de Apoyo - Mejorada */
.support-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white; /* Color de texto blanco por defecto */
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Asegurar que todo el texto sea blanco */
.support-section,
.support-section p,
.support-section h1,
.support-section h2,
.support-section h3,
.support-section h4,
.support-section h5,
.support-section h6,
.support-section span,
.support-section a,
.support-section li,
.support-section label,
.support-section .fa-heart {
    color: white !important;
}

/* Mejorar contraste de enlaces */
.support-section a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.support-section a:hover {
    border-bottom-color: white;
    opacity: 0.9;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.support-section .section-header h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    display: inline-block;
}

.support-section .section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.support-content {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    color: white; /* Asegurar texto blanco en el contenido */
}

/* Mejorar legibilidad de los botones */
.support-content .btn {
    color: var(--primary-color);
    background: white;
    border: 2px solid white;
}

.support-content .btn:hover {
    background: transparent;
    color: white;
}

.support-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-counter {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.support-counter::after {
    content: '';
}

.support-counter span:first-child {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-actions {
    margin-bottom: 2rem;
}

.support-button {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.support-button:hover::before {
    left: 100%;
}

.support-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.support-button:hover i {
    transform: scale(1.2);
}

.support-message {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.support-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de confeti al hacer clic */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    opacity: 0;
    z-index: 1000;
    animation: confetti 3s ease-out forwards;
}

/* Footer */
.footer {
    background-color: var(--dark-color); /* Fondo oscuro para contraste */
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

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

.footer h3 {
    color: var(--primary-light); /* Tonalidad más clara de la marca */
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-links a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.6rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color); /* Color de marca para hover */
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14.5px;
    }
    .container {
        padding: 0 15px;
    }
    .navigation,
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    }
    .header-side.header-right {
        justify-content: center !important;
        width: 100%;
        margin: 0 auto !important;
        flex-shrink: 1;
        flex-basis: 100%; /* Ocupa todo el ancho si se envuelve */
        order: 2; /* Cambia el orden si es necesario */
    }
    .logo-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto !important;
    }
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
        order: 1; /* Asegura que el botón aparezca primero si se envuelve */
    }
    .header-download-plan .download-btn {
        font-size: 0.9rem; /* Reducir un poco para más compatibilidad */
        padding: 0.4rem 0.7rem;
    }

    /* Hero Section */
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    /* Niko logo under profile - shown only on mobile */
    .niko-under-profile {
        display: block;
        width: 200px; /* Increased from 100px to 200px */
        max-width: 90vw;
        margin: 0 auto;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        padding-top: 60px;
        animation: fadeIn 0.3s;
    }

    .modal-content {
        width: 90%; /* Asegura que el modal se ajuste en móviles */
        padding: 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    }
/* Mostrar botón de descarga entre los logos del header solo en mobile */
.header-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
    }
    .header-download-plan .download-btn {
        font-size: 1.05rem;
        padding: 0.5rem 1.2rem;
    }
}
/* Mostrar botón de descarga entre los logos solo en mobile */
.hero-download-plan {
    display: none;
}
@media (max-width: 768px) {
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    /* Opcional: agrandar el botón en mobile */
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}
/* Ocultar logos laterales en la sección hero en mobile */
@media (max-width: 768px) {
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}
/* CSS Variables */
:root {
    --primary-color: #415472; /* Color principal solicitado: #415472 */
    --primary-dark: #31415a; /* Tonalidad más oscura para hover y gradientes */
    --primary-light: #52678C; /* Tonalidad más clara para detalles */
    --secondary-color: #dc2626;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Nuevos gradientes usando el color principal */
    --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px; /* Ligero aumento */
    --border-radius-lg: 20px;
}

/* Hide Niko logo by default (for desktop) */
.niko-under-profile {
    display: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Previene el scroll horizontal en el body */
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Asegura que el contenedor ocupe el ancho disponible */
}

/* Header */
.header {
    background: var(--gradient);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Clase para el menú activo */
.nav-menu.active {
    left: 0;
}

/* Transición suave para el menú */
.nav-menu {
    transition: transform 0.3s ease-in-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.5rem 2rem;
    gap: 1rem;
}

/* Header Side Containers */
.header-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0; /* Prevents flex items from overflowing */
    padding: 0 0.5rem;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

/* Logo container */
.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 56px;
    width: auto;
    max-width: 120px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.candidate-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    color: var(--white);
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-radius: 50px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Sombra sutil al activar/hover */
}

.nav-link::after {
    display: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
    margin-top: -20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('back.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.4; /* Imagen más transparente */
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Fondo oscuro más claro */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem;
}

/* Hero Header */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-align: center;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}


.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

.download-btn:active {
    transform: translateY(1px);
}

.hero-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem; /* Espacio mínimo entre elementos */
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Diagnosis Section */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section#diagnostico {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.section#diagnostico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(65, 84, 114, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h2 i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.diagnosis-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.diagnosis-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(65, 84, 114, 0.2);
}

.diagnosis-content {
    text-align: center;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Card Grid Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color); /* Borde superior con color de marca */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card p {
    color: var(--gray-color);
    font-size: 1rem;
    min-height: 48px; /* Altura mínima para mantener tarjetas uniformes */
}

/* Botón Mejorado (Nuevo Estilo para .card-btn) */
.card-btn {
    display: inline-block;
    padding: 12px 24px; /* Ligeramente más grande */
    margin-top: 15px;
    background: var(--gradient-primary); /* Degradado del color principal */
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    /* Sombra con color principal para "brillo" */
    box-shadow: 0 6px 15px -3px rgba(65, 84, 114, 0.4), 0 3px 6px -3px rgba(65, 84, 114, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-btn:hover {
    background: var(--primary-dark); /* Color más oscuro al hacer hover */
    transform: translateY(-2px);
    /* Sombra más fuerte al hacer hover */
    box-shadow: 0 12px 25px -5px rgba(65, 84, 114, 0.6), 0 6px 10px -5px rgba(65, 84, 114, 0.4);
}


/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.solution-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px dashed var(--primary-light);
    padding-bottom: 5px;
}

.solution-category .card {
    text-align: left;
    margin-bottom: 20px;
    min-height: 280px; /* Altura fija para todas las tarjetas */
    display: flex;
    flex-direction: column;
}

.solution-category .card h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.solution-category .card p {
    margin-bottom: 15px;
}

/* Stats Section */
.hero-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    flex: 1;
    margin: 0 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color); /* Mantener un color contrastante */
    line-height: 1;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-color);
}

/* Call to Action Section */
.cta {
    background: var(--gradient); /* Usa el nuevo gradiente */
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    /* Mismo estilo mejorado que .card-btn pero con un color de acento para diferenciar la CTA */
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 50px; /* Más redondeado para CTA */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 8px 20px -5px rgba(245, 158, 11, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.8);
}

/* Modal Styles (Popup) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding-top: 60px;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 90%; /* Usa un ancho máximo relativo */
    width: 500px; /* Mantiene un ancho base pero puede encogerse */
    text-align: left;
    animation: fadeInUp 0.4s ease;
}

.close {
    color: var(--primary-color); /* Usando color principal */
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: var(--transition);
    line-height: 1;
    border-radius: 50%;
    padding: 5px 10px;
}

.close:hover,
.close:focus {
    color: var(--primary-dark); /* Color más oscuro al hacer hover */
    text-decoration: none;
    cursor: pointer;
    background-color: var(--light-color);
}

.modal-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 5px;
}

.modal-content p,
.modal-content ul {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Sección de Apoyo - Mejorada */
.support-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white; /* Color de texto blanco por defecto */
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Asegurar que todo el texto sea blanco */
.support-section,
.support-section p,
.support-section h1,
.support-section h2,
.support-section h3,
.support-section h4,
.support-section h5,
.support-section h6,
.support-section span,
.support-section a,
.support-section li,
.support-section label,
.support-section .fa-heart {
    color: white !important;
}

/* Mejorar contraste de enlaces */
.support-section a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.support-section a:hover {
    border-bottom-color: white;
    opacity: 0.9;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.support-section .section-header h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    display: inline-block;
}

.support-section .section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.support-content {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    color: white; /* Asegurar texto blanco en el contenido */
}

/* Mejorar legibilidad de los botones */
.support-content .btn {
    color: var(--primary-color);
    background: white;
    border: 2px solid white;
}

.support-content .btn:hover {
    background: transparent;
    color: white;
}

.support-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-counter {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.support-counter::after {
    content: '';
}

.support-counter span:first-child {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-actions {
    margin-bottom: 2rem;
}

.support-button {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.support-button:hover::before {
    left: 100%;
}

.support-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.support-button:hover i {
    transform: scale(1.2);
}

.support-message {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.support-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de confeti al hacer clic */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    opacity: 0;
    z-index: 1000;
    animation: confetti 3s ease-out forwards;
}

/* Footer */
.footer {
    background-color: var(--dark-color); /* Fondo oscuro para contraste */
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

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

.footer h3 {
    color: var(--primary-light); /* Tonalidad más clara de la marca */
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-links a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.6rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color); /* Color de marca para hover */
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14.5px;
    }
    .container {
        padding: 0 15px;
    }
    .navigation,
    .hero-logo-container.left-logo,
    .hero-logo-container.right-logo {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    }
    .header-side.header-right {
        justify-content: center !important;
        width: 100%;
        margin: 0 auto !important;
        flex-shrink: 1;
        flex-basis: 100%; /* Ocupa todo el ancho si se envuelve */
        order: 2; /* Cambia el orden si es necesario */
    }
    .logo-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto !important;
    }
    .header-side.header-left {
        display: none !important;
    }
    .header-download-plan {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
        order: 1; /* Asegura que el botón aparezca primero si se envuelve */
    }
    .header-download-plan .download-btn {
        font-size: 0.9rem; /* Reducir un poco para más compatibilidad */
        padding: 0.4rem 0.7rem;
    }

    /* Hero Section */
    .hero-download-plan {
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    .hero-download-plan .download-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    /* Niko logo under profile - shown only on mobile */
    .niko-under-profile {
        display: block;
        width: 200px; /* Increased from 100px to 200px */
        max-width: 90vw;
        margin: 0 auto;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }   

/* Estilos para el contador de visitantes */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-top: 10px;
}

.visitor-counter i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.visitor-counter #visitorCount {
    font-weight: bold;
    color: var(--white);
}

@media (max-width: 768px) {
    .visitor-counter {
        font-size: 0.8rem;
    }
}
}