:root {
    --navy: #082f63;
    --navy-light: #0b407f;
    --navy-dark: #041e40;
    --gold: #c89d38;
    --gold-light: #e3c36f;
    --ivory: #f8f4e9;
    --ivory-light: #fffdf8;
    --white: #ffffff;
    --text: #26364a;
    --text-light: #64748b;
    --border: rgba(8, 47, 99, 0.12);
    --success: #16794b;
    --shadow: 0 20px 50px rgba(8, 47, 99, 0.10);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ivory-light);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.site-main {
    min-height: 65vh;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-soft {
    background: var(--ivory);
}

.eyebrow {
    margin: 0 0 12px;
    color: #9a741e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 45px;
}

.section-heading.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 16px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(38px, 5vw, 55px);
    line-height: 1.05;
}

.section-heading p {
    margin: 0;
    color: var(--text-light);
    font-size: 17px;
}

.button {
    min-height: 50px;
    padding: 13px 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.button-primary {
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 12px 25px rgba(8, 47, 99, 0.2);
}

.button-primary:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.button-secondary {
    border-color: rgba(8, 47, 99, 0.2);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.75);
}

.button-secondary:hover {
    border-color: var(--gold);
    background: var(--white);
    transform: translateY(-2px);
}

/* Portada */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 95px;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(227, 195, 111, 0.24),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #fffdf8 0%,
            #f8f4e9 52%,
            #f0e6cc 100%
        );
}

.home-hero::before {
    position: absolute;
    top: -180px;
    right: -130px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(200, 157, 56, 0.2);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 75px;
}

.hero-copy h1 {
    max-width: 700px;
    margin: 0 0 22px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(52px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -1.5px;
}

.hero-copy h1 span {
    color: #a67b1f;
}

.hero-description {
    max-width: 640px;
    margin: 0 0 30px;
    color: #4b5e73;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 13px;
}

.hero-note-mark {
    width: 24px;
    height: 24px;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--success);
    font-weight: 700;
}

.study-preview {
    position: relative;
    padding: 24px;
    border: 1px solid rgba(200, 157, 56, 0.25);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 32px 80px rgba(8, 47, 99, 0.17);
    backdrop-filter: blur(14px);
}

.study-preview::before {
    position: absolute;
    top: -22px;
    right: 42px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(200, 157, 56, 0.18);
    content: "";
}

.preview-toolbar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-brand {
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 21px;
    font-weight: 700;
}

.preview-status {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--success);
    background: rgba(22, 121, 75, 0.09);
    font-size: 11px;
    font-weight: 700;
}

.preview-selectors {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.preview-selector {
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--navy);
    background: var(--ivory-light);
    font-size: 12px;
    font-weight: 700;
}

.comparison-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
}

.comparison-column {
    min-height: 230px;
    padding: 20px;
}

.comparison-column + .comparison-column {
    border-left: 1px solid var(--border);
}

.version-label {
    margin-bottom: 15px;
    display: block;
    color: #9a741e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.reference-title {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
}

.placeholder-line {
    height: 8px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #e9edf2;
}

.placeholder-line.short {
    width: 68%;
}

.preview-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.preview-action {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--navy);
    background: var(--white);
    font-size: 15px;
}

/* Tarjetas de funciones */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 35px rgba(8, 47, 99, 0.06);
    transition: 0.25s ease;
}

.feature-card:hover {
    border-color: rgba(200, 157, 56, 0.5);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--navy);
    background: linear-gradient(135deg, #f0dfaf, #fff9e8);
    font-size: 23px;
    font-weight: 700;
}

.feature-card h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    line-height: 1.1;
}

.feature-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

/* Canal y enseñanzas */

.teaching-banner {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    border-radius: 28px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(227, 195, 111, 0.25),
            transparent 30%
        ),
        linear-gradient(135deg, var(--navy-dark), var(--navy));
    box-shadow: var(--shadow);
}

.teaching-copy {
    padding: 55px;
}

.teaching-copy h2 {
    margin: 0 0 18px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(37px, 5vw, 55px);
    line-height: 1;
}

.teaching-copy p {
    max-width: 600px;
    margin: 0 0 27px;
    color: rgba(255, 255, 255, 0.76);
}

.teaching-copy .button-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.teaching-visual {
    min-height: 350px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            rgba(8, 47, 99, 0.15),
            rgba(8, 47, 99, 0.55)
        ),
        radial-gradient(
            circle,
            rgba(227, 195, 111, 0.35),
            transparent 55%
        );
}

.play-button {
    width: 95px;
    height: 95px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--navy);
    background: var(--gold-light);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.07);
    font-size: 34px;
}

/* Llamado final */

.final-cta {
    padding: 70px 25px;
    text-align: center;
    background: var(--ivory);
}

.final-cta h2 {
    margin: 0 0 15px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(38px, 5vw, 55px);
}

.final-cta p {
    max-width: 680px;
    margin: 0 auto 28px;
    color: var(--text-light);
}
.reader-hero {
    padding: 70px 0 55px;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(227, 195, 111, 0.25),
            transparent 38%
        ),
        var(--ivory);
}

.reader-hero h1 {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(48px, 7vw, 70px);
    line-height: 1;
}

.reader-hero p:last-child {
    margin: 0;
    color: var(--text-light);
}

.reader-section {
    padding: 45px 0 90px;
}

.reader-preview-notice {
    margin-bottom: 22px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(200, 157, 56, 0.35);
    border-radius: 12px;
    color: #765816;
    background: #fff8e4;
    font-size: 13px;
}

.reader-controls {
    margin-bottom: 25px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 0.7fr;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 47, 99, 0.06);
}

.reader-control label {
    margin-bottom: 7px;
    display: block;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.reader-control select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid rgba(8, 47, 99, 0.14);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: var(--ivory-light);
}

.reader-control select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 157, 56, 0.12);
}

.scripture-reader {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.scripture-header {
    padding: 28px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(
            135deg,
            rgba(248, 244, 233, 0.95),
            rgba(255, 255, 255, 0.98)
        );
}

.scripture-version {
    color: #9a741e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.scripture-header h2 {
    margin: 5px 0 0;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 42px;
    line-height: 1;
}

.scripture-tools button {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--navy);
    background: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.scripture-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 45px 50px;
}

.scripture-verse {
    margin: 0 0 17px;
    color: #29394d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.85;
}

.verse-number {
    min-width: 27px;
    margin-right: 6px;
    display: inline-block;
    color: #a67b1f;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    vertical-align: super;
}

.scripture-verse:target {
    margin-right: -12px;
    margin-left: -12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8dc;
}

.chapter-navigation {
    padding: 22px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.chapter-navigation a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.reader-empty {
    padding: 45px;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    background: #ffffff;
}

.reader-empty h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 35px;
}

.reader-empty p {
    margin: 0;
    color: var(--text-light);
}

@media (max-width: 700px) {
    .reader-controls {
        grid-template-columns: 1fr;
    }

    .reader-preview-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .scripture-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .scripture-content {
        padding: 32px 23px;
    }

    .scripture-verse {
        font-size: 17px;
    }

    .chapter-navigation {
        padding: 20px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .reader-hero,
    .reader-preview-notice,
    .reader-controls,
    .scripture-tools,
    .chapter-navigation {
        display: none !important;
    }

    .reader-section {
        padding: 0;
    }

    .scripture-reader {
        border: 0;
        box-shadow: none;
    }
}
.comparison-section {
    padding: 45px 0 90px;
}

.comparison-controls {
    margin-bottom: 25px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 60px 1fr 1fr 0.6fr;
    align-items: end;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 47, 99, 0.06);
}

.comparison-swap {
    display: grid;
    place-items: center;
}

.comparison-swap button {
    width: 43px;
    height: 43px;
    border: 1px solid rgba(200, 157, 56, 0.35);
    border-radius: 50%;
    color: var(--navy);
    background: #fff8e4;
    font-size: 22px;
    cursor: pointer;
}

.comparison-reader {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.comparison-reader-header {
    padding: 26px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--ivory);
}

.comparison-reader-header span {
    color: #9a741e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.comparison-reader-header h2 {
    margin: 4px 0 0;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 37px;
}

.comparison-reader-header button {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--navy);
    background: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.comparison-version-headings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

.comparison-version-headings div {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comparison-version-headings div + div {
    border-left: 1px solid var(--border);
}

.comparison-version-headings strong {
    color: var(--navy);
}

.comparison-version-headings span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #85651d;
    background: #fff0c7;
    font-size: 10px;
    font-weight: 700;
}

.comparison-missing {
    margin: 22px;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(200, 157, 56, 0.3);
    border-radius: 11px;
    color: #765816;
    background: #fff8e4;
    font-size: 13px;
}

.comparison-verses {
    padding: 15px 0;
}

.comparison-verse-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(8, 47, 99, 0.08);
}

.comparison-verse-row:last-child {
    border-bottom: 0;
}

.comparison-verse-row:target {
    background: #fff9e8;
}

.comparison-verse-row section {
    position: relative;
    min-height: 90px;
    padding: 22px 28px 22px 55px;
}

.comparison-verse-row section + section {
    border-left: 1px solid var(--border);
}

.comparison-verse-row p {
    margin: 0;
    color: #29394d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.75;
}

.comparison-verse-number {
    position: absolute;
    top: 24px;
    left: 25px;
    color: #a67b1f;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.comparison-verse-row .missing-verse {
    color: #94a3b8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 1000px) {
    .comparison-controls {
        grid-template-columns: 1fr 60px 1fr;
    }

    .comparison-controls .reader-control:nth-child(4),
    .comparison-controls .reader-control:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 700px) {
    .comparison-controls {
        grid-template-columns: 1fr;
    }

    .comparison-swap {
        transform: rotate(90deg);
    }

    .comparison-version-headings {
        display: none;
    }

    .comparison-verse-row {
        grid-template-columns: 1fr;
    }

    .comparison-verse-row section + section {
        border-top: 1px dashed var(--border);
        border-left: 0;
        background: #fafbfc;
    }
}

@media print {
    .comparison-controls,
    .comparison-missing,
    .comparison-reader-header button {
        display: none !important;
    }

    .comparison-section {
        padding: 0;
    }

    .comparison-reader {
        border: 0;
        box-shadow: none;
    }
}
.search-section {
    padding: 45px 0 90px;
}

.bible-search-form {
    margin-bottom: 35px;
    padding: 23px;
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    align-items: end;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 47, 99, 0.06);
}

.search-input-group label {
    margin-bottom: 7px;
    display: block;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-input-group > div {
    display: flex;
}

.search-input-group input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(8, 47, 99, 0.14);
    border-right: 0;
    border-radius: 9px 0 0 9px;
    outline: none;
}

.search-input-group input:focus {
    border-color: var(--gold);
}

.search-input-group button {
    padding: 0 23px;
    border: 0;
    border-radius: 0 9px 9px 0;
    color: #ffffff;
    background: var(--navy);
    font-weight: 700;
    cursor: pointer;
}

.search-results-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.search-results-heading p {
    margin: 0 0 4px;
    color: #9a741e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-results-heading h2 {
    margin: 0;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 36px;
}

.search-results-heading > strong {
    color: var(--text-light);
    font-size: 13px;
}

.search-results {
    display: grid;
    gap: 13px;
}

.search-result-card {
    padding: 22px 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    transition: 0.2s ease;
}

.search-result-card:hover {
    border-color: rgba(200, 157, 56, 0.45);
    box-shadow: 0 12px 28px rgba(8, 47, 99, 0.07);
}

.search-reference {
    color: #9a741e;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.search-result-card p {
    margin: 9px 0 0;
    color: #334155;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.7;
}

.search-result-card mark {
    padding: 1px 3px;
    border-radius: 3px;
    color: var(--navy-dark);
    background: #ffe9a8;
}

.search-pagination {
    margin-top: 28px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 12px;
    background: var(--ivory);
}

.search-pagination a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.search-pagination strong {
    color: var(--text-light);
    font-size: 12px;
}

@media (max-width: 700px) {
    .bible-search-form {
        grid-template-columns: 1fr;
    }

    .search-input-group > div {
        flex-direction: column;
        gap: 9px;
    }

    .search-input-group input {
        border-right: 1px solid rgba(8, 47, 99, 0.14);
        border-radius: 9px;
    }

    .search-input-group button {
        min-height: 47px;
        border-radius: 9px;
    }

    .search-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
.scripture-tools {
    display: flex;
    gap: 8px;
}

.scripture-tools a {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--navy);
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.search-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.search-facets {
    position: sticky;
    top: 110px;
    overflow: hidden;
    max-height: calc(100vh - 135px);
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 47, 99, 0.06);
    overflow-y: auto;
}

.search-facets-header {
    padding: 19px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    background: var(--navy);
}

.search-facets-header span {
    font-weight: 800;
}

.search-facets-header strong {
    color: var(--gold-light);
    font-size: 11px;
}

.facet-all,
.facet-book-link,
.facet-chapter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.facet-all {
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
}

.facet-all.active {
    color: var(--navy);
    background: #fff8e4;
}

.facet-all strong,
.facet-book-link strong,
.facet-chapter-link strong {
    min-width: 28px;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--navy);
    background: #edf2f7;
    font-size: 10px;
    text-align: center;
}

.facet-book {
    border-bottom: 1px solid rgba(8, 47, 99, 0.07);
}

.facet-book:last-child {
    border-bottom: 0;
}

.facet-book-link {
    padding: 13px 17px;
    font-size: 13px;
    font-weight: 700;
}

.facet-book-link:hover,
.facet-book.open > .facet-book-link {
    color: var(--navy);
    background: #f8fafc;
}

.facet-chapters {
    padding: 5px 8px 10px 20px;
    background: #fafbfc;
}

.facet-chapter-link {
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 12px;
}

.facet-chapter-link.active {
    color: #85651d;
    background: #fff4d3;
    font-weight: 700;
}

.facet-verses {
    padding: 5px 7px 10px 20px;
    display: grid;
    gap: 3px;
}

.facet-verses a {
    padding: 6px 9px;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 11px;
    text-decoration: none;
}

.facet-verses a:hover,
.facet-verses a.active {
    color: var(--navy);
    background: #ffffff;
    font-weight: 700;
}

.search-filter-summary {
    margin-bottom: 14px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--ivory);
}

.search-filter-summary div {
    display: flex;
    flex-direction: column;
}

.search-filter-summary strong {
    color: var(--navy);
}

.search-filter-summary span {
    color: var(--text-light);
    font-size: 11px;
}

.search-filter-summary > a {
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.search-result-card.selected,
.search-result-card:target {
    border-color: var(--gold);
    background: #fffaf0;
    box-shadow: 0 0 0 4px rgba(200, 157, 56, 0.12);
}

.open-full-chapter {
    margin-top: 12px;
    display: inline-block;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 850px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-facets {
        position: static;
        max-height: 430px;
    }
}
.teachings-hero {
    padding: 85px 0 70px;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(227, 195, 111, 0.26),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            var(--navy-dark),
            var(--navy)
        );
}

.teachings-hero .eyebrow {
    color: var(--gold-light);
}

.teachings-hero h1 {
    margin: 0 0 13px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(55px, 8vw, 78px);
    line-height: 1;
}

.teachings-hero p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.74);
}

.teachings-section {
    padding: 50px 0 90px;
}

.teachings-filter {
    margin-bottom: 42px;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    align-items: end;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 47, 99, 0.06);
}

.teachings-filter label {
    margin-bottom: 7px;
    display: block;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.teachings-filter input,
.teachings-filter select {
    width: 100%;
    height: 47px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--ivory-light);
}

.teachings-filter button,
.teachings-filter > a {
    min-height: 47px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: var(--navy);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.teachings-filter > a {
    color: var(--navy);
    background: var(--ivory);
}

.teachings-heading {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.teachings-heading p {
    margin: 0 0 5px;
    color: #9a741e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.teachings-heading h2 {
    margin: 0;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 39px;
}

.teachings-heading > strong {
    color: var(--text-light);
    font-size: 12px;
}

.teachings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.teaching-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(8, 47, 99, 0.07);
    transition: 0.25s ease;
}

.teaching-card:hover {
    border-color: rgba(200, 157, 56, 0.45);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.teaching-card-image {
    position: relative;
    height: 205px;
    display: block;
    overflow: hidden;
    background: var(--navy-dark);
}

.teaching-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teaching-card:hover .teaching-card-image img {
    transform: scale(1.035);
}

.teaching-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    background:
        radial-gradient(
            circle,
            rgba(227, 195, 111, 0.25),
            transparent 55%
        ),
        var(--navy-dark);
}

.teaching-placeholder span {
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 2px;
}

.teaching-placeholder strong {
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 33px;
}

.teaching-type,
.teaching-featured {
    position: absolute;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.teaching-type {
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(4, 30, 64, 0.85);
}

.teaching-featured {
    top: 12px;
    left: 12px;
    color: var(--navy-dark);
    background: var(--gold-light);
}

.teaching-card-content {
    padding: 24px;
}

.teaching-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #9a741e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.teaching-card-content h3 {
    margin: 12px 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    line-height: 1.08;
}

.teaching-card-content h3 a {
    color: var(--navy);
    text-decoration: none;
}

.teaching-card-content > p {
    margin: 0 0 20px;
    color: var(--text-light);
    font-size: 13px;
}

.teaching-card-content footer {
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--border);
    font-size: 11px;
}

.teaching-card-content footer span {
    color: var(--text-light);
}

.teaching-card-content footer a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 950px) {
    .teachings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .teachings-filter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .teachings-grid,
    .teachings-filter {
        grid-template-columns: 1fr;
    }

    .teachings-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
.teaching-detail-hero {
    padding: 75px 0;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(227, 195, 111, 0.25),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--navy-dark),
            var(--navy)
        );
}

.teaching-detail-heading {
    max-width: 950px;
}

.teaching-detail-meta {
    margin-bottom: 17px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.teaching-detail-heading h1 {
    max-width: 900px;
    margin: 0 0 20px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(46px, 7vw, 72px);
    line-height: 1;
}

.teaching-detail-heading > div > p {
    max-width: 800px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
}

.teaching-detail-author {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.teaching-detail-author span {
    color: rgba(255, 255, 255, 0.6);
}

.teaching-detail-layout {
    padding-top: 50px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 30px;
}

.teaching-main-content {
    display: grid;
    gap: 28px;
}

.teaching-video {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #000000;
    box-shadow: var(--shadow);
}

.teaching-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.teaching-audios,
.teaching-written-content,
.teaching-documents,
.teaching-share-card,
.teaching-channel-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 47, 99, 0.06);
}

.teaching-audios h2,
.teaching-written-content h2,
.teaching-documents h2,
.teaching-share-card h2,
.teaching-channel-card h2 {
    margin: 0 0 20px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 31px;
}

.audio-player-card {
    padding: 17px;
    display: grid;
    gap: 14px;
    border-radius: 12px;
    background: var(--ivory);
}

.audio-player-card div {
    display: flex;
    flex-direction: column;
}

.audio-player-card span {
    color: var(--text-light);
    font-size: 11px;
}

.audio-player-card audio {
    width: 100%;
}

.teaching-written-content > div {
    color: #334155;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.9;
}

.teaching-detail-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.teaching-share-card button,
.teaching-share-card a,
.teaching-channel-card a {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--navy);
    background: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.teaching-channel-card {
    color: #ffffff;
    background: var(--navy-dark);
}

.teaching-channel-card > span {
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.teaching-channel-card h2 {
    margin: 8px 0 13px;
    color: #ffffff;
}

.teaching-channel-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.teaching-channel-card a {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.related-teachings {
    padding: 65px 0;
    background: var(--ivory);
}

.related-teachings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.related-teachings-grid a {
    padding: 23px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    text-decoration: none;
}

.related-teachings-grid strong {
    color: var(--navy);
}

.related-teachings-grid span {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 11px;
}

@media (max-width: 850px) {
    .teaching-detail-layout {
        grid-template-columns: 1fr;
    }

    .teaching-detail-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .teaching-detail-sidebar,
    .related-teachings-grid {
        grid-template-columns: 1fr;
    }
}
.youtube-channel-section {
    margin-bottom: 65px;
}

.youtube-channel-button {
    padding: 11px 17px;
    border-radius: 9px;
    color: #ffffff;
    background: #c62828;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.youtube-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.youtube-video-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 47, 99, 0.06);
}

.youtube-video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
    background: #000000;
}

.youtube-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-video-thumbnail > span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(198, 40, 40, 0.92);
    transform: translate(-50%, -50%);
}

.youtube-video-card > div {
    padding: 17px;
}

.youtube-video-card h3 {
    min-height: 42px;
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.4;
}

.youtube-video-card time {
    color: var(--text-light);
    font-size: 10px;
}

.open-youtube-video {
    width: 100%;
    min-height: 39px;
    margin-top: 13px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--navy);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.youtube-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    place-items: center;
    padding: 25px;
}

.youtube-modal.open {
    display: grid;
}

.youtube-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
}

.youtube-modal-content {
    position: relative;
    z-index: 2;
    width: min(1000px, 100%);
    aspect-ratio: 16 / 9;
    background: #000000;
}

.youtube-modal-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 25px;
    cursor: pointer;
}

@media (max-width: 950px) {
    .youtube-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .youtube-videos-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   BIBLIOTECA — OTROS TEXTOS
   ========================================================= */

.library-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 84px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(200, 157, 56, 0.24),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #061f43 0%,
            #082f63 52%,
            #0b407f 100%
        );
}

.library-hero::before {
    position: absolute;
    top: -140px;
    right: -80px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.library-hero::after {
    position: absolute;
    right: 130px;
    bottom: -190px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(200, 157, 56, 0.18);
    border-radius: 50%;
    content: "";
}

.library-hero .container {
    position: relative;
    z-index: 1;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #c89d38;
    font-family: "Inter", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.library-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(45px, 6vw, 72px);
    font-weight: 700;
    line-height: 0.98;
}

.library-hero p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, 0.79);
    font-size: 18px;
    line-height: 1.8;
}

.library-content {
    padding: 78px 0 95px;
    background:
        linear-gradient(
            180deg,
            #f8f6ef 0%,
            #ffffff 42%,
            #f8fafc 100%
        );
}

.library-notice {
    margin-bottom: 70px;
    padding: 29px 32px;
    display: flex;
    align-items: flex-start;
    gap: 21px;
    border: 1px solid rgba(200, 157, 56, 0.3);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 252, 241, 0.98),
            rgba(255, 255, 255, 0.98)
        );
    box-shadow: 0 18px 45px rgba(8, 47, 99, 0.06);
}

.library-notice-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #c89d38;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    font-weight: 700;
}

.library-notice h2 {
    margin: 0 0 8px;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 29px;
    line-height: 1.1;
}

.library-notice p {
    margin: 0;
    color: #526173;
    line-height: 1.75;
}

.library-notice p + p {
    margin-top: 8px;
}

.library-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.library-heading .section-eyebrow {
    margin-bottom: 8px;
}

.library-heading h2 {
    margin: 0;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.05;
}

.library-counter {
    flex-shrink: 0;
    padding: 9px 15px;
    border: 1px solid rgba(8, 47, 99, 0.12);
    border-radius: 999px;
    color: #526173;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.library-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(8, 47, 99, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.library-card:hover {
    border-color: rgba(200, 157, 56, 0.42);
    box-shadow: 0 25px 58px rgba(8, 47, 99, 0.13);
    transform: translateY(-5px);
}

.library-card-top {
    min-height: 105px;
    padding: 20px 21px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(200, 157, 56, 0.19),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #071f42,
            #0a376f
        );
}

.library-book-symbol {
    color: #e6c66e;
    font-family: Georgia, serif;
    font-size: 48px;
    line-height: 1;
}

.library-status {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.library-status-review {
    color: #6e5212;
    background: #f8e9ba;
}

.library-status-caution {
    color: #8a321d;
    background: #fee2d5;
}

.library-card-body {
    padding: 27px 24px 23px;
    flex: 1;
}

.library-category {
    display: block;
    margin-bottom: 8px;
    color: #a1781e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.library-card h3 {
    margin: 0 0 13px;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
    line-height: 1.05;
}

.library-card p {
    margin: 0;
    color: #607083;
    font-size: 14px;
    line-height: 1.75;
}

.library-details {
    margin: 24px 0 0;
    padding-top: 17px;
    border-top: 1px solid #e9edf2;
}

.library-details > div {
    padding: 7px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.library-details dt {
    color: #7b8795;
    font-size: 12px;
}

.library-details dd {
    margin: 0;
    color: #26384d;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.library-card-footer {
    padding: 0 24px 24px;
}

.library-disabled-button {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dce2e9;
    border-radius: 10px;
    color: #8994a2;
    background: #f3f5f7;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
}

.library-principle {
    position: relative;
    margin-top: 68px;
    padding: 40px 44px 40px 105px;
    overflow: hidden;
    border-radius: 20px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #082f63,
            #0b407f
        );
    box-shadow: 0 24px 55px rgba(8, 47, 99, 0.18);
}

.library-principle::after {
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(200, 157, 56, 0.22);
    border-radius: 50%;
    content: "";
}

.library-principle-mark {
    position: absolute;
    top: 18px;
    left: 34px;
    color: #c89d38;
    font-family: Georgia, serif;
    font-size: 92px;
    line-height: 1;
}

.library-principle div {
    position: relative;
    z-index: 1;
}

.library-principle h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
}

.library-principle p {
    max-width: 850px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

/* Adaptación de la biblioteca para tabletas */

@media (max-width: 980px) {
    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .library-card:last-child {
        grid-column: 1 / -1;
    }
}

/* Adaptación de la biblioteca para celulares */

@media (max-width: 680px) {
    .library-hero {
        padding: 66px 0 60px;
    }

    .library-hero p {
        font-size: 16px;
    }

    .library-content {
        padding: 48px 0 65px;
    }

    .library-notice {
        margin-bottom: 48px;
        padding: 23px 20px;
        display: block;
    }

    .library-notice-icon {
        margin-bottom: 15px;
    }

    .library-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .library-card:last-child {
        grid-column: auto;
    }

    .library-principle {
        margin-top: 48px;
        padding: 75px 23px 28px;
    }

    .library-principle-mark {
        top: 9px;
        left: 20px;
    }
}
.library-status-available {
    color: #155c3a;
    background: #d9f2e4;
}

.library-reading-button {
    width: 100%;
    padding: 13px 16px;
    display: block;
    border: 1px solid #082f63;
    border-radius: 10px;
    color: #ffffff;
    background: #082f63;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.library-reading-button:hover {
    color: #ffffff;
    background: #0b407f;
}

.library-empty {
    padding: 60px 25px;
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 18px 45px rgba(8, 47, 99, 0.07);
}

.library-empty h2 {
    margin: 0 0 8px;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
}

.library-empty p {
    margin: 0;
    color: #68778a;
}
.library-detail-button {
    width: 100%;
    padding: 13px 16px;
    display: block;
    border: 1px solid #082f63;
    border-radius: 10px;
    color: #082f63;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.library-detail-button:hover {
    color: #ffffff;
    background: #082f63;
}

.library-reading-pending {
    margin-top: 9px;
    display: block;
    color: #8894a2;
    font-size: 11px;
    text-align: center;
}

.text-detail-hero {
    padding: 62px 0 70px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(200, 157, 56, 0.22),
            transparent 30%
        ),
        linear-gradient(135deg, #061f43, #0b407f);
}

.text-detail-breadcrumb {
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.text-detail-breadcrumb a {
    color: #e1c36c;
    text-decoration: none;
}

.text-detail-hero h1 {
    max-width: 800px;
    margin: 0 0 12px;
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
}

.text-alternative-name {
    margin: 0 0 16px;
    color: #e2c774;
    font-size: 14px;
}

.text-detail-introduction {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    line-height: 1.75;
}

.text-detail-content {
    padding: 70px 0 90px;
    background: #f7f8fa;
}

.text-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 32px;
    align-items: start;
}

.text-detail-main {
    display: grid;
    gap: 24px;
}

.text-detail-section,
.text-information-card,
.text-permission-card {
    padding: 29px;
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(8, 47, 99, 0.06);
}

.text-detail-section h2,
.text-information-card h2,
.text-permission-card h2 {
    margin: 0 0 15px;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 29px;
}

.text-detail-section p {
    margin: 0;
    color: #58687a;
    line-height: 1.8;
}

.text-source-link {
    margin-top: 20px;
    display: inline-flex;
    color: #082f63;
    font-size: 13px;
    font-weight: 700;
}

.text-editorial-warning {
    padding: 25px;
    display: flex;
    gap: 17px;
    border: 1px solid rgba(200, 157, 56, 0.32);
    border-radius: 16px;
    background: #fffbef;
}

.text-editorial-warning > div {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #c89d38;
    font-weight: 700;
}

.text-editorial-warning h2 {
    margin: 0 0 7px;
    color: #755818;
    font-size: 18px;
}

.text-editorial-warning p {
    margin: 0;
    color: #695f49;
    font-size: 13px;
    line-height: 1.7;
}

.text-detail-sidebar {
    display: grid;
    gap: 20px;
}

.text-information-card dl {
    margin: 0;
}

.text-information-card dl div {
    padding: 12px 0;
    border-bottom: 1px solid #e8ecf1;
}

.text-information-card dl div:last-child {
    border-bottom: 0;
}

.text-information-card dt {
    margin-bottom: 4px;
    color: #7a8796;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.text-information-card dd {
    margin: 0;
    color: #2d4057;
    font-size: 13px;
    font-weight: 600;
}

.text-permission-row {
    margin-bottom: 12px;
    padding: 13px;
    display: flex;
    gap: 11px;
    border-radius: 10px;
    background: #f6f7f9;
}

.text-permission-row > span {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    flex: 0 0 9px;
    border-radius: 50%;
}

.text-permission-row.allowed > span {
    background: #21a366;
}

.text-permission-row.pending > span {
    background: #d19b2e;
}

.text-permission-row p {
    margin: 0;
    color: #687688;
    font-size: 12px;
    line-height: 1.5;
}

.text-permission-row strong {
    display: block;
    color: #293e56;
}

.text-back-link {
    color: #082f63;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .text-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .text-detail-hero {
        padding: 45px 0 52px;
    }

    .text-detail-content {
        padding: 45px 0 65px;
    }

    .text-detail-section,
    .text-information-card,
    .text-permission-card {
        padding: 22px 19px;
    }

    .text-editorial-warning {
        align-items: flex-start;
        flex-direction: column;
    }
}
.teachings-type-filter {
    margin: 35px 0 20px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(8, 47, 99, 0.06);
}

.teachings-type-filter a {
    padding: 10px 17px;
    border-radius: 8px;
    color: #5b6b7e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.teachings-type-filter a:hover {
    color: #082f63;
    background: #f3f6f9;
}

.teachings-type-filter a.active {
    color: #ffffff;
    background: #082f63;
    box-shadow: 0 7px 17px rgba(8, 47, 99, 0.17);
}

@media (max-width: 540px) {
    .teachings-type-filter {
        width: 100%;
        overflow-x: auto;
    }

    .teachings-type-filter a {
        flex: 1 0 auto;
        text-align: center;
    }
}
.scripture-verse {
    position: relative;
}

.verse-note-button {
    margin-left: 10px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #788698;
    background: transparent;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    opacity: 1;
    transition:
        opacity 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.verse-note-button:hover {
    border-color: rgba(8, 47, 99, 0.12);
    color: #082f63;
    background: #f2f5f8;
}

.verse-note-button.has-note {
    border-color: rgba(200, 157, 56, 0.3);
    color: #765817;
    background: #fff5d8;
}

.scripture-verse.has-annotation {
    padding-left: 12px;
    border-left: 3px solid #c89d38;
    background:
        linear-gradient(
            90deg,
            rgba(200, 157, 56, 0.08),
            transparent 75%
        );
}

.verse-note-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.verse-note-modal.open {
    display: block;
}

.verse-note-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 17, 36, 0.68);
    backdrop-filter: blur(5px);
}

.verse-note-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 100%);
    height: 100%;
    padding: 27px;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: -20px 0 55px rgba(4, 23, 49, 0.24);
}

.verse-note-panel > header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e3e8ee;
}

.verse-note-panel > header span {
    display: block;
    margin-bottom: 5px;
    color: #a47b20;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.verse-note-panel > header h2 {
    margin: 0;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
}

.verse-note-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #d5dce5;
    border-radius: 50%;
    color: #526277;
    background: #ffffff;
    font-size: 23px;
    cursor: pointer;
}

.verse-note-reference {
    margin-bottom: 23px;
    padding: 17px;
    border-left: 3px solid #c89d38;
    border-radius: 0 10px 10px 0;
    background: #fffbef;
}

.verse-note-reference strong {
    display: block;
    margin-bottom: 7px;
    color: #755818;
}

.verse-note-reference p {
    margin: 0;
    color: #5d6470;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.55;
}

.verse-note-field label {
    margin-bottom: 8px;
    display: block;
    color: #263a53;
    font-size: 13px;
    font-weight: 700;
}

.verse-note-field textarea {
    width: 100%;
    min-height: 220px;
    padding: 14px;
    border: 1px solid #cfd7e1;
    border-radius: 10px;
    outline: none;
    color: #26394f;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.65;
    resize: vertical;
}

.verse-note-field textarea:focus {
    border-color: #c89d38;
    box-shadow: 0 0 0 4px rgba(200, 157, 56, 0.13);
}

.verse-note-field small {
    margin-top: 7px;
    display: block;
    color: #7b8796;
    font-size: 11px;
}

.verse-note-panel > footer {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.verse-note-panel > footer button {
    padding: 12px 16px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.verse-note-delete {
    border: 1px solid #e4b9b4;
    color: #9a372e;
    background: #fff4f2;
}

.verse-note-save {
    border: 1px solid #082f63;
    color: #ffffff;
    background: #082f63;
}

@media (max-width: 700px) {
    .verse-note-button {
        opacity: 1;
    }

    .verse-note-panel {
        padding: 21px 18px;
    }

    .verse-note-panel > footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .verse-note-panel > footer button {
        width: 100%;
    }
}
.notes-hero {
    padding: 68px 0;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(200, 157, 56, 0.24),
            transparent 30%
        ),
        linear-gradient(135deg, #061f43, #0b407f);
}

.notes-hero h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(42px, 6vw, 66px);
}

.notes-hero > .container > p:last-child {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.notes-section {
    min-height: 500px;
    padding: 65px 0 90px;
    background: #f7f8fa;
}

.notes-browser-warning {
    margin-bottom: 25px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(200, 157, 56, 0.3);
    border-radius: 13px;
    background: #fffbef;
}

.notes-browser-warning > div {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #c89d38;
    font-weight: 700;
}

.notes-browser-warning p {
    margin: 0;
    color: #675f4c;
    font-size: 13px;
    line-height: 1.6;
}

.notes-toolbar {
    margin-bottom: 25px;
    padding: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-radius: 14px;
    background: #ffffff;
}

.notes-toolbar > div {
    width: min(520px, 100%);
}

.notes-toolbar label {
    margin-bottom: 8px;
    display: block;
    color: #344960;
    font-size: 12px;
    font-weight: 700;
}

.notes-toolbar input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cfd7e1;
    border-radius: 9px;
    outline: none;
}

.notes-toolbar input:focus {
    border-color: #c89d38;
    box-shadow: 0 0 0 4px rgba(200, 157, 56, 0.12);
}

.notes-toolbar strong {
    color: #082f63;
    font-size: 13px;
}

.notes-list {
    display: grid;
    gap: 18px;
}

.personal-note-card {
    padding: 25px;
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-left: 4px solid #c89d38;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 13px 35px rgba(8, 47, 99, 0.06);
}

.personal-note-header {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.personal-note-header h2 {
    margin: 0 0 5px;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
}

.personal-note-header time {
    color: #8290a0;
    font-size: 11px;
}

.personal-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.personal-note-actions a,
.personal-note-actions button {
    padding: 8px 10px;
    border: 1px solid rgba(8, 47, 99, 0.14);
    border-radius: 7px;
    color: #082f63;
    background: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.personal-note-actions button.delete {
    color: #9a372e;
    border-color: #e4b9b4;
}

.personal-note-verse {
    margin: 0 0 17px;
    padding: 15px 17px;
    border: 0;
    border-radius: 9px;
    color: #4e5967;
    background: #f7f3e8;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.55;
}

.personal-note-content {
    margin: 0;
    color: #34475d;
    line-height: 1.7;
    white-space: pre-wrap;
}

.personal-note-editor textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #cfd7e1;
    border-radius: 9px;
    outline: none;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    resize: vertical;
}

.personal-note-editor-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.personal-note-editor-actions button {
    padding: 9px 12px;
    border: 1px solid #d1d9e2;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.personal-note-editor-actions button.save {
    border-color: #082f63;
    color: #ffffff;
    background: #082f63;
}

.notes-empty {
    padding: 60px 25px;
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
}

.notes-empty h2 {
    margin: 0 0 8px;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 31px;
}

.notes-empty p {
    margin: 0 0 20px;
    color: #6b798a;
}

.notes-empty a {
    color: #082f63;
    font-weight: 700;
}

@media (max-width: 700px) {
    .notes-toolbar,
    .personal-note-header {
        align-items: stretch;
        flex-direction: column;
    }

    .personal-note-actions {
        width: 100%;
    }
}
.comparison-note-action {
    grid-column: 1 / -1;
    padding: 9px 15px 13px;
    border-top: 1px solid rgba(8, 47, 99, 0.07);
    text-align: right;
}

.comparison-note-button {
    padding: 7px 10px;
    border: 1px solid rgba(8, 47, 99, 0.14);
    border-radius: 8px;
    color: #647487;
    background: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.comparison-note-button:hover {
    color: #082f63;
    background: #f3f6f9;
}

.comparison-note-button.has-note {
    border-color: rgba(200, 157, 56, 0.35);
    color: #755818;
    background: #fff4d4;
}

.comparison-verse-row.has-comparison-note {
    border-left: 4px solid #c89d38;
    background:
        linear-gradient(
            90deg,
            rgba(200, 157, 56, 0.07),
            transparent 70%
        );
}

.comparison-note-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.comparison-note-modal.open {
    display: block;
}

.comparison-note-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 17, 36, 0.7);
    backdrop-filter: blur(5px);
}

.comparison-note-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(680px, 100%);
    height: 100%;
    padding: 27px;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: -20px 0 55px rgba(4, 23, 49, 0.25);
}

.comparison-note-panel > header {
    margin-bottom: 22px;
    padding-bottom: 17px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e3e8ee;
}

.comparison-note-panel > header span {
    color: #a47b20;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.comparison-note-panel > header h2 {
    margin: 5px 0 0;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
}

.comparison-note-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #d5dce5;
    border-radius: 50%;
    color: #526277;
    background: #ffffff;
    font-size: 23px;
    cursor: pointer;
}

.comparison-note-reference > strong {
    display: block;
    margin-bottom: 12px;
    color: #082f63;
    font-size: 16px;
}

.comparison-note-reference > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.comparison-note-reference section {
    padding: 15px;
    border-radius: 10px;
    background: #f7f3e8;
}

.comparison-note-reference section span {
    display: block;
    margin-bottom: 7px;
    color: #8a681c;
    font-size: 11px;
    font-weight: 700;
}

.comparison-note-reference section p {
    margin: 0;
    color: #4e5967;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 17px;
    line-height: 1.5;
}

.comparison-note-field {
    margin-top: 23px;
}

.comparison-note-field label {
    margin-bottom: 8px;
    display: block;
    color: #263a53;
    font-size: 13px;
    font-weight: 700;
}

.comparison-note-field textarea {
    width: 100%;
    min-height: 210px;
    padding: 14px;
    border: 1px solid #cfd7e1;
    border-radius: 10px;
    outline: none;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.65;
    resize: vertical;
}

.comparison-note-field textarea:focus {
    border-color: #c89d38;
    box-shadow: 0 0 0 4px rgba(200, 157, 56, 0.13);
}

.comparison-note-field small {
    margin-top: 7px;
    display: block;
    color: #7b8796;
    font-size: 11px;
}

.comparison-note-panel > footer {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.comparison-note-panel > footer button {
    padding: 12px 16px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.comparison-note-delete {
    border: 1px solid #e4b9b4;
    color: #9a372e;
    background: #fff4f2;
}

.comparison-note-save {
    border: 1px solid #082f63;
    color: #ffffff;
    background: #082f63;
}

@media (max-width: 620px) {
    .comparison-note-reference > div {
        grid-template-columns: 1fr;
    }

    .comparison-note-panel {
        padding: 21px 18px;
    }

    .comparison-note-panel > footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}
.notes-type-filter {
    margin-bottom: 18px;
    padding: 6px;
    display: inline-flex;
    gap: 5px;
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-radius: 12px;
    background: #ffffff;
}

.notes-type-filter button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    color: #607084;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.notes-type-filter button.active {
    color: #ffffff;
    background: #082f63;
}

.personal-note-type {
    display: inline-block;
    margin-bottom: 6px;
    color: #9a721b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comparison-note-card {
    border-left-color: #082f63;
}

.personal-comparison-texts {
    margin-bottom: 17px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.personal-comparison-texts section {
    padding: 15px;
    border-radius: 10px;
    background: #f7f3e8;
}

.personal-comparison-texts strong {
    display: block;
    margin-bottom: 8px;
    color: #806018;
    font-size: 11px;
}

.personal-comparison-texts blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    color: #4f5b69;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 17px;
    line-height: 1.55;
}

.notes-empty-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.notes-empty-actions a {
    padding: 11px 15px;
    border: 1px solid #082f63;
    border-radius: 8px;
    text-decoration: none;
}

@media (max-width: 650px) {
    .notes-type-filter {
        width: 100%;
        overflow-x: auto;
    }

    .notes-type-filter button {
        flex: 1 0 auto;
    }

    .personal-comparison-texts {
        grid-template-columns: 1fr;
    }

    .notes-empty-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
.verse-share-button {
    margin-left: 5px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #788698;
    background: transparent;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.verse-share-button:hover {
    border-color: rgba(8, 47, 99, 0.12);
    color: #082f63;
    background: #f2f5f8;
}

.comparison-note-action {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.comparison-share-button {
    padding: 7px 10px;
    border: 1px solid rgba(8, 47, 99, 0.14);
    border-radius: 8px;
    color: #082f63;
    background: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.comparison-share-button:hover {
    color: #ffffff;
    background: #082f63;
}

@media (max-width: 600px) {
    .comparison-note-action {
        align-items: stretch;
        flex-direction: column;
    }

    .comparison-note-action button {
        width: 100%;
    }
}
.verse-image-button,
.comparison-image-button {
    margin-left: 5px;
    padding: 6px 9px;
    border: 1px solid rgba(200, 157, 56, 0.3);
    border-radius: 7px;
    color: #765817;
    background: #fff8e5;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.social-card-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
}

.social-card-modal.open {
    display: grid;
    place-items: center;
}

.social-card-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 15, 32, 0.78);
    backdrop-filter: blur(6px);
}

.social-card-panel {
    position: relative;
    z-index: 1;
    width: min(650px, calc(100% - 30px));
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.social-card-header {
    padding: 18px 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e8ee;
}

.social-card-header span {
    color: #a1781e;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.social-card-header h2 {
    margin: 3px 0 0;
    color: #082f63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 26px;
}

.social-card-close {
    width: 37px;
    height: 37px;
    border: 1px solid #d5dce5;
    border-radius: 50%;
    color: #526277;
    background: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.social-card-preview {
    padding: 20px;
    background: #eef1f5;
}

.social-card-canvas {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 12px 35px rgba(8, 47, 99, 0.16);
}

.social-card-actions {
    padding: 17px 21px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.social-card-actions button {
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.social-card-actions .secondary {
    border: 1px solid #d2d9e2;
    color: #526176;
    background: #ffffff;
}

.social-card-actions .primary {
    border: 1px solid #082f63;
    color: #ffffff;
    background: #082f63;
}

@media (max-width: 600px) {
    .verse-image-button {
        margin-top: 6px;
        margin-left: 0;
    }

    .social-card-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .social-card-actions button {
        width: 100%;
    }
}
:root {
    --bible-reader-font-size: 20px;
}

.scripture-verse .verse-text {
    font-size: var(--bible-reader-font-size);
    line-height: 1.75;
}

.comparison-verse-row section > p {
    font-size: var(--bible-reader-font-size);
    line-height: 1.7;
}

.bible-font-controls {
    padding: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(8, 47, 99, 0.14);
    border-radius: 9px;
    background: #ffffff;
}

.bible-font-controls button {
    min-width: 35px;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    color: #082f63;
    background: transparent;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.bible-font-controls button:hover,
.bible-font-controls button.active {
    color: #ffffff;
    background: #082f63;
}

.bible-font-controls button:disabled {
    color: #a7b0bc;
    background: #f1f3f5;
    cursor: not-allowed;
}

.bible-font-value {
    min-width: 50px;
    padding: 0 7px;
    color: #6b7888;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.comparison-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 700px) {
    .scripture-tools,
    .comparison-header-tools {
        width: 100%;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .bible-font-controls {
        justify-content: center;
    }
}
.social-card-actions .share {
    border: 1px solid #c89d38;
    color: #674d15;
    background: #fff4d1;
}

.social-card-actions .share:hover {
    background: #f8e5aa;
}

.social-card-actions button:disabled {
    opacity: 0.65;
    cursor: wait;
}
.scripture-verse .verse-note-button,
.scripture-verse .verse-share-button,
.scripture-verse .verse-image-button {
    display: none;
}

.scripture-verse {
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.scripture-verse:hover {
    background: rgba(8, 47, 99, 0.045);
}

.scripture-verse:focus {
    outline: 2px solid rgba(200, 157, 56, 0.7);
    outline-offset: 2px;
}

.scripture-verse.is-highlighted {
    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(244, 205, 82, 0.35) 45%,
            rgba(244, 205, 82, 0.35) 88%,
            transparent 88%
        );
}

.verse-actions-menu {
    position: fixed;
    right: 50%;
    bottom: 25px;
    z-index: 3500;
    width: min(620px, calc(100% - 30px));
    padding: 12px;
    display: none;
    border: 1px solid rgba(8, 47, 99, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(5, 29, 62, 0.24);
    transform: translateX(50%);
    backdrop-filter: blur(14px);
}

.verse-actions-menu.open {
    display: block;
}

.verse-actions-menu > header {
    padding: 3px 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.verse-actions-menu > header strong {
    color: #082f63;
    font-size: 13px;
}

.verse-actions-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    color: #5b697a;
    background: #eef1f4;
    font-size: 19px;
    cursor: pointer;
}

.verse-actions-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.verse-actions-options > button {
    min-height: 62px;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #45576c;
    background: #f6f8fa;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.verse-actions-options > button:hover {
    border-color: rgba(200, 157, 56, 0.35);
    color: #082f63;
    background: #fff8e5;
}

.verse-actions-options > button > span:first-child {
    color: #c08f25;
    font-size: 18px;
}

@media (max-width: 620px) {
    .verse-actions-menu {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        transform: none;
    }

    .verse-actions-options {
        grid-template-columns: repeat(3, 1fr);
    }
}
.scripture-verse.is-copy-selected {
    outline: 2px solid #c89d38;
    outline-offset: 2px;
    background: #fff5d6;
}

.verse-selection-bar {
    position: fixed;
    right: 50%;
    bottom: 24px;
    z-index: 3500;
    width: min(700px, calc(100% - 30px));
    padding: 15px 17px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(8, 47, 99, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(5, 29, 62, 0.25);
    transform: translateX(50%);
    backdrop-filter: blur(14px);
}

.verse-selection-bar.open {
    display: flex;
}

.verse-selection-bar > div:first-child strong,
.verse-selection-bar > div:first-child span {
    display: block;
}

.verse-selection-bar > div:first-child strong {
    margin-bottom: 4px;
    color: #082f63;
    font-size: 13px;
}

.verse-selection-bar > div:first-child span {
    color: #748194;
    font-size: 11px;
}

.verse-selection-actions {
    display: flex;
    gap: 8px;
}

.verse-selection-actions button {
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.verse-selection-actions .cancel {
    border: 1px solid #d2d9e2;
    color: #56667a;
    background: #ffffff;
}

.verse-selection-actions .copy {
    border: 1px solid #082f63;
    color: #ffffff;
    background: #082f63;
}

.verse-selection-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 650px) {
    .verse-selection-bar {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        align-items: stretch;
        flex-direction: column;
        transform: none;
    }

    .verse-selection-actions button {
        flex: 1;
    }
}
.social-card-controls {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 12px;
    border-bottom: 1px solid rgba(8, 47, 99, 0.12);
    background: #f8f5ed;
}

.social-card-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #334155;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.social-card-control select {
    width: 100%;
    min-height: 42px;
    padding: 8px 34px 8px 11px;
    border: 1px solid rgba(8, 47, 99, 0.18);
    border-radius: 9px;
    background: #ffffff;
    color: #082f63;
    font: inherit;
    cursor: pointer;
}

.social-card-checkbox {
    min-height: 66px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding-top: 18px;
}

.social-card-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #082f63;
}

.social-card-preview {
    max-height: 64vh;
    overflow: auto;
}

.social-card-canvas {
    width: min(100%, 620px);
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .social-card-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-card-checkbox {
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .social-card-controls {
        grid-template-columns: 1fr;
    }

    .social-card-checkbox {
        min-height: 42px;
        justify-content: flex-start;
    }
}
.verse-selection-actions .image {
    border: 1px solid #c89d38;
    background: #c89d38;
    color: #082f63;
    font-weight: 700;
}

.verse-selection-actions .image:hover:not(:disabled) {
    background: #d8ae4a;
}

.verse-selection-actions .image:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
/* =========================================================
   CUENTAS DE USUARIO / MI ESTUDIO
   ========================================================= */

.account-page {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 75px 20px 90px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(227, 195, 111, 0.22),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            var(--ivory) 0%,
            var(--ivory-light) 55%,
            #ffffff 100%
        );
}

.account-page::before {
    position: absolute;
    top: -180px;
    right: -160px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(200, 157, 56, 0.18);
    border-radius: 50%;
    content: "";
}

.account-page::after {
    position: absolute;
    bottom: -230px;
    left: -180px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(8, 47, 99, 0.08);
    border-radius: 50%;
    content: "";
}

.account-container {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    margin: 0 auto;
}

.account-intro {
    max-width: 650px;
    margin: 0 auto 32px;
    text-align: center;
}

.account-intro .section-eyebrow {
    margin-bottom: 10px;
    display: block;
    color: #9a741e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.account-intro h1 {
    margin: 0 0 14px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(44px, 6vw, 62px);
    line-height: 1;
}

.account-intro p {
    max-width: 570px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.75;
}

.account-card {
    padding: 36px;
    border: 1px solid rgba(8, 47, 99, 0.11);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 65px rgba(8, 47, 99, 0.11);
}

.account-form {
    display: grid;
    gap: 21px;
}

.account-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.account-field {
    display: flex;
    flex-direction: column;
}

.account-field label {
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.account-field label span {
    color: var(--text-light);
    font-size: 10px;
    font-weight: 500;
}

.account-field input {
    width: 100%;
    height: 49px;
    padding: 0 14px;
    border: 1px solid rgba(8, 47, 99, 0.16);
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: var(--ivory-light);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.account-field input:hover {
    border-color: rgba(8, 47, 99, 0.28);
}

.account-field input:focus {
    border-color: var(--gold);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(200, 157, 56, 0.12);
}

.account-field small {
    margin-top: 6px;
    color: var(--text-light);
    font-size: 10px;
}

.account-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 12px 22px;
    border: 1px solid var(--navy);
    border-radius: 10px;
    color: #ffffff;
    background: var(--navy);
    box-shadow: 0 12px 25px rgba(8, 47, 99, 0.18);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.account-submit:hover {
    background: var(--navy-light);
    box-shadow: 0 15px 30px rgba(8, 47, 99, 0.22);
    transform: translateY(-1px);
}

.account-submit:active {
    transform: translateY(0);
}

.account-alert {
    margin-bottom: 23px;
    padding: 16px 18px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.6;
}

.account-alert strong {
    display: block;
    margin-bottom: 5px;
}

.account-alert ul {
    margin: 5px 0 0;
    padding-left: 19px;
}

.account-alert-error {
    border: 1px solid rgba(176, 55, 55, 0.22);
    color: #8d2d2d;
    background: #fff3f3;
}

.account-alert-success {
    border: 1px solid rgba(22, 121, 75, 0.22);
    color: #12623d;
    background: #effaf4;
}

.account-login-link {
    margin-top: 27px;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 12px;
}

.account-login-link a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.account-login-link a:hover {
    color: #9a741e;
}

/* Adaptación del registro para tabletas y celulares */

@media (max-width: 700px) {
    .account-page {
        min-height: auto;
        padding: 55px 16px 70px;
    }

    .account-intro {
        margin-bottom: 25px;
    }

    .account-intro h1 {
        font-size: 45px;
    }

    .account-card {
        padding: 26px 21px;
        border-radius: 18px;
    }

    .account-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .account-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .account-card {
        padding: 23px 17px;
    }

    .account-intro h1 {
        font-size: 40px;
    }

    .account-login-link {
        align-items: center;
        flex-direction: column;
    }
}
/* =========================================================
   MI ESTUDIO - PANEL DEL USUARIO
   ========================================================= */

.study-dashboard {
    min-height: 700px;
    background:
        linear-gradient(
            180deg,
            var(--ivory-light) 0,
            #ffffff 420px
        );
}

.study-dashboard-hero {
    padding: 58px 0 115px;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(227, 195, 111, 0.22),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            var(--navy-dark),
            var(--navy)
        );
}

.study-dashboard-eyebrow {
    margin-bottom: 9px;
    display: block;
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.study-dashboard-hero h1 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(44px, 6vw, 60px);
    line-height: 1;
}

.study-dashboard-hero p {
    max-width: 570px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.7;
}

.study-dashboard-container {
    position: relative;
    margin-top: -65px;
    padding-bottom: 90px;
}

.study-summary {
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.study-summary-card {
    min-height: 115px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-radius: 15px;
    color: inherit;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 14px 35px rgba(8, 47, 99, 0.09);
}

a.study-summary-card {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

a.study-summary-card:hover {
    border-color: rgba(200, 157, 56, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(8, 47, 99, 0.12);
}

.study-summary-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #8b681c;
    background: #fff5d8;
    font-size: 18px;
    font-weight: 700;
}

.study-summary-card strong {
    display: block;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
    line-height: 1;
}

.study-summary-card div span {
    margin-top: 5px;
    display: block;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
}

.study-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    align-items: start;
    gap: 25px;
}

.study-main-panel,
.study-profile-card,
.study-navigation {
    border: 1px solid rgba(8, 47, 99, 0.1);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(8, 47, 99, 0.06);
}

.study-main-panel {
    padding: 28px;
}

.study-panel-heading {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.study-panel-heading span {
    color: #9a741e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.study-panel-heading h2 {
    margin: 3px 0 0;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
}

.study-panel-heading > a {
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.study-empty-state {
    padding: 55px 25px;
    border: 1px dashed rgba(8, 47, 99, 0.16);
    border-radius: 14px;
    text-align: center;
    background: var(--ivory-light);
}

.study-empty-symbol {
    width: 54px;
    height: 54px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #906d1e;
    background: #fff2cc;
    font-size: 23px;
}

.study-empty-state h3 {
    margin: 0 0 7px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
}

.study-empty-state p {
    max-width: 500px;
    margin: 0 auto 20px;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.7;
}

.study-primary-link {
    padding: 11px 17px;
    display: inline-block;
    border-radius: 8px;
    color: #ffffff;
    background: var(--navy);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.study-primary-link:hover {
    color: #ffffff;
    background: var(--navy-light);
}

.study-notes-list {
    display: grid;
    gap: 12px;
}

.study-note-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--ivory-light);
}

.study-note-type {
    color: #99721d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.study-note-card h3 {
    margin: 5px 0 7px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 22px;
}

.study-note-card p {
    margin: 0 0 9px;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.65;
}

.study-note-card small {
    color: #8994a2;
    font-size: 9px;
}

.study-sidebar {
    display: grid;
    gap: 14px;
}

.study-profile-card {
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.study-profile-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 24px;
    font-weight: 700;
}

.study-profile-info {
    min-width: 0;
}

.study-profile-info > span {
    color: #9a741e;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.study-profile-info h2 {
    margin: 3px 0 2px;
    overflow: hidden;
    color: var(--navy);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.study-profile-info p {
    margin: 0;
    overflow: hidden;
    color: var(--text-light);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.study-navigation {
    overflow: hidden;
    padding: 8px;
}

.study-navigation a {
    padding: 12px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: #536477;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.study-navigation a span {
    width: 20px;
    color: #a57c21;
    font-size: 15px;
    text-align: center;
}

.study-navigation a:hover {
    color: var(--navy);
    background: #f5f7f9;
}

.study-navigation a.active {
    color: var(--navy);
    background: #fff4d5;
}

.study-logout {
    padding: 12px;
    display: block;
    border: 1px solid rgba(151, 52, 52, 0.15);
    border-radius: 9px;
    color: #963838;
    background: #fff7f7;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.study-logout:hover {
    color: #ffffff;
    background: #963838;
}

@media (max-width: 900px) {
    .study-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .study-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .study-sidebar {
        grid-row: 1;
    }
}

@media (max-width: 560px) {
    .study-dashboard-hero {
        padding: 48px 20px 100px;
    }

    .study-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .study-summary-card {
        min-height: 95px;
        padding: 15px;
    }

    .study-summary-icon {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }

    .study-summary-card strong {
        font-size: 25px;
    }

    .study-main-panel {
        padding: 20px;
    }

    .study-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .study-summary {
        grid-template-columns: 1fr;
    }
}
/* OR HADAVAR Studio - Barra de herramientas fija */

.studio-toolbar {
    position: sticky;
    top: 130px;
    z-index: 100;
    background: #ffffff;
    margin-bottom: 24px;
}

/* Evita que el contenido quede demasiado cerca de la barra */
.studio-main {
    scroll-margin-top: 220px;
}