/* =========================================== */
/* === Estilos Landing Page ENARM & GO === */
/* =========================================== */

/* --- Variables de Color (Ajusta según tu paleta) --- */
:root {
    --landing-primary-color: #005073; /* Azul Oscuro (más serio) */
    --landing-secondary-color: #ff9800; /* Naranja (Botones principales) */
    --landing-accent-color: #4CAF50; /* Verde (Éxito, características) */
    --landing-text-color: #333;
    --landing-text-light: #555;
    --landing-bg-light: #f8f9fa; /* Fondo general muy claro */
    --landing-bg-white: #ffffff;
    --landing-bg-section-alt: #eef3f7; /* Fondo alterno suave */
    --landing-border-color: #dee2e6;
}

/* --- Reset Básico y Body --- */
.enarmango-landing {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--landing-text-color);
    line-height: 1.6;
    background-color: var(--landing-bg-light); /* Fondo general */
}

/* Eliminar padding del tema si interfiere */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important; /* Ajusta si usas Elementor u otro builder */
}
.site-content .container {
     max-width: none; /* Ajusta según tu tema */
     padding-left: 0;
     padding-right: 0;
}


/* --- Contenedor Principal --- */
.landing-container {
    max-width: 1140px; /* Ancho máximo del contenido */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* --- Estilos Comunes de Sección --- */
.landing-section {
    padding: 60px 0; /* Espaciado vertical */
    text-align: center; /* Centrado por defecto */
}
.landing-section:nth-child(even) { /* Fondo alterno para ritmo visual */
   /* background-color: var(--landing-bg-section-alt); */ /* Descomenta si quieres fondo alterno */
}
.landing-section h2 {
    font-size: 2.2em;
    font-weight: 600;
    color: var(--landing-primary-color);
    margin-top: 0;
    margin-bottom: 40px;
}
.landing-section p {
    color: var(--landing-text-light);
    max-width: 700px; /* Limitar ancho de párrafos */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

/* --- Botones Comunes --- */
.enarmango-landing .enarmango-button { /* Hacer más específico */
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px; /* Botones redondeados */
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: normal;
}
.enarmango-landing .enarmango-button:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}
.enarmango-landing .landing-button-primary {
    background-color: var(--landing-secondary-color); /* Naranja */
    color: white !important;
}
.enarmango-landing .landing-button-primary:hover {
    background-color: #fb8c00; /* Naranja oscuro */
}
.enarmango-landing .landing-button-secondary {
    background-color: transparent;
    color: var(--landing-primary-color) !important;
    border: 2px solid var(--landing-primary-color);
}
.enarmango-landing .landing-button-secondary:hover {
    background-color: var(--landing-primary-color);
    color: white !important;
}

/* Spinner dentro de botones */
.enarmango-landing .enarmango-button .spinner {
    width: 16px; height: 16px; border-width: 2px; margin-right: 8px; vertical-align: middle;
}
.enarmango-landing .enarmango-button:disabled .spinner {
    display: inline-block;
}
.enarmango-landing .enarmango-button:disabled {
    opacity: 0.7; cursor: not-allowed;
}


/* === Sección Hero === */
.landing-hero {
    background-color: var(--landing-primary-color); /* Fondo azul oscuro */
    color: var(--landing-bg-white);
    padding: 80px 0;
    /* background-image: url('tu-imagen-hero.jpg'); */ /* Descomenta y ajusta */
    /* background-size: cover; */
    /* background-position: center; */
}
.landing-hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.landing-hero h2 {
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9); /* Blanco semi-transparente */
}
.landing-hero .hero-subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin-bottom: 30px;
}
.landing-hero .hero-cta {
    margin-bottom: 15px;
}
/* Hacer el botón primario más grande en el hero */
.landing-hero .landing-button-primary {
    padding: 15px 40px;
    font-size: 1.1em;
}
.landing-hero .hero-login-link {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}
.landing-hero .hero-login-link a {
    color: var(--landing-bg-white);
    text-decoration: underline;
    font-weight: 500;
}
.landing-hero .hero-login-link a:hover {
    text-decoration: none;
}

/* === Sección Características === */
.landing-features {
     background-color: var(--landing-bg-white); /* Fondo blanco para esta sección */
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Columnas flexibles */
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left; /* Alinear texto de features a la izquierda */
}
.feature-item {
    padding: 20px;
    /* Opcional: Añadir borde o fondo sutil */
    /* border: 1px solid var(--landing-border-color); */
    /* border-radius: 8px; */
}
.feature-icon {
    font-size: 36px;
    color: var(--landing-accent-color); /* Verde */
    margin-bottom: 15px;
    display: block; /* Para que el margen funcione */
    /* text-align: center; /* Centrar icono si se prefiere */
}
.feature-item h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--landing-primary-color);
}
.feature-item p {
    font-size: 0.95em;
    margin-left: 0; /* Resetear margen auto */
    margin-right: 0;
    max-width: none; /* Sin límite de ancho aquí */
}
.features-cta {
    margin-top: 30px;
}


/* === Sección Simuladores Recomendados === */
.landing-examples {
    /* background-color: var(--landing-bg-section-alt); */ /* Fondo alterno? */
}
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}
.example-link {
    display: block;
    padding: 15px;
    border: 1px solid var(--landing-border-color);
    border-radius: 6px;
    background-color: var(--landing-bg-white);
    color: var(--landing-text-light);
    text-decoration: none;
    font-size: 0.9em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.example-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: var(--landing-primary-color);
    border-color: var(--landing-primary-color);
}

/* === Secciones con 2 Columnas (Resultados, Progreso) === */
.landing-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left; /* Alinear texto a la izquierda */
}
.landing-grid-2col .landing-text-col h2 {
     text-align: left; /* Sobreescribir centrado general */
     margin-bottom: 20px;
}
.landing-grid-2col .landing-text-col p {
    max-width: none; /* Sin límite de ancho */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 25px;
}
.landing-image-col img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Para invertir columnas en la sección de Progreso */
/* En desktop, no hacemos nada especial aún */


/* === Sección Testimonios === */
.landing-testimonials {
    /* background-color: var(--landing-bg-section-alt); */
}
.testimonial-placeholder {
    font-style: italic;
    color: #888;
    margin-top: 30px;
}

/* === Sección Precios === */
.landing-pricing {
    background-color: var(--landing-bg-white);
}
.pricing-box {
    max-width: 450px; /* Ancho de la caja de precio */
    margin: 40px auto 0 auto;
    border: 2px solid var(--landing-secondary-color); /* Borde naranja */
    border-radius: 10px;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.price-tag {
    margin-bottom: 15px;
}
.price-amount {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--landing-primary-color);
}
.price-currency {
    font-size: 1.2em;
    color: var(--landing-text-light);
    margin-left: 5px;
}
.price-duration {
    font-size: 1em;
    color: var(--landing-text-light);
    margin-bottom: 20px;
}
.price-promo {
    background-color: #fff3e0; /* Naranja muy pálido */
    color: #e65100; /* Naranja oscuro */
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 1em;
    border: 1px dashed #ffcc80;
}
.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}
.price-features li {
    margin-bottom: 10px;
    color: var(--landing-text-light);
    font-size: 0.95em;
}
.price-features li::before { /* Simular checkmark */
    content: '✓';
    color: var(--landing-accent-color);
    font-weight: bold;
    margin-right: 10px;
}
.price-cta {
    width: 100%; /* Botón ocupa todo el ancho */
    padding: 15px; /* Botón más grande */
    font-size: 1.1em;
    margin-bottom: 15px;
}
.price-trial, .price-promo-details {
    font-size: 0.85em;
    color: #777;
    margin-top: 10px;
    margin-bottom: 0;
}
.price-trial a {
     color: var(--landing-primary-color);
     text-decoration: underline;
}

/* === Sección Contacto === */
.landing-contact {
     /* background-color: var(--landing-bg-section-alt); */
}
.landing-contact p {
    margin-bottom: 30px;
}


/* =========================================== */
/* === RESPONSIVIDAD === */
/* =========================================== */
@media (max-width: 768px) {
    .landing-section {
        padding: 40px 0; /* Menos padding vertical */
    }
    .landing-section h2 {
        font-size: 1.8em; /* Títulos más pequeños */
        margin-bottom: 30px;
    }
    .landing-hero h1 { font-size: 2.5em; }
    .landing-hero h2 { font-size: 1.4em; }
    .landing-hero .hero-subtitle { font-size: 1em; }
    .landing-hero .landing-button-primary { padding: 12px 30px; font-size: 1em; }

    .features-grid {
        grid-template-columns: 1fr; /* 1 columna */
        gap: 20px;
    }
    .feature-item {
        text-align: center; /* Centrar contenido de features */
    }
     .feature-item .feature-icon {
         margin-left: auto; margin-right: auto; /* Centrar icono */
     }
     .feature-item p { text-align: center; }

    .examples-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en móvil */
    }

    .landing-grid-2col {
        grid-template-columns: 1fr; /* 1 columna */
        gap: 30px;
        text-align: center; /* Centrar texto en móvil */
    }
    .landing-grid-2col .landing-text-col h2 {
        text-align: center;
    }
    .landing-grid-2col .landing-text-col p {
        margin-left: auto;
        margin-right: auto;
    }
    .landing-grid-2col .landing-image-col {
        /* Por defecto el texto va primero, imagen después */
        order: 2; /* Mover imagen abajo */
    }
    .landing-grid-2col .landing-text-col {
        order: 1; /* Mover texto arriba */
    }
    /* Para la sección con reverse-cols, revertir el orden en móvil */
    .landing-grid-2col.reverse-cols .landing-image-col {
        order: 1; /* Imagen arriba */
    }
    .landing-grid-2col.reverse-cols .landing-text-col {
        order: 2; /* Texto abajo */
    }
    .landing-image-col img {
        margin: 0 auto; /* Centrar imagen si el contenedor es más ancho */
        display: block;
    }

    .pricing-box {
        padding: 20px;
    }
    .price-amount { font-size: 2.4em; }
    
         .landing-challenges h2 .dashicons { font-size: 1em; }
     .challenges-grid {
         grid-template-columns: 1fr; /* 1 columna en móvil */
         gap: 15px;
     }
     .challenge-link { padding: 15px; }
     .challenge-title { font-size: 1em; }
     .challenge-creator { font-size: 0.8em; }
     .challenge-prize { font-size: 0.75em; }
}

/* === Sección Simuladores Recomendados (Ajuste Botón Acción) === */
.example-link-action {
    background-color: var(--landing-primary-color); /* Fondo azul */
    color: white;
    font-weight: 600;
    text-align: center;
    display: flex; /* Para centrar contenido si es necesario */
    align-items: center;
    justify-content: center;
    border-color: var(--landing-primary-color);
}
.example-link-action:hover {
    background-color: #003c5a; /* Azul más oscuro */
    color: white;
    border-color: #003c5a;
    transform: translateY(-3px); /* Mantiene efecto hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* === Sección Desafíos === */
.landing-challenges {
     /* background-color: var(--landing-bg-section-alt); */ /* Fondo alterno? */
     padding-top: 50px; /* Ajustar padding si es necesario */
     padding-bottom: 50px;
}
.landing-challenges h2 .dashicons {
    margin-right: 10px;
    vertical-align: middle;
    color: var(--landing-secondary-color); /* Icono naranja */
    font-size: 1.1em; /* Ligeramente más grande que el texto h2 */
}
.landing-challenges p {
    max-width: 750px; /* Ajustar ancho del párrafo introductorio */
    margin-bottom: 40px;
}

.challenges-grid {
    display: grid;
    /* 3 columnas en desktop, ajusta minmax según prefieras */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.challenge-link {
    display: block;
    background-color: var(--landing-bg-white);
    border: 1px solid var(--landing-border-color);
    border-left: 4px solid var(--landing-secondary-color); /* Borde naranja a la izquierda */
    border-radius: 6px;
    padding: 18px 20px;
    text-decoration: none;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.challenge-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.challenge-title {
    display: block;
    font-weight: 600;
    color: var(--landing-primary-color);
    font-size: 1.1em;
    margin-bottom: 8px;
}

.challenge-creator {
    display: block;
    font-size: 0.85em;
    color: var(--landing-text-light);
    margin-bottom: 10px;
}

.challenge-prize {
    display: inline-block; /* Para que no ocupe toda la línea */
    font-size: 0.8em;
    font-weight: 500;
    color: #c87000; /* Naranja oscuro para premio */
    background-color: #fff3e0; /* Fondo naranja pálido */
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #ffe0b2;
}
.challenge-prize .dashicons { /* Si usas icono dentro */
     font-size: 1.1em;
     vertical-align: middle;
     margin-right: 3px;
}

.challenges-cta {
    margin-top: 20px; /* Espacio después del grid */
}

/* =========================================== */
/* === Estilos Modal de Registro === */
/* =========================================== */

.landing-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1050; /* Encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Scroll si el contenido es muy alto */
    background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
    /* Usar Flexbox para centrar el contenido */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Para animación */
    visibility: hidden; /* Para animación */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.landing-modal.is-visible { /* Clase para mostrar el modal */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.landing-modal-content {
    background-color: #fff;
    padding: 30px 35px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px; /* Ancho máximo del modal */
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center; /* Centrar contenido */
    transform: translateY(-20px); /* Para animación */
    transition: transform 0.3s ease;
}

.landing-modal.is-visible .landing-modal-content {
    transform: translateY(0); /* Estado final de la animación */
}


.landing-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}
.landing-modal-close:hover {
    color: #333;
}

.landing-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6em;
    color: var(--landing-primary-color);
}

.landing-modal-content p {
    color: var(--landing-text-light);
    margin-bottom: 25px;
    font-size: 1em;
    max-width: none; /* Permitir que ocupe ancho del modal */
}

.modal-login-buttons {
    /* Estilos para centrar el botón de Facebook u otros */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Espacio entre botones/links */
}

/* Ajustar botón de Nextend si es necesario */
.modal-login-buttons .nsl-container-block {
    width: 100%;
    max-width: 280px; /* O el ancho que prefieras */
}

.modal-alt-options {
    font-size: 0.85em;
    color: #777;
    margin-top: 15px;
    margin-bottom: 5px !important; /* Menos margen inferior */
}
.modal-alt-options a {
     color: var(--landing-primary-color);
     text-decoration: underline;
     font-weight: 500;
}
.modal-alt-options a:hover {
     text-decoration: none;
}


/* Responsividad del Modal */
@media (max-width: 768px) {
    .landing-modal-content {
        padding: 25px 20px;
        width: 90%;
    }
    .landing-modal-content h3 {
        font-size: 1.4em;
    }
    .landing-modal-content p {
         font-size: 0.95em;
         margin-bottom: 20px;
    }
}