:root {
    --primary-color: #A68A56; /* Un camel/dorado reverente y elegante */
    --primary-hover: #8C7242;
    --secondary-color: #2D3748; /* Dark navy / slate para texto y footer */
    --accent-color: #F3E8DD; /* Beige claro para fondos cálidos */
    
    --text-main: #4A5568;
    --text-light: #718096;
    --text-white: #FFFFFF;
    
    --bg-main: #FFFFFF;
    --bg-alt: #F9Fafa;
    
    --border-color: #E2E8F0;
    
    --font-heading: 'Cinzel', serif; /* Tipo clásica elegante */
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Merriweather', serif; /* Para contenido lectura Biblia */
    
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================================
   HEADER Y NAVEGACIÓN
======================================= */
.site-header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.site-brand .brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        border-top: 1px solid var(--border-color);
    }
    .nav-links li a {
        display: block;
        padding: 15px 20px;
    }
    .mobile-toggle {
        display: flex;
    }
}

/* =======================================
   ESTRUCTURA PRINCIPAL (MAIN)
======================================= */
.site-content {
    flex: 1;
}

/* =======================================
   HERO PORTADA (INDEX)
======================================= */
.hero {
    background-color: var(--secondary-color);
    color: var(--text-white);
    text-align: center;
    padding: 100px 20px;
    background-image: linear-gradient(rgba(45, 55, 72, 0.9), rgba(45, 55, 72, 0.8)), url('../img/hero-bg.jpg'); /* Imagen de asamblea opcional */
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    opacity: 0.9;
}

/* =======================================
   SECCIÓN: CREENCIAS E IDENTIDAD (USANDO GRID)
======================================= */
.section {
    padding: 80px 0;
}

.section-bg-alt {
    background-color: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* Grid Fe y Doctrina */
.creencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.creencia-card {
    background: var(--bg-main);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.creencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.creencia-card h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.creencia-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =======================================
   SECCIÓN: MÓDULOS DE LA IGLESIA
======================================= */
.modulos-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

.modulo-box {
    flex: 1;
    min-width: 300px;
    background: var(--accent-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.modulo-box h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.modulo-box p {
    color: var(--secondary-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-white);
}

/* =======================================
   SECCIÓN: BLOG GALERÍA 
======================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.blog-img {
    height: 200px;
    width: 100%;
    background-color: var(--bg-alt);
    background-size: cover;
    background-position: center;
}

.blog-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title a {
    color: inherit;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-readmore {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =======================================
   FOOTER
======================================= */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--bg-alt);
    padding: 60px 0 0 0;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-col p {
    color: #A0AEC0;
    font-size: 0.95rem;
}

.footer-links, .footer-contact {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #A0AEC0;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-contact li {
    color: #A0AEC0;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-contact strong {
    color: var(--text-white);
}

.footer-bottom {
    background-color: #1A202C;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #718096;
}

/* =======================================
   NUEVOS MÓDULOS DEL BLOG Y POSTS
======================================= */
.layout-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 0;
}

.layout-main {
    flex: 1;
    min-width: 0; /* previene desbordamiento */
}

.layout-aside {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .layout-sidebar {
        flex-direction: column;
    }
    .layout-aside {
        width: 100%;
    }
}

.blog-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .blog-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .blog-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Widgets Aside */
.widget {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-list a {
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}

.widget-list a:hover {
    color: var(--primary-color);
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    list-style: none;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* Post View Individual */
.single-post-header {
    margin-bottom: 40px;
}

.single-post-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.single-post-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.single-post-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    background-color: var(--bg-alt);
}

.single-post-content {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2D3748;
}

.single-post-content h2, .single-post-content h3 {
    font-family: var(--font-heading);
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

/* Comments */
.comments-area {
    margin-top: 60px;
    border-top: 2px solid var(--border-color);
    padding-top: 40px;
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment-box {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.comment-author {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-body {
    font-size: 0.95rem;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-input, .comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.comment-input:focus, .comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* =======================================
   MÓDULO DE ENSEÑANZAS (BIBLIOTECA BÍBLICA)
======================================= */
.biblical-search-bar {
    background-color: var(--secondary-color);
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
}

.biblical-search-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.biblical-select {
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #4A5568;
    background-color: var(--bg-main);
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    min-width: 250px;
    cursor: pointer;
}

.biblical-search-btn {
    background-color: var(--primary-color);
    color: var(--bg-main);
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.biblical-search-btn:hover {
    background-color: var(--primary-hover);
}

.ense-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.ense-card {
    display: flex;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.ense-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateX(5px);
    border-left: 4px solid var(--primary-color);
}

.ense-book-badge {
    background-color: var(--bg-alt);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    border-right: 1px solid var(--border-color);
    text-align: center;
}

.ense-book-badge .book {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.ense-book-badge .chap {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 300;
    line-height: 1;
    margin-top: 5px;
}

.ense-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ense-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.ense-title a {
    color: inherit;
}

.ense-title a:hover {
    color: var(--primary-color);
}

.ense-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .ense-card {
        flex-direction: column;
    }
    .ense-book-badge {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
    }
    .ense-book-badge .chap {
        margin-top: 0;
        font-size: 1.5rem;
    }
}

/* Badges del Discipulario */
.disc-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disc-badge-basico {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.disc-badge-intermedio {
    background-color: #FEF3C7;
    color: #92400E;
}

.disc-badge-avanzado {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.disc-meta-box {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}
