/* ============================================================
   Evangelio Viral — Custom CSS
   Paleta: Navy profundo + Dorado sagrado + Crema cálida
   ============================================================ */

/* ---------- Variables de Diseño ---------- */
:root {
    --ev-navy:      #1a2744;
    --ev-navy-dark: #0f1829;
    --ev-gold:      #c9a84c;
    --ev-gold-dark: #b8952e;
    --ev-cream:     #fdf8f0;
    --ev-light:     #f4f0e8;
    --ev-text:      #2d2d2d;
    --ev-muted:     #6c757d;
    --ev-radius:    0.5rem;
    --ev-shadow:    0 4px 20px rgba(0,0,0,0.08);
}

/* ---------- Tipografía Global ---------- */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ev-text);
    background-color: #fff;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color: var(--ev-navy);
}

/* ---------- Navbar ---------- */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 48px;
    width: auto;
    transition: opacity 0.2s;
}

.navbar-brand:hover img {
    opacity: 0.85;
}

@media (max-width: 576px) {
    .navbar-brand img { height: 38px; }
}

.nav-link-custom {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ev-navy) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--ev-radius);
    transition: color 0.2s, background-color 0.2s;
    letter-spacing: 0.02em;
}

.nav-link-custom:hover {
    color: var(--ev-gold) !important;
    background-color: rgba(201, 168, 76, 0.08);
}

.nav-link-custom.active {
    color: var(--ev-gold) !important;
    border-bottom: 2px solid var(--ev-gold);
}

/* ---------- Botones ---------- */
.btn-gold {
    background-color: var(--ev-gold);
    border-color: var(--ev-gold);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: var(--ev-radius);
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn-gold:hover,
.btn-gold:focus {
    background-color: var(--ev-gold-dark);
    border-color: var(--ev-gold-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-navy {
    border: 2px solid var(--ev-navy);
    color: var(--ev-navy);
    font-weight: 700;
    border-radius: var(--ev-radius);
    transition: all 0.2s;
}

.btn-outline-navy:hover {
    background-color: var(--ev-navy);
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Sección Hero ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--ev-navy) 0%, #2c3e6b 60%, #1a2744 100%);
    min-height: 88vh;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.hero-logo {
    filter: drop-shadow(0 8px 32px rgba(201,168,76,0.25));
    animation: heroLogoFloat 4s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.hero-tagline {
    color: var(--ev-gold);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    line-height: 1.7;
}

.text-gold {
    color: var(--ev-gold) !important;
}

.hero-bienvenida-fondo {
    /* 1. Dimensiones del bloque en medio de la página */
    width: 100%;               /* No ocupa todo el ancho, se ve como un bloque */
    max-width: 100%;         /* Límite de ancho para pantallas grandes */
    min-height: 350px;        /* Altura mínima garantizada */
    margin: 40px auto;        /* Centra el bloque horizontalmente en la página */
    border-radius: 12px;      /* Bordes redondeados estéticos */
    overflow: hidden;         /* Mantiene todo dentro de los bordes redondeados */

    /* 2. Imagen con capa de transparencia (Overlay Negro al 50%) */
    /*background-image: linear-gradient(rgba(244, 236, 236, 0.8), rgba(248, 248, 248, 0.8)),*/
    /*                  url("/static/images/FondoSinLetras.842ee3eacc94.jpeg");*/
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    /* 3. Centrado del texto dentro del bloque */
    display: flex;
    flex-direction: column;   /* Alinea los textos uno abajo del otro */
    justify-content: center;  /* Centra el contenido verticalmente */
    align-items: center;      /* Centra el contenido horizontalmente */
    padding: 5px;            /* Margen interno para que el texto no toque los bordes */
    margin-top: -25px;
    box-sizing: border-box;
}

/* El pseudo-elemento maneja la imagen y la transparencia */
.hero-bienvenida-fondo::before {
        content: "";
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
}

/* ---------- Sección Picture ---------- */
.picture-section {
    background: var(--ev-cream) !important;
    min-height: 50vh;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

/* ---------- Secciones Utilitarias ----------*/
.py-6 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.bg-cream   { background-color: var(--ev-cream) !important; }
.bg-ev-light { background-color: var(--ev-light) !important; }

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ev-gold);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--ev-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ev-navy);
}

/* ---------- Citas Bíblicas ---------- */
.scripture-quote {
    border-left: 4px solid var(--ev-gold);
    padding: 1.25rem 1.5rem;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    background-color: var(--ev-cream);
    border-radius: 0 var(--ev-radius) var(--ev-radius) 0;
    color: var(--ev-text);
    line-height: 1.7;
}

.scripture-quote-footer {
    border-left: 3px solid var(--ev-gold);
    padding: 1rem 1.5rem;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: rgba(255,255,255,0.85);
}

/* ---------- Tarjetas de Libros ---------- */
.book-card {
    border-radius: var(--ev-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

.book-cover {
    height: 280px;
    object-fit: contain;
    width: 100%;
}

.book-cover-placeholder {
    height: 280px;
    background: linear-gradient(135deg, var(--ev-light) 0%, #e8e0d0 100%);
    width: 100%;
}

.book-cover-detail {
    max-height: 480px;
    width: 100%;
    object-fit: contain;
}

.book-cover-detail-placeholder {
    height: 380px;
    width: 100%;
    max-width: 280px;
    background: linear-gradient(135deg, var(--ev-light) 0%, #e8e0d0 100%);
}

.book-thumb-sm {
    width: 56px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
}

.book-thumb-sm-placeholder {
    width: 56px;
    height: 72px;
    background: var(--ev-light);
    flex-shrink: 0;
}

.badge-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ev-gold);
    background: rgba(201,168,76,0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    display: inline-block;
}

.card-author {
    font-size: 0.9rem;
}

.book-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ev-navy);
    font-family: 'Playfair Display', serif;
}

/* ---------- Página de Detalle ---------- */
.book-detail-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--ev-navy);
}

.book-detail-author {
    font-size: 1.1rem;
    color: var(--ev-muted);
}

.book-meta-card {
    background: var(--ev-cream);
    border: 1px solid rgba(201,168,76,0.2);
}

.review-card {
    background: var(--ev-cream);
    border-left: 3px solid var(--ev-gold);
}

.review-name {
    color: var(--ev-navy);
    font-size: 1rem;
}

.review-body {
    font-size: 0.95rem;
    line-height: 1.7;
}

.star-filled { color: var(--ev-gold); font-size: 1rem; }
.star-empty  { color: #ddd; font-size: 1rem; }
.stars-sm .star-filled,
.stars-sm .star-empty { font-size: 0.85rem; }

/* ---------- Sidebar Catálogo ---------- */
.sticky-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--ev-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--ev-radius);
    color: var(--ev-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.15s, color 0.15s;
}

.sidebar-link:hover {
    background: rgba(201,168,76,0.1);
    color: var(--ev-gold);
}

.sidebar-link.active {
    background: var(--ev-navy);
    color: #fff;
    font-weight: 600;
}

/* ---------- Page Header ---------- */
.page-header {
    background: linear-gradient(135deg, var(--ev-navy) 0%, #2c3e6b 100%);
}

.page-header-title {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ---------- Formulario de Contacto ---------- */
.contact-icon {
    width: 2.5rem;
    flex-shrink: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--ev-navy-dark) 0%, var(--ev-navy) 100%);
}

/* ---------- Footer ---------- */
footer.footer {
    background-color: var(--ev-navy);
    color: rgba(255,255,255,0.8);
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--ev-gold);
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--ev-gold); }

.footer-contact li {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.footer-social {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}
.footer-social:hover {
    color: var(--ev-gold);
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
}

.footer-copy {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ---------- Paginación ---------- */
.pagination .page-link {
    color: var(--ev-navy);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--ev-navy);
    border-color: var(--ev-navy);
    color: #fff;
}

.pagination .page-link:hover {
    background-color: var(--ev-gold);
    border-color: var(--ev-gold);
    color: #fff;
}

/* ---------- Entrelíneas — Tarjetas de Artículos ---------- */
.articulo-card {
    border-radius: var(--ev-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.articulo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

.articulo-portada-wrapper {
    position: relative;
    overflow: hidden;
}

.articulo-portada {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.articulo-card:hover .articulo-portada {
    transform: scale(1.04);
}

.articulo-portada-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--ev-light) 0%, #e4ddd0 100%);
    width: 100%;
    position: relative;
}

.articulo-categoria-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--ev-gold);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

.badge-categoria-header {
    display: inline-block;
    background: var(--ev-gold);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
}

.articulo-titulo {
    font-family: 'Playfair Display', serif;
    color: var(--ev-navy);
    line-height: 1.35;
}

.articulo-subtitulo {
    font-style: italic;
}

.articulo-portada-detail {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--ev-radius);
}

/* Contenido del artículo */
.articulo-contenido {
    font-size: 1.08rem;
    color: var(--ev-text);
    line-height: 1.85;
}

.articulo-contenido p {
    margin-bottom: 1.4rem;
}

/* ---------- Comentarios ---------- */
.comentario-card {
    background: var(--ev-cream);
    border-left: 3px solid var(--ev-gold);
}

.comentario-avatar {
    width: 38px;
    height: 38px;
    background: var(--ev-navy);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.comentario-form-card {
    background: var(--ev-light);
    border: 1px solid rgba(201,168,76,0.2);
}

/* ---------- Sidebar Artículos ---------- */
.sidebar-card {
    background: var(--ev-cream);
    border: 1px solid rgba(201,168,76,0.15);
}

.sidebar-articulo-link:hover .fw-semibold {
    color: var(--ev-gold) !important;
}

.sidebar-articulo-thumb {
    width: 54px;
    height: 68px;
    object-fit: cover;
}

.sidebar-articulo-thumb-placeholder {
    width: 54px;
    height: 68px;
    background: var(--ev-light);
}

.text-navy { color: var(--ev-navy) !important; }

/* ---------- Multimedia — Videos ---------- */
.video-card {
    border-radius: var(--ev-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

.video-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}

.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-cta-badge {
    max-width: 280px;
    padding: 2rem;
    background: var(--ev-cream);
    border-radius: var(--ev-radius);
    border: 2px solid rgba(201,168,76,0.2);
}

/* ---------- Nosotros ---------- */
.nosotros-card {
    background: var(--ev-cream);
    border: 1px solid rgba(201,168,76,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nosotros-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ev-shadow) !important;
}

.nosotros-card-gold {
    background: var(--ev-navy);
    border-color: var(--ev-navy);
}

.nosotros-card-gold h3,
.nosotros-card-gold p {
    color: rgba(255,255,255,0.9) !important;
}

.nosotros-card-gold .nosotros-icon {
    color: var(--ev-gold);
    background: rgba(201,168,76,0.15);
}

.nosotros-icon {
    width: 60px;
    height: 60px;
    background: rgba(201,168,76,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--ev-gold);
    font-size: 1.7rem;
}

.nosotros-mini-icon {
    width: 52px;
    height: 52px;
    background: rgba(26,39,68,0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--ev-navy);
    font-size: 1.5rem;
    transition: background 0.2s, color 0.2s;
}

.nosotros-mini-icon:hover {
    background: var(--ev-gold);
    color: #fff;
}

.nosotros-logo {
    filter: drop-shadow(0 8px 24px rgba(26,39,68,0.12));
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 3rem 0;
    }
    .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .book-cover { height: 220px; }
}
