/* =====================================================
   CSS PRINCIPAL - IGLESIA MONTE MORIAH
   Versión: 2.1.0 (COMPLETO con Widget Biblia + Lector Biblia)
   ===================================================== */

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: #fcfaf7;
    color: #2c3e4f;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* === ENCABEZADO Y NAVEGACIÓN === */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 0.8rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 70px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
}

.logo h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #4a5c6e;
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo span {
    font-weight: 300;
    font-size: 1.1rem;
    color: #7f8c8d;
    display: block;
}

/* Botón Menú Hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #4a5c6e;
    cursor: pointer;
    padding: 0.5rem;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #a67c52;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: #4a5c6e;
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #f0e7db;
    color: #8b6b4f;
}

/* === CONTENEDOR PRINCIPAL === */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 5% 4rem;
}

/* =====================================================
   PÁGINA INICIO
   ===================================================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('https://images.pexels.com/photos/3641057/pexels-photo-3641057.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center 30%;
    border-radius: 30px;
    padding: 5rem 3rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem 2rem;
    border-radius: 60px;
    backdrop-filter: blur(3px);
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.welcome-card {
    background: white;
    padding: 2rem 1.8rem;
    border-radius: 24px;
    box-shadow: 0 12px 30px -12px rgba(70, 50, 30, 0.15);
    text-align: center;
    border: 1px solid #f0e4d8;
    transition: transform 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-6px);
}

.welcome-card i {
    font-size: 3rem;
    color: #a67c52;
    background: #faf3ec;
    padding: 1rem;
    border-radius: 60px;
    margin-bottom: 1rem;
}

.welcome-card h3 {
    color: #4a5c6e;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.welcome-card p {
    color: #5d6f82;
}

.verse-day {
    background: #f0e7db;
    border-radius: 60px;
    padding: 1.8rem 2.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-style: italic;
    color: #3b4d5e;
    border-left: 8px solid #a67c52;
    margin: 3rem 0 1rem;
}

.verse-day span {
    display: block;
    font-style: normal;
    font-size: 1.1rem;
    color: #7f6b5c;
    margin-top: 0.8rem;
}

/* =====================================================
   PÁGINA NOSOTROS
   ===================================================== */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    font-size: 2.8rem;
    color: #4a5c6e;
    margin-bottom: 0.5rem;
}

.about-header p {
    font-size: 1.2rem;
    color: #5d6f82;
}

.pastores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pastor-card {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #edd9c7;
    transition: transform 0.3s ease;
}

.pastor-card:hover {
    transform: translateY(-5px);
}

.pastor-card i {
    font-size: 4rem;
    color: #a67c52;
    background: #f6eee6;
    padding: 1.2rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.pastor-card h3 {
    font-size: 1.8rem;
    color: #2c3e4f;
    margin-bottom: 0.5rem;
}

.pastor-card p {
    color: #6d7b8c;
}

.mision-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #f5efe9;
    border-radius: 40px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.mision,
.vision {
    padding: 1rem;
}

.mision h3,
.vision h3 {
    color: #8b6b4f;
    font-size: 2rem;
    border-bottom: 3px solid #c9b6a2;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}

.mision p,
.vision p {
    color: #4a5f73;
    line-height: 1.8;
}

/* =====================================================
   PÁGINA EVENTOS / SERVICIOS
   ===================================================== */
.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-header h1 {
    font-size: 3rem;
    color: #4a5c6e;
    margin-bottom: 1rem;
}

.services-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #5d6f82;
    line-height: 1.8;
}

.services-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 3rem 0;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(70, 50, 30, 0.15);
    transition: transform 0.3s ease;
}

.service-block:hover {
    transform: translateY(-5px);
}

.service-block.reverse {
    direction: rtl;
}

.service-block.reverse .service-content {
    direction: ltr;
}

.service-image {
    height: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h2 {
    font-size: 2.2rem;
    color: #a67c52;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content h2 i {
    margin-right: 12px;
    color: #8b6b4f;
}

.service-content p {
    font-size: 1.1rem;
    color: #4a5f73;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.service-time {
    background: #f0e7db;
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin-top: 1rem;
    font-weight: 600;
    color: #4a5c6e;
    align-self: flex-start;
}

.service-time i {
    color: #a67c52;
    margin-right: 8px;
}

.extra-services {
    background: #f6eee6;
    border-radius: 32px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.extra-services h3 {
    color: #8b6b4f;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.extra-services p {
    color: #4a5f73;
    font-size: 1.1rem;
}

/* =====================================================
   PÁGINA CONTACTO
   ===================================================== */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.8rem;
    color: #4a5c6e;
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1.2rem;
    color: #5d6f82;
}

.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-info {
    background: white;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 15px 30px -10px rgba(70, 50, 30, 0.1);
}

.contact-info h2 {
    color: #4a5c6e;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.pastor-line {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #f0e7db;
    padding: 1rem 1.5rem;
    border-radius: 40px;
    margin: 1rem 0;
    align-items: center;
}

.pastor-line span {
    color: #2c3e4f;
    font-weight: 500;
}

.pastor-line a {
    color: #2c3e4f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pastor-line a:hover {
    color: #a67c52;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #faf3ec;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
}

.contact-detail i {
    font-size: 1.5rem;
    color: #a67c52;
    width: 40px;
    text-align: center;
}

.contact-detail a,
.contact-detail span {
    color: #2c3e4f;
    font-weight: 500;
}

.contact-detail a:hover {
    color: #a67c52;
}

.map-box {
    background: white;
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

.map-box h2 {
    color: #4a5c6e;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.map-box iframe {
    width: 100%;
    height: 300px;
    border-radius: 24px;
    border: 2px solid #e7d9cc;
}

.address-card {
    background: #f6eee6;
    padding: 1.2rem;
    border-radius: 28px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.address-card i {
    font-size: 2rem;
    color: #a67c52;
}

.address-card strong {
    display: block;
    color: #2c3e4f;
    margin-bottom: 0.3rem;
}

.address-card p {
    color: #5d6f82;
    margin: 0;
}

.btn-map {
    background: #a67c52;
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-map:hover {
    background: #8b643e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 124, 82, 0.4);
}

/* =====================================================
   PÁGINA BIBLIA - LECTOR
   ===================================================== */
.biblia-reader-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin: 2rem 0;
    background: white;
    border-radius: 32px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.biblia-sidebar {
    background: #f6eee6;
    padding: 2rem;
    border-right: 2px solid #e7d9cc;
    overflow-y: auto;
    height: calc(100vh - 200px);
}

.biblia-controls {
    margin-bottom: 2rem;
}

.biblia-selector {
    margin-bottom: 1.2rem;
}

.biblia-selector label {
    display: block;
    font-weight: 600;
    color: #4a5c6e;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.biblia-select {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid #c9b6a2;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    color: #2c3e4f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.biblia-select:focus {
    outline: none;
    border-color: #a67c52;
    box-shadow: 0 0 10px rgba(166, 124, 82, 0.2);
}

.biblia-select:disabled {
    background: #f0e7db;
    color: #9aa5b1;
    cursor: not-allowed;
}

.book-summary,
.verse-daily {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid #e7d9cc;
}

.book-summary h3,
.verse-daily h3 {
    color: #a67c52;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#book-description {
    color: #5d6f82;
    line-height: 1.7;
    font-size: 0.95rem;
}

.verse-daily blockquote {
    margin: 0;
    padding: 1rem;
    background: #faf3ec;
    border-radius: 12px;
    border-left: 4px solid #a67c52;
}

.verse-daily blockquote p {
    font-style: italic;
    color: #2c3e4f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.verse-daily blockquote cite {
    display: block;
    text-align: right;
    color: #8b6b4f;
    font-size: 0.9rem;
    font-style: normal;
}

.biblia-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.biblia-btn {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #a67c52, #8b6b4f);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.biblia-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 124, 82, 0.4);
}

.biblia-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.biblia-content {
    padding: 2.5rem;
    overflow-y: auto;
    height: calc(100vh - 200px);
}

.biblia-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0e7db;
}

.biblia-header h1 {
    color: #4a5c6e;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.biblia-reference {
    color: #a67c52;
    font-size: 1.3rem;
    font-weight: 600;
    background: #faf3ec;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-top: 0.5rem;
}

.biblia-text {
    line-height: 1.9;
    color: #2c3e4f;
    font-size: 1.15rem;
}

.biblia-text .chapter-title {
    font-size: 1.8rem;
    color: #a67c52;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid #f0e7db;
    padding-bottom: 1rem;
}

.verse {
    margin-bottom: 1rem;
    display: flex;
    gap: 12px;
}

.verse-number {
    font-weight: 700;
    color: #a67c52;
    min-width: 25px;
    text-align: right;
}

.verse-text {
    flex: 1;
    line-height: 1.8;
}

.verse-text p {
    margin: 0;
}

.biblia-text .loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #8b6b4f;
}

.biblia-text .loading i {
    color: #a67c52;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.biblia-text .error {
    background: #ffe6e6;
    border: 1px solid #ffcccc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #cc0000;
}

.biblia-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e7d9cc;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.study-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #f6eee6;
    border-radius: 32px;
}

.study-section h2 {
    color: #4a5c6e;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.study-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.study-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e7d9cc;
    transition: transform 0.3s ease;
}

.study-card:hover {
    transform: translateY(-5px);
}

.study-card i {
    font-size: 3rem;
    color: #a67c52;
    margin-bottom: 1rem;
}

.study-card h3 {
    color: #4a5c6e;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.study-card p {
    color: #5d6f82;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.study-tag {
    display: inline-block;
    background: #f0e7db;
    color: #8b6b4f;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.verse-highlight {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border-left: 6px solid #a67c52;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.08);
}

.verse-highlight blockquote {
    margin: 0;
    text-align: center;
}

.verse-highlight blockquote p {
    font-size: 1.4rem;
    font-style: italic;
    color: #2c3e4f;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.verse-highlight blockquote cite {
    display: block;
    color: #a67c52;
    font-size: 1.1rem;
    font-style: normal;
}

/* =====================================================
   PÁGINAS LEGALES (Datenschutz & Impressum)
   ===================================================== */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.05);
}

.legal-page h1 {
    color: #4a5c6e;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #f0e7db;
    padding-bottom: 1rem;
}

.legal-page h2 {
    color: #a67c52;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.legal-page h3 {
    color: #8b6b4f;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.4rem;
}

.legal-page p,
.legal-page ul {
    margin-bottom: 1rem;
    color: #4a5f73;
    line-height: 1.8;
}

.legal-page ul {
    padding-left: 2rem;
    list-style: disc;
}

.legal-page strong {
    color: #2c3e4f;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: #2c3e4f;
    color: #e0e7ef;
    text-align: center;
    padding: 2rem 5% 1.5rem;
    margin-top: 3rem;
}

.footer-content p {
    margin: 0.3rem 0;
}

.footer-content i {
    color: #c9b6a2;
    margin: 0 6px;
}

.footer-content a {
    color: #f0e7db;
    text-decoration: none;
    border-bottom: 1px dotted #7f9fbf;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #a67c52;
}

.legal-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4a637a;
}

.legal-links a {
    color: #c9b6a2;
}

.legal-links a:hover {
    color: #f0e7db;
}

/* =====================================================
   BIBLE WIDGET - ESTILOS INTEGRADOS
   ===================================================== */
:root {
    --mm-primary: #a67c52;
    --mm-primary-dark: #8b6b4f;
    --mm-primary-light: #c9b6a2;
    --mm-bg-cream: #f6eee6;
    --mm-bg-light: #faf3ec;
    --mm-text: #4a5c6e;
    --mm-text-dark: #2c3e4f;
    --mm-white: #ffffff;
    --mm-shadow: rgba(70, 50, 30, 0.15);
    --mm-transition: all 0.3s ease;
}

.bible-widget-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-primary-dark));
    border: 3px solid var(--mm-primary-light);
    cursor: pointer;
    box-shadow: 0 4px 20px var(--mm-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--mm-transition);
    animation: biblePulse 2s infinite;
}

.bible-widget-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--mm-shadow);
}

.bible-widget-toggle svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--mm-white);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes biblePulse {
    0%, 100% {
        box-shadow: 0 4px 20px var(--mm-shadow);
    }
    50% {
        box-shadow: 0 4px 30px rgba(166, 124, 82, 0.5);
    }
}

.bible-widget-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    max-height: 550px;
    background: var(--mm-white);
    border: 2px solid var(--mm-primary-light);
    border-radius: 32px;
    box-shadow: 0 15px 35px -10px var(--mm-shadow);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: bibleSlideIn 0.3s ease;
}

.bible-widget-container.active {
    display: flex;
}

@keyframes bibleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bible-widget-header {
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-primary-dark));
    color: var(--mm-white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--mm-primary-light);
}

.bible-widget-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.bible-widget-header h3 svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--mm-white);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bible-widget-close {
    background: none;
    border: none;
    color: var(--mm-white);
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: var(--mm-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bible-widget-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bible-widget-chat {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
    background: var(--mm-bg-light);
}

.bible-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 20px;
    line-height: 1.6;
    font-size: 14px;
    animation: bibleMessageIn 0.3s ease;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

@keyframes bibleMessageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bible-message-user {
    align-self: flex-end;
    background: var(--mm-primary);
    color: var(--mm-white);
    border-bottom-right-radius: 8px;
}

.bible-message-pastor {
    align-self: flex-start;
    background: var(--mm-white);
    color: var(--mm-text-dark);
    border: 1px solid var(--mm-primary-light);
    border-bottom-left-radius: 8px;
}

.bible-message-error {
    align-self: center;
    background: #ffe6e6;
    color: #cc0000;
    border: 1px solid #cc0000;
    text-align: center;
    font-size: 13px;
    max-width: 90%;
}

.bible-verse {
    font-style: italic;
    color: var(--mm-primary-dark);
    background: var(--mm-bg-cream);
    padding: 8px 12px;
    border-radius: 12px;
    margin: 8px 0;
    border-left: 3px solid var(--mm-primary);
    display: block;
}

.bible-typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: var(--mm-white);
    border: 1px solid var(--mm-primary-light);
    border-radius: 20px;
    width: fit-content;
    align-self: flex-start;
}

.bible-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--mm-primary);
    border-radius: 50%;
    animation: bibleTyping 1.4s infinite;
}

.bible-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.bible-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bibleTyping {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

.bible-widget-input-area {
    padding: 15px;
    background: var(--mm-white);
    border-top: 1px solid var(--mm-primary-light);
    display: flex;
    gap: 10px;
}

.bible-widget-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--mm-primary-light);
    border-radius: 40px;
    font-size: 14px;
    outline: none;
    transition: var(--mm-transition);
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    color: var(--mm-text-dark);
}

.bible-widget-input:focus {
    border-color: var(--mm-primary);
    box-shadow: 0 0 10px rgba(166, 124, 82, 0.2);
}

.bible-widget-input::placeholder {
    color: #9aa5b1;
}

.bible-widget-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--mm-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mm-transition);
}

.bible-widget-send:hover:not(:disabled) {
    background: var(--mm-primary-dark);
    transform: scale(1.05);
}

.bible-widget-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bible-widget-send svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--mm-white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bible-welcome {
    text-align: center;
    padding: 30px 20px;
    color: var(--mm-text);
}

.bible-welcome svg {
    width: 55px;
    height: 55px;
    fill: none;
    stroke: var(--mm-primary);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 15px;
    background: var(--mm-bg-cream);
    padding: 15px;
    border-radius: 50%;
}

.bible-welcome h4 {
    margin: 10px 0 8px;
    color: var(--mm-primary-dark);
    font-size: 18px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.bible-welcome p {
    font-size: 14px;
    color: var(--mm-text);
    margin: 0;
    line-height: 1.6;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media screen and (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 0;
        background-color: #ffffff;
        border-top: 2px solid #f0e7db;
        margin-top: 1rem;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        font-size: 1.1rem;
        white-space: normal;
    }

    .logo h2 {
        font-size: 1.4rem;
    }

    .logo span {
        font-size: 0.9rem;
    }

    .logo-img {
        height: 50px;
    }

    .biblia-reader-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .biblia-sidebar {
        height: auto;
        max-height: 400px;
    }

    .biblia-content {
        height: auto;
    }
}

@media (max-width: 700px) {
    .hero-section h1 {
        font-size: 2.4rem;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .contact-flex {
        grid-template-columns: 1fr;
    }

    .mision-vision {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .legal-page {
        padding: 1.5rem;
    }

    .service-block,
    .service-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .service-image {
        min-height: 200px;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-content h2 {
        font-size: 1.8rem;
    }

    .biblia-sidebar {
        padding: 1.5rem;
    }

    .biblia-content {
        padding: 1.5rem;
    }

    .biblia-header h1 {
        font-size: 1.6rem;
    }

    .biblia-reference {
        font-size: 1.1rem;
        padding: 0.4rem 1rem;
    }

    .biblia-text {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .verse-number {
        min-width: 20px;
        font-size: 0.95rem;
    }

    .study-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h2 {
        font-size: 1.2rem;
    }

    .logo span {
        font-size: 0.8rem;
    }

    .logo-img {
        height: 40px;
    }

    .menu-toggle {
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
    }

    .bible-widget-toggle {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .bible-widget-toggle svg {
        width: 32px;
        height: 32px;
    }

    .bible-widget-container {
        bottom: 90px;
        right: 20px;
        left: 20px;
        width: auto;
        max-height: 70vh;
        border-radius: 24px;
    }

    .bible-widget-header h3 {
        font-size: 15px;
    }

    .biblia-actions {
        flex-direction: column;
    }

    .biblia-btn {
        width: 100%;
    }

    .biblia-text {
        font-size: 1rem;
    }
}

/* =====================================================
   ACCESIBILIDAD
   ===================================================== */
.bible-widget-toggle:focus,
.bible-widget-close:focus,
.bible-widget-send:focus,
.bible-widget-input:focus,
.menu-toggle:focus,
.nav-links a:focus {
    outline: 3px solid var(--mm-primary-light);
    outline-offset: 2px;
}

/* Scrollbar personalizado */
.bible-widget-chat::-webkit-scrollbar {
    width: 6px;
}

.bible-widget-chat::-webkit-scrollbar-track {
    background: var(--mm-bg-light);
    border-radius: 3px;
}

.bible-widget-chat::-webkit-scrollbar-thumb {
    background: var(--mm-primary-light);
    border-radius: 3px;
}

.bible-widget-chat::-webkit-scrollbar-thumb:hover {
    background: var(--mm-primary);
}

.biblia-sidebar::-webkit-scrollbar,
.biblia-content::-webkit-scrollbar {
    width: 6px;
}

.biblia-sidebar::-webkit-scrollbar-track,
.biblia-content::-webkit-scrollbar-track {
    background: #f0e7db;
    border-radius: 3px;
}

.biblia-sidebar::-webkit-scrollbar-thumb,
.biblia-content::-webkit-scrollbar-thumb {
    background: #c9b6a2;
    border-radius: 3px;
}

.biblia-sidebar::-webkit-scrollbar-thumb:hover,
.biblia-content::-webkit-scrollbar-thumb:hover {
    background: #a67c52;
}
/* Icono de Biblia - Ajustes específicos */
.bible-widget-toggle svg,
.bible-widget-header h3 svg,
.bible-welcome svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bible-widget-toggle svg {
    width: 36px;
    height: 36px;
}

.bible-widget-toggle:hover svg {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}