/* ═══════════════════════════════════════════════════════════════
   LLAMADO RELIGIOSO — Hoja de Estilos Principal
   Archivo: css/estilos.css
   Autor: Lionell Dominicci
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET Y BASE ─────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-fondo:       #27211E;
    --color-fondo-2:     #1e1a17;
    --color-verde:       #6abc6e;
    --color-verde-claro: #8fd492;
    --color-dorado:      #c9a84c;
    --color-texto:       #ffffff;
    --color-texto-2:     #cccccc;
    --color-texto-3:     #aaaaaa;
    --radio-borde:       12px;
    --sombra-caja:       0 8px 32px rgba(0,0,0,0.35);
    --transicion:        0.3s ease;
    --fuente-principal:  'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo);
    color: var(--color-texto);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--color-texto);
    transition: color var(--transicion);
}

a:hover {
    color: var(--color-verde);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── SUBMENÚ ─────────────────────────────────────────────── */
.submenu { 
    display: none; 
}

.submenu.show { 
    display: block; 
}

/* ── Barra de navegación ── */
#header-nav {
    position: fixed;
    top: 0;
    display: block;
    width: 100%;
    background: black;
    transition: transform 0.7s 0.3s ease;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0px, 0px, 0px);
    z-index: 999;
}
#header-nav.hide-nav-bar {
    transform: translate(0, -100%);
    -webkit-backface-visibility: hidden;
}
a.menu-link {
    float: right;
    display: block;
    padding: 1em;
}
nav[role=navigation] {
    clear: right;
    transition: all 0.3s ease-out;
}
.js nav[role=navigation] {
    overflow: hidden;
    max-height: 0;
}
nav[role=navigation].active { max-height: 50em; }
nav[role=navigation] ul {
    margin: 0;
    padding: 0.7em 0;
    float: left;
}
nav[role=navigation] li a {
    display: block;
    padding: 0.8em;
    font-size: 1.1em;
}

/* ── Botón hamburguesa ── */
.menu-link { height: 30px; width: 33px; cursor: pointer; }
.bar1, .bar2, .bar3 {
    margin-top: 3px;
    background: #999;
    width: 33px; height: 4px;
    position: absolute;
    transform: rotate(-180deg);
}
.bar2 { margin-top: 13px; }
.bar3 { margin-top: 23px; transform: rotate(180deg); }

/* ── Marca / Logo ── */
.brand { float: left; margin-left: 1em; padding: 1em; }
.brand h1 { margin: 0; font-size: 1.5em; }

/* ── Contenedor ── */
.container {
    max-width: 100em;
    margin: 0 auto;
    background-color: #27211E;
}

/* ── HERO / SECCIÓN BIENVENIDA ────────────────────────────── */
.hero-section {
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(39,33,30,0) 0%, rgba(39,33,30,0.6) 100%);
}

.hero-section h1 {
    font-size: clamp(1.8em, 4vw, 3em);
    margin-bottom: 14px;
    color: var(--color-verde);
    text-shadow: 0 2px 12px rgba(106,188,110,0.3);
}

.hero-section p {
    font-size: 1.15em;
    color: var(--color-texto-2);
    max-width: 640px;
    margin: 0 auto;
}

/* ── TARJETAS DE CONTENIDO ────────────────────────────────── */
.card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radio-borde);
    padding: 24px;
    box-shadow: var(--sombra-caja);
    transition: transform var(--transicion), box-shadow var(--transicion);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

/* ── GRID DE TARJETAS ─────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── SECCIÓN CON FONDO ALTERNATIVO ───────────────────────── */
.seccion {
    padding: 60px 20px;
}

.seccion-titulo {
    font-size: 1.8em;
    color: var(--color-verde);
    text-align: center;
    margin-bottom: 10px;
}

.seccion-subtitulo {
    text-align: center;
    color: var(--color-texto-3);
    font-size: 1em;
    margin-bottom: 40px;
}

/* ── MENSAJE COMPARTIR (popup inicial) ────────────────────── */
#mensajedecompartir {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.78);
    z-index: 9999;
    color: #fff;
    flex-direction: column;
    font-size: 1.8em;
    text-align: center;
    padding: 30px;
}

#tiempoestablecido {
    font-size: 0.45em;
    margin-top: 20px;
    color: var(--color-texto-3);
}

/* ── CELEBRATION OVERLAY (solo index) ────────────────────── */
#celebration {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

#timer {
    font-size: 0.5em;
    margin-top: 20px;
    color: var(--color-verde);
}

/* ── EFECTOS DE FONDO ─────────────────────────────────────── */
.stars, .confetti-container, .sparks, .bubbles, .snowflakes {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ── FORMULARIO DE CONTACTO ───────────────────────────────── */
.contact-wrapper {
    width: 100%;
    max-width: 620px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: var(--sombra-caja);
    border: 1px solid rgba(255,255,255,0.1);
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-header h2 {
    font-size: 2em;
    color: var(--color-verde);
    margin-bottom: 8px;
}

.contact-header p {
    color: var(--color-texto-3);
    font-size: 1.05em;
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #ddd;
    font-weight: 500;
}

label .required {
    color: #ff6b6b;
    margin-left: 4px;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    font-family: var(--fuente-principal);
    transition: border-color var(--transicion), background var(--transicion);
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-verde);
    background: rgba(255,255,255,0.1);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

/* ── BOTONES ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 13px 32px;
    background: var(--color-verde);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transicion), transform var(--transicion), box-shadow var(--transicion);
    font-family: var(--fuente-principal);
}

.btn:hover {
    background: var(--color-verde-claro);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106,188,110,0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ── LIBRO / PDF CARD ─────────────────────────────────────── */
.libro-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radio-borde);
    overflow: hidden;
    transition: transform var(--transicion), box-shadow var(--transicion);
    display: flex;
    flex-direction: column;
}

.libro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
    border-color: rgba(106,188,110,0.25);
}

.libro-card iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.libro-card .libro-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.libro-card .libro-titulo {
    font-size: 1em;
    font-weight: 600;
    color: var(--color-texto);
    line-height: 1.4;
}

.libro-card .libro-btn {
    margin-top: auto;
    display: inline-block;
    padding: 9px 18px;
    background: var(--color-verde);
    color: #fff;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    transition: background var(--transicion);
}

.libro-card .libro-btn:hover {
    background: var(--color-verde-claro);
}

/* ── DISCO / MÚSICA CARD ──────────────────────────────────── */
.disc-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radio-borde);
    padding: 20px;
    text-align: center;
    transition: transform var(--transicion), box-shadow var(--transicion);
}

.disc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

.disc-card iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
}

/* ── PELÍCULAS / CARRUSEL ─────────────────────────────────── */
.pelicula-titulo-seccion {
    text-align: center;
    font-size: 1.5em;
    color: var(--color-verde);
    margin-bottom: 24px;
    padding: 0 20px;
}

/* ── PIE DE PÁGINA ────────────────────────────────────────── */
footer {
    background: var(--color-fondo-2);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 32px 20px;
    text-align: center;
    margin-top: auto;
}

footer p {
    color: var(--color-texto-3);
    font-size: 0.95em;
    margin-bottom: 8px;
}

footer a {
    color: var(--color-texto-3);
    transition: color var(--transicion);
}

footer a:hover {
    color: var(--color-verde);
}

/* ── CAMPO CORREO OCULTO (anti-spam) ─────────────────────── */
#correoForm {
    display: none;
}

/* ── BARRA DE PAGINACIÓN (libros) ────────────────────────── */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.paginacion a {
    padding: 10px 22px;
    border: 1px solid rgba(106,188,110,0.4);
    border-radius: 6px;
    color: var(--color-verde);
    font-weight: 600;
    transition: all var(--transicion);
}

.paginacion a:hover,
.paginacion a.activo {
    background: var(--color-verde);
    color: #fff;
    border-color: var(--color-verde);
}

/* ── UTILIDADES ───────────────────────────────────────────── */
.text-center  { text-align: center; }
.mt-20        { margin-top: 20px; }
.mb-20        { margin-bottom: 20px; }
.contenedor   { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    a.menu-link {
        display: flex;
    }

    nav#menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(30, 26, 23, 0.98);
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    nav#menu.active {
        display: block;
    }

    nav#menu ul {
        flex-direction: column;
        gap: 0;
    }

    nav#menu ul li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .submenu {
        position: static;
        /* display: none;  <-- ELIMINADO: ya está definido arriba */
        background: rgba(0,0,0,0.2);
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .submenu.show {
        display: block;
    }

    .submenu li a {
        padding: 10px 16px;
    }

    .hero-section {
        padding: 90px 16px 50px;
    }

    .hero-section h1 {
        font-size: clamp(1.5em, 5vw, 2.2em);
    }

    .contact-wrapper {
        padding: 28px 16px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .container {
    max-width: 100em;
    margin: 0 auto;
    background-color: #27211E;
}

    footer {
        padding: 30px 16px;
        font-size: 0.9em;
    }

    .card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.1em;
    }

    .hero-section h1 {
        font-size: 1.5em;
    }

    nav#menu {
        top: 60px;
    }
}