/* ============================================
   BELIEFS.CSS - DOCTRINA ANABAUTISTA
   ============================================ */

/* SCROLL SUAVE */
html {
    scroll-behavior: smooth;
}

/* MAIN */
main {
    background: var(--color-body);
}

/* SECCIÓN DE INTRODUCCIÓN */
.pt-150 {
    padding-top: 150px;
}

.mt-150 {
    margin-top: 150px;
}

/* MEJORAS SECCIÓN INTRODUCCIÓN - FONDO Y ESTILO DEL TÍTULO */
#introduccion {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfbfb 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* decorativo difuso inclinado */
#introduccion::before {
    content: "";
    position: absolute;
    left: -12%;
    top: -25%;
    width: 70%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(230, 230, 230, 0.35));
    transform: rotate(-14deg);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
}

/* asegurar contenido por encima del decorativo */
#introduccion .col-12 {
    position: relative;
    z-index: 1;
}

/* título con textura y sombra sutil */
.main-title {
    font-family: "Montserrat", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    color: #111;
    /* fallback */
    background: linear-gradient(90deg, #0b0b0b 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
}

/* línea acento debajo del título */
.main-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 7px;
    background: rgba(0, 0, 0, 0.12);
    margin: 18px auto 0;
    border-radius: 6px;
}

/* subtítulo con estilo tipo etiqueta */
.subtitle-intro {
    font-family: "Roboto Mono", monospace;
    font-size: 1.05rem;
    font-weight: 400;
    color: #666;
    display: inline-block;
    padding: 10px 18px;
    margin-top: 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    letter-spacing: 0.6px;
}

/* Opción: usar imagen de fondo si se quiere (descomentar y cambiar la ruta) */
/*
#introduccion {
    background-image: url('../resources/home/fondo-principal.avif');
    background-size: cover;
    background-position: center;
}
#introduccion::before { opacity: 0.42; }
*/

/* ajustar responsivo */
@media (max-width: 1028px) {
    .main-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1.6rem;
    }

    .main-title::after {
        width: 60px;
        height: 6px;
    }

    .subtitle-intro {
        font-size: 0.95rem;
        padding: 8px 14px;
    }
}

.main-title {
    font-family: "Montserrat", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    letter-spacing: 1px;
}

.subtitle-intro {
    font-family: "Roboto Mono", monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: #555;
}

/* ÍNDICE DE NAVEGACIÓN */
#indice .card {
    background: var(--color-fondo);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#indice h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
}

.index-link {
    display: block;
    text-decoration: none;
    color: #333;
    font-family: "Roboto Mono", monospace;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.index-link:hover {
    background: #f0f0f0;
    transform: translateX(5px);
    color: #000;
}

.index-link .badge {
    font-size: 0.9rem;
    padding: 6px 12px;
    transition: transform 0.3s ease;
}

.index-link:hover .badge {
    transform: scale(1.1);
}

/* SECCIONES DE ARTÍCULOS */
.article-section {
    position: relative;
}

.article-section:nth-child(even) {
    background: var(--color-fondo);
}

.article-section:nth-child(odd) {
    background: var(--color-body);
}

.article-section .card {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2.5rem !important;
}

.article-section .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* NÚMERO DE ARTÍCULO */
.article-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* TÍTULOS DE ARTÍCULOS */
.article-title {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-right: 60px;
}

/* CONTENIDO DE ARTÍCULOS */
.article-content {
    font-family: "Roboto Mono", monospace;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
    text-align: justify;
}

.article-content p {
    margin-bottom: 1.2rem;
}

/* SUBSECCIONES */
.subsection {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.subsection-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

/* REFERENCIAS BÍBLICAS */
.bible-reference {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* TEXTO PLACEHOLDER */
.placeholder-text {
    color: #999;
    font-style: italic;
}

/* BOTÓN VOLVER ARRIBA */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background: #333;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ESTILOS DE IMPRESIÓN */
@media print {

    /* Ocultar elementos innecesarios */
    nav,
    footer,
    #overlay,
    .btn-back-to-top,
    #indice {
        display: none !important;
    }

    /* Optimizar para papel */
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    main {
        background: #fff;
        padding: 0;
    }

    .pt-150 {
        padding-top: 20px;
    }

    .mt-150 {
        margin-top: 20px;
    }

    /* Evitar quiebres de página */
    .article-section,
    .subsection {
        page-break-inside: avoid;
    }

    .article-section .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }

    /* Ajustar títulos */
    .main-title {
        font-size: 24pt;
        color: #000;
    }

    .article-title {
        font-size: 18pt;
        color: #000;
    }

    .subsection-title {
        font-size: 14pt;
        color: #000;
    }

    /* Ajustar texto */
    .article-content {
        font-size: 11pt;
        color: #000;
        text-align: left;
    }

    .bible-reference {
        font-size: 10pt;
        color: #333;
    }

    /* Ocultar número del artículo en círculo */
    .article-number {
        position: static;
        display: inline-block;
        margin-right: 10px;
        background: transparent;
        color: #000;
        box-shadow: none;
        border: 2px solid #000;
    }
}

/* RESPONSIVE - TABLET */
@media (max-width: 1028px) {
    .pt-150 {
        padding-top: 120px;
    }

    .mt-150 {
        margin-top: 120px;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle-intro {
        font-size: 1rem;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .subsection-title {
        font-size: 1.2rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .index-link {
        font-size: 1rem;
    }
}

/* RESPONSIVE - MÓVIL */
@media (max-width: 768px) {
    .pt-150 {
        padding-top: 100px;
    }

    .mt-150 {
        margin-top: 50px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .subtitle-intro {
        font-size: 0.9rem;
    }

    #indice h3 {
        font-size: 1.4rem;
    }

    .article-title {
        font-size: 1.4rem;
        margin-right: 55px;
    }

    .subsection-title {
        font-size: 1.1rem;
    }

    .article-content {
        font-size: 0.95rem;
        text-align: left;
    }

    .article-section .card {
        padding: 1.5rem !important;
    }

    .article-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
    }

    .index-link {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .btn-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .btn-back-to-top svg {
        width: 20px;
        height: 20px;
    }

    .subsection {
        margin-left: 1rem !important;
    }

    .bible-reference {
        font-size: 0.85rem;
    }
}

/* RESPONSIVE - MÓVIL PEQUEÑO */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.3rem;
    }

    .subtitle-intro {
        font-size: 0.85rem;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .subsection-title {
        font-size: 1rem;
    }

    .article-content {
        font-size: 0.9rem;
    }

    .article-section .card {
        padding: 1rem !important;
    }

    .article-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}