/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&family=Oswald:wght@400;700&family=Great+Vibes&display=swap'); /* Añadí Great Vibes por si quieres un estilo más cursivo como "Entendidos" */

:root {
    /* Colores extraídos de la imagen */
    --background-dark-purple: #1A0B27; /* Fondo oscuro principal */
    --vibrant-purple: #A146F5; /* Púrpura brillante/neón para títulos clave y acentos */
    --accent-light-purple: #C082E0; /* Púrpura más suave para acentos (ej. bordes, texto "EN LOS") */
    --white-text: #FFFFFF; /* Texto blanco para buena legibilidad en fondos oscuros */
    --muted-purple-outline: #5A2C8A; /* Púrpura tenue para detalles sutiles */
    --button-border-color: #8C40CE; /* Borde de botón/elemento intermedio */

    /* Fuentes */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --impact-font: 'Oswald', sans-serif; /* Para títulos con más impacto, como "TIEMPOS" */
    --script-font: 'Great Vibes', cursive; /* Para un estilo cursivo como "Entendidos" (opcional) */
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--white-text); /* Texto principal blanco */
    background: var(--background-dark-purple); /* Fondo principal oscuro */
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden; /* Clear floats */
}

/* Encabezado (Header) */
header {
    background: var(--background-dark-purple);
    color: var(--white-text);
    padding: 1rem 0;
    border-bottom: 3px solid var(--vibrant-purple); /* Borde con el púrpura brillante */
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

header .logo {
    font-family: var(--heading-font); /* Puedes usar --script-font si quieres el logo cursivo */
    font-size: 1.8rem;
    font-weight: 700;
}

header .logo a {
    color: var(--white-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
header .logo a:hover {
    color: var(--vibrant-purple); /* El logo también puede brillar */
}

header .nav-links {
    list-style: none;
    display: flex;
}

header .nav-links li {
    margin-left: 25px;
}

header .nav-links a {
    color: var(--white-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header .nav-links a:hover {
    color: var(--accent-light-purple); /* Un púrpura más suave para el hover */
}

/* Hero Section */
#hero, #page-hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-text);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 40px 20px;
}

#hero {
    background-image: url('../images/hero-bg.png'); /* Imagen principal */
}

.about-hero {
    background-image: url('../images/about-hero.png'); /* Imagen para la página "Quiénes Eran" */
}

.discernment-hero {
    background-image: url('../images/discernment-hero.png'); /* Imagen para la página "Discerniendo Hoy" */
}

.resources-hero {
    background-image: url('../images/resources-hero.png'); /* Imagen para la página "Recursos" */
}

#hero::before, #page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay oscuro para legibilidad, ajustado un poco más transparente */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

#hero h1, #page-hero h1 {
    font-family: var(--impact-font); /* Usando Oswald para un impacto similar a "TIEMPOS" */
    font-size: 4.5rem; /* Un poco más grande para el impacto */
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--white-text); /* ¡Aquí el cambio clave: texto blanco! */
    /* Múltiples text-shadow para crear el efecto de borde/brillo neón */
    text-shadow: 
        -1px -1px 0px var(--vibrant-purple),  /* Borde nítido superior-izquierdo */
        1px -1px 0px var(--vibrant-purple),   /* Borde nítido superior-derecho */
        -1px 1px 0px var(--vibrant-purple),    /* Borde nítido inferior-izquierdo */
        1px 1px 0px var(--vibrant-purple),     /* Borde nítido inferior-derecho */
        0 0 15px var(--vibrant-purple),        /* Primer nivel de brillo */
        0 0 30px var(--vibrant-purple);        /* Segundo nivel de brillo más difuso */
}
/* Estilo específico para la parte cursiva si se usa una fuente de script */
/*
#hero h1 span.script-part {
    font-family: var(--script-font);
    font-size: 5.5rem; /* Ajusta según sea necesario
    line-height: 1;
}
*/

#hero p, #page-hero p {
    font-size: 1.4rem; /* Un poco más grande */
    margin-bottom: 30px;
}

/* Botones */
.btn {
    display: inline-block;
    background: var(--vibrant-purple); /* Botón con el púrpura vibrante */
    color: var(--white-text);
    padding: 15px 30px; /* Un poco más grandes */
    text-decoration: none;
    border-radius: 8px; /* Bordes más redondeados */
    font-weight: 700; /* Más audaz */
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    box-shadow: 0 0 10px rgba(161, 70, 245, 0.5); /* Sombra neón */
}

.btn:hover {
    background: #8A3AD4; /* Un púrpura ligeramente más oscuro en hover */
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(161, 70, 245, 0.8);
}

.btn-secondary {
    display: inline-block;
    background: var(--accent-light-purple); /* Botón secundario con el púrpura más suave */
    color: var(--white-text);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
}

.btn-secondary:hover {
    background: #A26DD2; /* Un tono un poco más oscuro */
}

/* Secciones de Contenido General */
.content-section {
    padding: 60px 0; /* Más padding */
    background: var(--background-dark-purple); /* Fondo oscuro consistente */
    color: var(--white-text); /* Texto blanco */
}

.content-section h2, .content-section h3, .content-section h4 {
    font-family: var(--heading-font);
    color: var(--vibrant-purple); /* Títulos de sección con el púrpura vibrante */
    margin-bottom: 25px;
    text-align: center;
}

.content-section h2 {
    font-size: 3rem; /* Más grande */
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(161, 70, 245, 0.3);
}

.content-section h3 {
    font-size: 2rem; /* Más grande */
    margin-top: 40px;
    border-bottom: 2px solid var(--accent-light-purple); /* Borde suave */
    display: inline-block;
    padding-bottom: 8px;
    color: var(--accent-light-purple); /* Títulos de subsección con el púrpura suave */
}

.content-section h4 {
    font-size: 1.5rem;
    margin-top: 25px;
    color: var(--accent-light-purple);
}

.content-section p {
    margin-bottom: 18px;
    font-size: 1.15rem; /* Un poco más grande */
    line-height: 1.8;
    text-align: justify;
    color: var(--white-text); /* Aseguramos que el texto del cuerpo sea blanco */
}

.content-section ul, .content-section ol {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--white-text);
}

.content-section ul li, .content-section ol li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.content-section ul a, .content-section ol a {
    color: var(--vibrant-purple); /* Enlaces con el púrpura vibrante */
    text-decoration: none;
}

.content-section ul a:hover, .content-section ol a:hover {
    text-decoration: underline;
    color: var(--accent-light-purple);
}

/* Welcome Section (Index) */
#welcome {
    text-align: center;
    padding: 80px 0;
    background: var(--background-dark-purple); /* Consistente con el fondo */
    border-bottom: 1px solid var(--muted-purple-outline); /* Borde sutil */
}
#welcome p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white-text); /* Asegura el texto blanco */
}

/* Featured Sections (Index) */
#featured-sections {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 80px 0;
    gap: 40px;
    background: var(--background-dark-purple); /* Fondo oscuro */
}

.feature-card {
    background: #2A153D; /* Un púrpura ligeramente más claro que el fondo */
    border-radius: 10px; /* Más redondeado */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada */
    padding: 35px;
    text-align: center;
    width: 30%;
    min-width: 300px; /* Para asegurar que no sean demasiado pequeños */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--muted-purple-outline); /* Borde sutil */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--vibrant-purple); /* Borde brillante al pasar el mouse */
}

.feature-card h3 {
    font-size: 1.8rem;
    color: var(--vibrant-purple); /* Título de tarjeta con el púrpura vibrante */
    margin-bottom: 18px;
    border-bottom: none;
    padding-bottom: 0;
}

.feature-card p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.7;
    text-align: center;
    color: var(--white-text);
}

/* Call to Action (Index) */
#call-to-action {
    background: var(--vibrant-purple); /* Fondo con el púrpura vibrante */
    color: var(--white-text);
    text-align: center;
    padding: 100px 20px;
}

#call-to-action h2 {
    font-size: 3.5rem; /* Más grande */
    color: var(--white-text); /* Título blanco */
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Sombra suave */
}

#call-to-action p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}
#call-to-action .btn {
    background: var(--background-dark-purple); /* Botón invertido para contraste */
    color: var(--vibrant-purple);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#call-to-action .btn:hover {
    background: #2A153D;
    color: var(--accent-light-purple);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}


/* Footer */
footer {
    background: var(--background-dark-purple);
    color: var(--muted-purple-outline); /* Texto más tenue en el footer */
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
    border-top: 1px solid var(--muted-purple-outline);
}

footer p {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }

    header .nav-links {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }

    header .nav-links li {
        margin: 10px 0;
    }

    #hero h1, #page-hero h1 {
        font-size: 3.5rem;
    }

    #hero p, #page-hero p {
        font-size: 1.1rem;
    }

    .content-section h2 {
        font-size: 2.5rem;
    }

    .feature-card {
        width: 90%;
    }

    #call-to-action h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    #hero h1, #page-hero h1 {
        font-size: 2.8rem;
    }

    #hero p, #page-hero p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 2.2rem;
    }

    .feature-card {
        width: 100%;
    }
    .btn {
        padding: 12px 20px;
    }
    #call-to-action h2 {
        font-size: 2.2rem;
    }
}