/* =====================================================================
   El Camino del Islam — style.css
   Estilos globales · Mobile-First · Sin frameworks externos
   ===================================================================== */

/* ----------------------- Variables CSS ----------------------- */
:root {
    /* Paleta sobria: verde esmeralda profundo + dorado/arena + marfil */
    --c-bg:          #faf7f0;   /* fondo marfil suave */
    --c-bg-alt:      #f3eddd;   /* fondo arena más cálido */
    --c-surface:     #ffffff;   /* tarjetas */
    --c-dark:        #172d26;   /* verde profundo actualizado */
    --c-dark-2:      #0f1f1a;   /* verde aún más oscuro */
    --c-dark-soft:   #1f4338;   /* verde medio */
    --c-accent:      #c9a227;   /* dorado refinado */
    --c-accent-soft: #e6c97b;   /* dorado claro */
    --c-text:        #1a1f1c;   /* texto principal */
    --c-text-soft:  #5a6157;   /* texto secundario */
    --c-border:      #e3dccc;   /* bordes sutiles */
    --c-shadow:      0 12px 40px rgba(23, 45, 38, .10);
    --c-shadow-lg:   0 30px 80px rgba(23, 45, 38, .18);
    --c-radius-sm:   8px;
    --c-radius:      14px;
    --c-radius-lg:   22px;

    /* Tipografía */
    --font-display: 'Cinzel', 'Amiri', serif;
    --font-body:    'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-arabic:  'Amiri', 'Cinzel', serif;

    /* Layout */
    --max-w:        1200px;
    --nav-h:        72px;
}

/* ----------------------- Reset / Base ----------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--c-dark);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 .5em;
    letter-spacing: .01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1em; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-dark);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 999;
}
.skip-link:focus { left: 0; }

/* ----------------------- Layout helpers ----------------------- */
.container {
    width: min(100% - 2.5rem, var(--max-w));
    margin-inline: auto;
}

.section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}
.section--alt { background: var(--c-bg-alt); }
.section--dark {
    background: var(--c-dark);
    color: #f3eddd;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--c-accent-soft); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}
.section-head .eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    color: var(--c-accent);
    margin-bottom: .8rem;
}
.section-head p { color: var(--c-text-soft); }

.eyebrow-arabic {
    font-family: var(--font-arabic);
    color: var(--c-accent);
    font-size: 1.1rem;
    direction: rtl;
}

/* ----------------------- Botones ----------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1.5px solid transparent;
    transition: all .25s ease;
    cursor: pointer;
}
.btn--primary {
    background: var(--c-dark);
    color: #fff;
    border-color: var(--c-dark);
}
.btn--primary:hover { background: var(--c-dark-2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(11,61,46,.25); }

.btn--gold {
    background: var(--c-accent);
    color: var(--c-dark);
    border-color: var(--c-accent);
}
.btn--gold:hover { background: var(--c-accent-soft); transform: translateY(-2px); }

.btn--ghost {
    background: transparent;
    color: var(--c-dark);
    border-color: var(--c-border);
}
.btn--ghost:hover { background: var(--c-surface); border-color: var(--c-dark); }

.btn--small { padding: .55rem 1.1rem; font-size: .82rem; }

/* ----------------------- Navbar ----------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 240, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--c-border);
    transition: box-shadow .3s ease, background .3s ease;
}
.navbar.is-scrolled {
    box-shadow: 0 6px 24px rgba(11, 61, 46, .08);
    background: rgba(250, 247, 240, .95);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--c-dark);
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--c-accent);
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name-strong { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .04em; }
.brand-name-sub { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--c-text-soft); }

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.nav-menu a {
    display: inline-block;
    padding: .55rem .9rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: .92rem;
    color: var(--c-text);
    transition: color .2s, background .2s;
    position: relative;
}
.nav-menu a:hover { color: var(--c-dark); background: rgba(11,61,46,.06); }
.nav-menu a.is-active { color: var(--c-dark); background: var(--c-accent-soft); background: rgba(201,162,39,.18); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: center;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--c-dark);
    transition: transform .3s, opacity .2s;
    border-radius: 2px;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        background: var(--c-bg);
        border-bottom: 1px solid var(--c-border);
        padding: 1rem 1.25rem 1.5rem;
        transform: translateY(-110%);
        transition: transform .35s ease;
        box-shadow: var(--c-shadow);
    }
    .nav-menu.is-open { transform: translateY(0); }
    .nav-menu ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .nav-menu a { display: block; padding: .85rem 1rem; font-size: 1rem; border-radius: var(--c-radius-sm); }
}

/* ====================================================================
   HERO SLIDER (5 Pilares)
   ===================================================================== */
.hero {
    position: relative;
    height: clamp(540px, 90vh, 760px);
    background: var(--c-dark);
    color: #fff;
    overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
    padding: 5rem 0 6rem;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-slide.is-active .hero-slide-bg { transform: scale(1); }
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,47,36,.55) 0%, rgba(10,47,36,.85) 100%),
        radial-gradient(circle at 70% 30%, rgba(201,162,39,.25), transparent 60%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    width: min(100% - 2.5rem, var(--max-w));
    margin-inline: auto;
    max-width: 720px;
}
/* Header del slide: número + árabe + español alineados en columna */
.hero-slide-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    margin-bottom: 1rem;
}
.hero-slide-head .hero-slide-number { margin-bottom: .1rem; }
.hero-slide-arabic-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .8rem;
    direction: rtl;
    justify-content: flex-end;
    width: 100%;
}
.hero-slide-arabic-line .ar {
    font-family: var(--font-arabic);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--c-accent-soft);
    line-height: 1.4;
}
.hero-slide-arabic-line .es-translit {
    font-family: var(--font-display);
    color: rgba(255,255,255,.78);
    font-size: clamp(.9rem, 1.8vw, 1.05rem);
    letter-spacing: .04em;
    direction: ltr;
}
.hero-slide h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    margin-bottom: 1rem;
    margin-top: .2rem;
}
.hero-slide h1 .gold { color: var(--c-accent-soft); }
.hero-slide p {
    color: rgba(255,255,255,.92);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 560px;
    margin-bottom: 2rem;
}
.hero-slide-number {
    font-family: var(--font-display);
    color: var(--c-accent-soft);
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: .4rem;
    display: block;
    opacity: .8;
}

/* Controles del slider */
.hero-controls {
    position: absolute;
    bottom: 1.8rem;
    left: 0; right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.hero-dot {
    width: 32px; height: 4px;
    background: rgba(255,255,255,.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .3s;
}
.hero-dot.is-active { background: var(--c-accent); transform: scaleY(1.5); }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.18);
    color: #fff;
    display: grid;
    place-items: center;
    backdrop-filter: blur(8px);
    transition: background .25s, transform .25s;
}
.hero-arrow:hover { background: rgba(0,0,0,.4); transform: translateY(-50%) scale(1.08); }
.hero-arrow--prev { left: clamp(1rem, 4vw, 2.5rem); }
.hero-arrow--next { right: clamp(1rem, 4vw, 2.5rem); }

/* ====================================================================
   MARQUESINA INFINITA (Dhikr)
   ===================================================================== */
.marquee {
    background: var(--c-dark);
    color: var(--c-accent-soft);
    padding: 1.1rem 0;
    overflow: hidden;
    border-block: 3px solid rgba(201,162,39,.25);
    position: relative;
    display: flex;
    width: 100vw; /* Modificado: Fuerza el ancho total de la ventana */
    max-width: 100%;
    /* fade en los bordes para suavizar entrada/salida */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.marquee-track {
    display: flex;
    flex: 0 0 auto;
    min-width: max-content; /* Modificado: CLAVE para evitar que el texto se comprima y detenga la animación */
    gap: 3rem;
    padding-right: 3rem;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite forwards; /* Modificado: Se ajusta velocidad y flujo continuo */
    will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}
.marquee-item .ar {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    direction: rtl;
    color: var(--c-accent-soft);
}
.marquee-item .es {
    font-size: .9rem;
    color: rgba(255,255,255,.78);
    letter-spacing: .04em;
}
.marquee-item .sep {
    width: 6px; height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    opacity: .55;
}
/* Como hay DOS tracks idénticos consecutivos, al mover cada uno -100% de su ancho
   el segundo toma exactamente el lugar del primero → loop infinito perfecto */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ====================================================================
   CARDS DE ORACIÓN (Prayer Times)
   ===================================================================== */
.prayers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}
.prayer-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    position: relative;
    overflow: hidden;
}
.prayer-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-soft));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.prayer-card:hover { transform: translateY(-4px); box-shadow: var(--c-shadow); border-color: var(--c-accent-soft); }
.prayer-card:hover::before { transform: scaleX(1); }
.prayer-icon {
    width: 38px; height: 38px;
    margin: 0 auto .8rem;
    color: var(--c-accent);
}
.prayer-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--c-dark);
    margin-bottom: .25rem;
}
.prayer-name-ar {
    font-family: var(--font-arabic);
    color: var(--c-text-soft);
    font-size: .95rem;
    margin-bottom: .55rem;
    direction: rtl;
}
.prayer-time {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--c-dark);
    letter-spacing: .03em;
}
.prayer-time.is-loading { color: var(--c-text-soft); font-size: .95rem; font-weight: 400; }

/* Contador (countdown) al siguiente Salah */
.prayer-countdown {
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px dashed var(--c-border);
    font-size: .72rem;
    color: var(--c-text-soft);
    letter-spacing: .04em;
    min-height: 1.2rem;
}
.prayer-countdown .label { display: block; opacity: .8; font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; }
.prayer-countdown .countdown { font-family: var(--font-display); color: var(--c-accent); font-weight: 600; font-size: .82rem; }

/* Estado activo: oración en curso */
.prayer-card.salah-active {
    background: linear-gradient(160deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
    color: #fff;
    border-color: var(--c-accent);
    box-shadow: 0 14px 40px rgba(11,61,46,.25);
    transform: translateY(-3px);
}
.prayer-card.salah-active::before { transform: scaleX(1); background: linear-gradient(90deg, var(--c-accent-soft), #fff); }
.prayer-card.salah-active .prayer-icon { color: var(--c-accent-soft); }
.prayer-card.salah-active .prayer-name { color: var(--c-accent-soft); }
.prayer-card.salah-active .prayer-name-ar { color: rgba(255,255,255,.7); }
.prayer-card.salah-active .prayer-time { color: #fff; }
.prayer-card.salah-active .prayer-countdown { border-top-color: rgba(255,255,255,.18); color: rgba(255,255,255,.78); }
.prayer-card.salah-active .prayer-countdown .countdown { color: var(--c-accent-soft); }
.prayer-card.salah-active .prayer-badge {
    position: absolute;
    top: .8rem; right: .8rem;
    background: var(--c-accent);
    color: var(--c-dark);
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 999px;
}

.prayer-legend {
    text-align: center;
    margin-top: 1.6rem;
    color: var(--c-text-soft);
    font-size: .85rem;
    display: inline-flex;
    gap: .4rem;
    align-items: center;
}
.prayer-legend svg { width: 16px; height: 16px; color: var(--c-accent); }

/* ====================================================================
   SECCIONES RESUMEN (index.php -> páginas dedicadas)
   ===================================================================== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.summary-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-lg);
    padding: 2rem 1.8rem;
    transition: transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.summary-card:hover { transform: translateY(-5px); box-shadow: var(--c-shadow); }
.summary-card-icon {
    width: 48px; height: 48px;
    background: rgba(201,162,39,.12);
    color: var(--c-accent);
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}
.summary-card h3 { margin-bottom: .4rem; }
.summary-card p { color: var(--c-text-soft); font-size: .92rem; margin-bottom: 1.2rem; }
.summary-card-link {
    font-weight: 600;
    color: var(--c-dark);
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-bottom: 1.5px solid transparent;
    transition: border-color .2s, gap .2s;
}
.summary-card-link:hover { border-color: var(--c-accent); gap: .6rem; }

/* ====================================================================
   DÍAS IMPORTANTES DEL ISLAM
   ===================================================================== */
.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.day-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-lg);
    padding: 1.8rem 1.6rem;
    position: relative;
    overflow: hidden;
    transition: transform .35s, box-shadow .35s;
}
.day-card::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 110px; height: 110px;
    background: radial-gradient(circle, rgba(201,162,39,.16), transparent 70%);
    border-radius: 50%;
    transition: transform .5s;
}
.day-card:hover { transform: translateY(-5px); box-shadow: var(--c-shadow-lg); }
.day-card:hover::after { transform: scale(1.6); }
.day-card-name {
    font-family: var(--font-display);
    color: var(--c-dark);
    font-size: 1.25rem;
    margin-bottom: .25rem;
    position: relative;
}
.day-card-date {
    color: var(--c-accent);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
}
.day-card-desc {
    color: var(--c-text-soft);
    font-size: .92rem;
    position: relative;
}

/* ====================================================================
   ACORDEÓN MEZQUITAS
   ===================================================================== */
.accordion { display: flex; flex-direction: column; gap: .9rem; }
.accordion-item {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    overflow: hidden;
    transition: box-shadow .3s, border-color .3s;
}
.accordion-item.is-open { box-shadow: var(--c-shadow); border-color: var(--c-accent-soft); }
.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-dark);
    font-family: var(--font-body);
    transition: background .2s;
}
.accordion-trigger:hover { background: rgba(11,61,46,.04); }
.accordion-region {
    display: flex; align-items: center; gap: .6rem;
}
.accordion-region .count {
    background: rgba(201,162,39,.18);
    color: var(--c-accent);
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 999px;
}
.accordion-chevron {
    width: 22px; height: 22px;
    color: var(--c-text-soft);
    transition: transform .3s;
    flex-shrink: 0;
}
.accordion-item.is-open .accordion-chevron { transform: rotate(180deg); color: var(--c-accent); }
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s ease;
}
.accordion-panel-inner {
    padding: 0 1.4rem 1.3rem;
    display: grid;
    gap: .8rem;
}
.mezquita-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem;
    border-radius: var(--c-radius-sm);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
}
.mezquita-row + .mezquita-row { margin-top: 0; }
.mezquita-nombre {
    font-family: var(--font-display);
    color: var(--c-dark);
    font-size: 1.05rem;
    font-weight: 600;
}
.mezquita-direccion {
    color: var(--c-text-soft);
    font-size: .88rem;
}
.mezquita-nota {
    color: var(--c-text-soft);
    font-size: .82rem;
    font-style: italic;
}
.mezquita-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }

/* ====================================================================
   MODAL BIOGRAFÍA (pantalla completa)
   ===================================================================== */
.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    background: rgba(10, 30, 22, .85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 1rem;
}
.bio-modal.is-open { display: block; animation: fadeIn .35s ease; }
.bio-modal-content {
    background: var(--c-bg);
    max-width: 980px;
    margin: 1rem auto;
    border-radius: var(--c-radius-lg);
    overflow: hidden;
    box-shadow: var(--c-shadow-lg);
    animation: slideUp .5s cubic-bezier(.16,1,.3,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.bio-modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none;
    color: var(--c-dark);
    display: grid;
    place-items: center;
    z-index: 5;
    box-shadow: var(--c-shadow);
    transition: transform .2s, background .2s;
}
.bio-modal-close:hover { transform: rotate(90deg); background: #fff; }
.bio-modal-header {
    position: relative;
    background: var(--c-dark);
    color: #fff;
    padding: clamp(2rem, 5vw, 3.5rem) 2rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
}
.bio-modal-header img {
    width: clamp(120px, 22vw, 180px);
    height: clamp(120px, 22vw, 180px);
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--c-accent-soft);
    box-shadow: var(--c-shadow-lg);
}
.bio-modal-header h2 { color: var(--c-accent-soft); margin-bottom: .25rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.bio-modal-header .bio-role { color: rgba(255,255,255,.85); font-size: .95rem; letter-spacing: .04em; }
.bio-modal-header .bio-socials {
    display: flex; gap: .5rem; margin-top: .9rem;
}
.bio-modal-header .bio-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: grid; place-items: center;
    transition: background .2s, transform .2s;
}
.bio-modal-header .bio-socials a:hover { background: var(--c-accent); transform: translateY(-2px); color: var(--c-dark); }
.bio-modal-body { padding: 2rem; }
.bio-modal-body h3 {
    color: var(--c-accent);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .78rem;
    margin-top: 1.8rem;
    margin-bottom: .8rem;
}
.bio-modal-body h3:first-child { margin-top: 0; }
.bio-modal-body p { color: var(--c-text); }
.bio-modal-body ul { padding-left: 1.2rem; }
.bio-modal-body ul li { margin-bottom: .4rem; color: var(--c-text-soft); list-style: disc; }
@media (max-width: 640px) {
    .bio-modal-header { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    /* En móvil: el reproductor de audio se adapta */
    .audio-player-top { padding: 1.4rem; }
    .audio-controls { gap: .6rem; flex-wrap: wrap; }
    .audio-play-btn { width: 48px; height: 48px; }
    .audio-volume-wrap { display: none !important; }  /* volumen oculto en móvil */
    .audio-progress-wrap { flex: 1 0 100%; order: 2; margin-top: .5rem; }
    .audio-play-btn { order: 1; }
    .audio-track-title { font-size: 1.3rem; }
}

/* ====================================================================
   REPRODUCTOR DE AUDIO (audios.php)
   ===================================================================== */
.audio-player {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}
.audio-player-top {
    background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
    color: #fff;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.audio-player-top::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(201,162,39,.25), transparent 70%);
    border-radius: 50%;
}
.audio-now-playing {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .7rem;
    color: var(--c-accent-soft);
    margin-bottom: .5rem;
    position: relative;
}
.audio-track-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: .25rem;
    position: relative;
    color: white;
}
.audio-track-meta {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    position: relative;
}
.audio-controls {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}
.audio-play-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-dark);
    border: none;
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: transform .2s, background .2s;
}
.audio-play-btn:hover { transform: scale(1.08); background: var(--c-accent-soft); }
.audio-progress-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.audio-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,.18);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.audio-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--c-accent);
    border-radius: 3px;
    transition: width .1s linear;
}
.audio-times {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    letter-spacing: .04em;
}
.audio-volume-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.85);
}
.audio-volume {
    width: 90px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    outline: none;
}
.audio-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-accent);
    cursor: pointer;
}
.audio-volume::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-accent);
    cursor: pointer;
    border: none;
}
.audio-playlist {
    max-height: 360px;
    overflow-y: auto;
    border-top: 1px solid var(--c-border);
}
.audio-playlist::-webkit-scrollbar { width: 6px; }
.audio-playlist::-webkit-scrollbar-track { background: transparent; }
.audio-playlist::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
.audio-playlist::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }
.audio-playlist-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
    transition: background .2s;
}
.audio-playlist-item:last-child { border-bottom: none; }
.audio-playlist-item:hover { background: var(--c-bg-alt); }
.audio-playlist-item.is-active { background: rgba(201,162,39,.12); }
.audio-playlist-item.is-active .audio-playlist-num { color: var(--c-accent); }
.audio-playlist-num {
    font-family: var(--font-display);
    color: var(--c-text-soft);
    font-size: .9rem;
    text-align: center;
}
.audio-playlist-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.audio-playlist-name {
    font-weight: 600;
    color: var(--c-dark);
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.audio-playlist-desc {
    color: var(--c-text-soft);
    font-size: .8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.audio-playlist-dur {
    color: var(--c-text-soft);
    font-size: .82rem;
    font-family: var(--font-display);
}

/* ====================================================================
   LIBROS
   ===================================================================== */
.libros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.6rem;
}
.libro-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}
.libro-card:hover { transform: translateY(-5px); box-shadow: var(--c-shadow); }
.libro-cover {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
    color: var(--c-accent-soft);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.libro-cover::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201,162,39,.3);
    border-radius: 6px;
}
.libro-cover-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.3;
    z-index: 2;
    position: relative;
}
.libro-cover-author {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    margin-top: 1rem;
    opacity: .8;
    z-index: 2;
    position: relative;
}
.libro-info { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.libro-info h3 { font-size: 1rem; margin-bottom: .35rem; }
.libro-info .libro-author { color: var(--c-text-soft); font-size: .82rem; margin-bottom: .55rem; }
.libro-info .libro-desc { color: var(--c-text-soft); font-size: .85rem; flex: 1; }
.libro-actions { margin-top: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.libro-actions .btn { white-space: nowrap; }

/* ====================================================================
   EVENTOS
   ===================================================================== */
.eventos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.evento-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.evento-card:hover { transform: translateY(-4px); box-shadow: var(--c-shadow); border-color: var(--c-accent-soft); }
.evento-head { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; align-items: center; }
.evento-date {
    background: var(--c-dark);
    color: #fff;
    border-radius: var(--c-radius-sm);
    padding: .7rem .4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
}
.evento-date-day {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--c-accent-soft);
}
.evento-date-month {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-top: .2rem;
}
.evento-info { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.evento-info h3 { font-size: 1.1rem; margin: 0; }
.evento-info .evento-loc {
    color: var(--c-text-soft);
    font-size: .8rem;
    display: inline-flex; align-items: center; gap: .35rem;
}
.evento-info p { font-size: .9rem; color: var(--c-text-soft); margin: 0; }
.evento-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--c-border); }
.evento-actions .btn { white-space: nowrap; }

@media (max-width: 560px) {
    .evento-card { padding: 1.2rem; }
    .evento-head { grid-template-columns: 64px 1fr; gap: .8rem; }
    .evento-date { padding: .55rem .35rem; min-height: 64px; }
    .evento-date-day { font-size: 1.3rem; }
}

/* ====================================================================
   VIDEOS — Layout estilo YouTube
   ===================================================================== */
.yt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.8rem;
    align-items: start;
}
.yt-main {
    background: var(--c-dark);
    border-radius: var(--c-radius-lg);
    overflow: hidden;
    box-shadow: var(--c-shadow);
}
.yt-player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}
.yt-player-wrap iframe,
.yt-player-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.yt-info {
    padding: 1.5rem 1.6rem 1.8rem;
    color: #fff;
}
.yt-info h2 { color: #fff; margin-bottom: .4rem; font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
.yt-info-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    margin-top: .8rem;
}
.yt-info-desc {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.85);
    font-size: .92rem;
}
.yt-playlist {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}
.yt-playlist-head {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.yt-playlist-head h3 {
    font-size: .95rem;
    margin: 0;
}
.yt-playlist-head .count {
    font-size: .72rem;
    color: var(--c-text-soft);
    background: var(--c-bg-alt);
    padding: .2rem .6rem;
    border-radius: 999px;
}
.yt-playlist-scroll {
    overflow-y: auto;
    flex: 1;
    padding: .6rem;
}
.yt-playlist-scroll::-webkit-scrollbar { width: 6px; }
.yt-playlist-scroll::-webkit-scrollbar-track { background: transparent; }
.yt-playlist-scroll::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
.yt-playlist-scroll::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }
.yt-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: .8rem;
    padding: .6rem;
    border-radius: var(--c-radius-sm);
    cursor: pointer;
    transition: background .2s;
    margin-bottom: .25rem;
}
.yt-item:hover { background: var(--c-bg-alt); }
.yt-item.is-active { background: rgba(201,162,39,.14); }
.yt-item-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--c-dark);
    border-radius: 6px;
    overflow: hidden;
}
.yt-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-item-duration {
    position: absolute;
    bottom: 4px; right: 4px;
    background: rgba(0,0,0,.78);
    color: #fff;
    font-size: .68rem;
    padding: .1rem .35rem;
    border-radius: 3px;
    font-family: var(--font-display);
}
.yt-item-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.yt-item-title {
    font-weight: 600;
    color: var(--c-dark);
    font-size: .85rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yt-item-meta {
    color: var(--c-text-soft);
    font-size: .75rem;
}
@media (max-width: 900px) {
    .yt-layout { grid-template-columns: 1fr; }
    .yt-playlist { max-height: 500px; }
}

/* ====================================================================
   FORMULARIO DE CONTACTO
   ===================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.contact-form {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-lg);
    padding: 2rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--c-dark);
    font-size: .9rem;
    margin-bottom: .4rem;
}
.form-control {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-sm);
    background: var(--c-bg);
    color: var(--c-text);
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(201,162,39,.18);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.form-feedback {
    padding: 1rem 1.2rem;
    border-radius: var(--c-radius-sm);
    margin-bottom: 1.2rem;
    font-size: .9rem;
    border: 1px solid;
}
.form-feedback.is-success { background: rgba(11,61,46,.08); border-color: var(--c-dark); color: var(--c-dark); }
.form-feedback.is-error   { background: rgba(180,40,40,.08); border-color: #b42828; color: #b42828; }
.contact-info {
    background: var(--c-dark);
    color: #fff;
    border-radius: var(--c-radius-lg);
    padding: 2rem;
}
.contact-info h3 { color: var(--c-accent-soft); margin-bottom: 1rem; }
.contact-info p { color: rgba(255,255,255,.85); }
.contact-info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-info-list li {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list svg { color: var(--c-accent); flex-shrink: 0; }
@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    background: var(--c-dark-2);
    color: rgba(255,255,255,.85);
    padding-top: 3.5rem;
    border-block: 3px solid rgba(201, 162, 39, .25);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.footer-brand .footer-title {
    font-family: var(--font-display);
    color: var(--c-accent-soft);
    font-size: 1.2rem;
    margin: 0 0 .5rem;
}
.footer-brand .footer-sub { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--c-accent-soft); }
.footer-cta .footer-cta-label {
    color: rgba(255,255,255,.6);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: .8rem;
}
.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--c-accent);
    color: var(--c-dark);
    padding: .7rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    transition: background .2s, transform .2s;
}
.btn-telegram:hover { background: var(--c-accent-soft); transform: translateY(-2px); }
.footer-social { display: flex; flex-direction: row; gap: .6rem; flex-wrap: wrap; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: grid; place-items: center;
    color: #fff;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}
.footer-social a:hover { transform: translateY(-3px) scale(1.08); }

/* Colores por plataforma (al hover) — usa los colores oficiales */
.footer-social .s-wa       { background: rgba(255,255,255,.08); }
.footer-social .s-wa:hover  { background: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.45); }

.footer-social .s-tg       { background: rgba(255,255,255,.08); }
.footer-social .s-tg:hover { background: #229ED9; color: #fff; box-shadow: 0 6px 18px rgba(34,158,217,.45); }

.footer-social .s-yt       { background: rgba(255,255,255,.08); }
.footer-social .s-yt:hover { background: #FF0000; color: #fff; box-shadow: 0 6px 18px rgba(255,0,0,.4); }

.footer-social .s-ig       { background: rgba(255,255,255,.08); }
.footer-social .s-ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; box-shadow: 0 6px 18px rgba(220,39,67,.5); }

.footer-social .s-fb       { background: rgba(255,255,255,.08); }
.footer-social .s-fb:hover { background: #1877F2; color: #fff; box-shadow: 0 6px 18px rgba(24,119,242,.45); }

.footer-social .s-tk       { background: rgba(255,255,255,.08); }
.footer-social .s-tk:hover { background: #000; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.55), 0 0 0 2px #ff0050 inset; }

/* Variante clara (para iconos sobre fondos claros, ej. biografía, eventos) */
.social-row { display: inline-flex; gap: .6rem; flex-wrap: wrap; }
.social-row a {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--c-bg-alt);
    display: grid; place-items: center;
    color: var(--c-dark);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
    border: 1px solid var(--c-border);
}
.social-row a:hover { transform: translateY(-3px) scale(1.08); }
.social-row .s-wa:hover  { background: #25D366; color: #fff; border-color: #25D366; box-shadow: 0 6px 18px rgba(37,211,102,.45); }
.social-row .s-tg:hover  { background: #229ED9; color: #fff; border-color: #229ED9; box-shadow: 0 6px 18px rgba(34,158,217,.45); }
.social-row .s-yt:hover  { background: #FF0000; color: #fff; border-color: #FF0000; box-shadow: 0 6px 18px rgba(255,0,0,.4); }
.social-row .s-ig:hover  { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(220,39,67,.5); }
.social-row .s-fb:hover  { background: #1877F2; color: #fff; border-color: #1877F2; box-shadow: 0 6px 18px rgba(24,119,242,.45); }
.social-row .s-tk:hover  { background: #000; color: #fff; border-color: #000; box-shadow: 0 6px 18px rgba(0,0,0,.55); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
}
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   BARRA FLOTANTE VIERNES — SURAH AL-KAHF
   ===================================================================== */
.kahf-bar {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    z-index: 150;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    padding-inline: 1rem;
    background: rgba(11, 61, 46, .96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201,162,39,.4);
    border-radius: 999px;
    box-shadow: var(--c-shadow-lg);
    padding-block: .55rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: kahfSlideUp .5s cubic-bezier(.16,1,.3,1);
}
@keyframes kahfSlideUp { from { opacity: 0; transform: translate(-50%, 100%); } to { opacity: 1; transform: translate(-50%, 0); } }
.kahf-bar[hidden] { display: none; }
.kahf-bar-inner {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-inline: .4rem;
}
.kahf-play {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-dark);
    border: none;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.kahf-info { flex: 1; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.kahf-title { font-size: .82rem; font-weight: 600; }
.kahf-progress { display: flex; align-items: center; gap: .5rem; }
.kahf-progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}
.kahf-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--c-accent);
    border-radius: 2px;
}
.kahf-time { font-size: .7rem; color: rgba(255,255,255,.7); font-family: var(--font-display); white-space: nowrap; }
.kahf-bar button.kahf-back,
.kahf-bar button.kahf-fwd,
.kahf-bar button.kahf-close {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: background .2s;
}
.kahf-bar button:hover { background: rgba(255,255,255,.22); }
.kahf-bar button.kahf-close:hover { background: rgba(180,40,40,.5); }
@media (max-width: 600px) {
    .kahf-bar { border-radius: var(--c-radius); padding: .7rem .8rem; }
    /* En móvil: ocultar controles secundarios, dejar solo Play/Pausa + Mute/Volumen + Cerrar */
    .kahf-fwd,
    .kahf-back,
    .kahf-time { display: none !important; }
    .kahf-info { flex: 1; min-width: 0; }
    .kahf-title { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .kahf-progress-track { height: 5px; }
}
@media (max-width: 380px) {
    .kahf-bar { bottom: .5rem; }
    .kahf-play { width: 38px; height: 38px; }
}

/* Botón Mute/Volumen compacto (visible siempre, mas compacto en móvil) */
.kahf-mute {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: background .2s;
}
.kahf-mute:hover { background: rgba(255,255,255,.22); }
.kahf-mute.is-muted { opacity: .55; }

/* ====================================================================
   SISTEMA COMPARTIR
   ===================================================================== */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    color: var(--c-dark);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}
.share-btn:hover { background: var(--c-dark); color: #fff; border-color: var(--c-dark); transform: translateY(-1px); }
.share-btn svg { width: 14px; height: 14px; }

.share-popup {
    position: absolute;
    z-index: 50;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    box-shadow: var(--c-shadow-lg);
    padding: .5rem;
    display: none;
    flex-direction: column;
    gap: .25rem;
    min-width: 200px;
}
.share-popup.is-open { display: flex; }
.share-popup a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .7rem;
    border-radius: var(--c-radius-sm);
    font-size: .85rem;
    color: var(--c-text);
    transition: background .15s;
}
.share-popup a:hover { background: var(--c-bg-alt); color: var(--c-dark); }
.share-popup a svg { width: 18px; height: 18px; flex-shrink: 0; }
.share-popup a.s-wa svg { color: #25D366; }
.share-popup a.s-tg svg { color: #229ED9; }
.share-popup a.s-fb svg { color: #1877F2; }
.share-popup a.s-tw svg { color: #1DA1F2; }
.share-popup a.s-cp svg { color: var(--c-accent); }

/* ====================================================================
   UTILIDADES
   ===================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.hide-on-mobile { display: none; }
@media (min-width: 760px) {
    .hide-on-mobile { display: initial; }
}
.show-on-mobile { display: initial; }
@media (min-width: 760px) {
    .show-on-mobile { display: none; }
}

/* Animación de entrada para secciones */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* En PC con puntero fino (no táctil), las secciones se muestran siempre visibles desde la carga
   para evitar que el contenido quede oculto por scroll. La animación sólo aplica en móvil. */
@media (pointer: fine) and (min-width: 1024px) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Respeto preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   CURSOS ISLÁMICOS — Estilos del módulo completo
   ============================================================ */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.course-card {
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, rgba(0,0,0,.08));
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }

.course-card-thumb { position: relative; aspect-ratio: 16/9; background: var(--c-bg-alt, #f5f5f5); overflow: hidden; }
.course-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card-nothumb { width: 100%; height: 100%; display: grid; place-items: center; color: var(--c-text-soft, #888); }
.course-badge-cert {
    position: absolute; top: .6rem; right: .6rem;
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
    padding: .3rem .6rem; border-radius: 999px; text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.course-card-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.course-card-body h3 { font-family: 'Cinzel', serif; font-size: 1.15rem; margin: 0; color: var(--c-text, #1a1a1a); }
.course-card-desc { font-size: .9rem; color: var(--c-text-soft, #666); margin: 0; flex: 1; line-height: 1.5; }
.course-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; gap: .5rem; }
.course-card-meta span { font-size: .85rem; color: var(--c-text-soft, #666); }

/* ---------- Registro ---------- */
.course-register-card {
    max-width: 720px; margin: 0 auto;
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, rgba(0,0,0,.08));
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    max-height: calc(100vh - 200px);
    max-height: calc(100dvh - 200px);
    overflow-y: auto;
    box-sizing: border-box;
}
.course-register-card h2 { font-family: 'Cinzel', serif; margin: 0 0 .3rem; color: var(--c-text, #1a1a1a); }
.course-register-card .subtitle { color: var(--c-text-soft, #666); margin: 0 0 1.5rem; font-size: .92rem; line-height: 1.5; }

/* Contenedor del registro: grid centrado verticalmente en viewport */
.course-register-wrap {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 240px);
    min-height: calc(100dvh - 240px);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.course-register-wrap > .btn {
    margin-bottom: 1rem;
}
.course-register-wrap .course-register-card {
    margin: 0;
    width: 100%;
}

/* Reducir padding del .section en páginas de formulario centrado (registro, etc.) */
.section:has(.course-register-wrap) {
    padding: 1.5rem 0;
}
/* Fallback para navegadores sin :has() — el .section-head sigue visible */
.section--form-centered {
    padding: 1.5rem 0;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 200px);
    min-height: calc(100dvh - 200px);
}

/* ---------- Layout del reproductor ---------- */
.course-player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 980px) {
    .course-player-layout { grid-template-columns: 1fr; }
}

.course-main { min-width: 0; }
.course-header { margin-bottom: 1rem; }
.course-header h2 { font-family: 'Cinzel', serif; margin: 0 0 .3rem; color: var(--c-text, #1a1a1a); }
.course-student { color: var(--c-text-soft, #666); font-size: .92rem; margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.course-progress-pill {
    background: var(--c-accent, #0b6e4f); color: #fff;
    padding: .15rem .55rem; border-radius: 999px; font-weight: 700; font-size: .8rem;
}

.course-player-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.course-player-wrap iframe,
.course-player-wrap > div { width: 100%; height: 100%; border: 0; }
.course-player-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.85);
    display: grid; place-items: center;
    z-index: 5;
}
.course-player-overlay-msg { color: #fff; font-weight: 500; }
.course-player-overlay-msg span { display: block; text-align: center; padding: 1rem; }

/* ---------- Controles propios ---------- */
.course-controls {
    display: flex; align-items: center; gap: .6rem;
    padding: .8rem 1rem;
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, rgba(0,0,0,.08));
    border-top: 0;
    border-radius: 0 0 12px 12px;
    flex-wrap: wrap;
}
.course-progress-track {
    flex: 1; min-width: 180px;
    height: 8px; position: relative;
    background: var(--c-bg-alt, #e5e5e5);
    border-radius: 4px;
    cursor: pointer;
}
.course-progress-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, var(--c-accent, #0b6e4f), #16a085);
    border-radius: 4px;
    transition: width .25s ease;
}
.course-progress-buffer {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: rgba(0,0,0,.08); border-radius: 4px;
}
.course-progress-marker {
    position: absolute; top: -3px; width: 4px; height: 14px;
    background: var(--c-accent-strong, #084d3a);
    border-radius: 2px;
    transform: translateX(-2px);
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
    pointer-events: none;
}
.course-time {
    font-size: .85rem; color: var(--c-text-soft, #666);
    font-variant-numeric: tabular-nums;
    min-width: 90px; text-align: right;
}

.course-anti-cheat-note {
    font-size: .8rem; color: var(--c-text-soft, #888);
    background: rgba(212, 160, 23, .08);
    border-left: 3px solid #d4a017;
    padding: .6rem .8rem; margin: .8rem 0;
    border-radius: 0 6px 6px 0;
}

.course-now-playing { margin: 1rem 0; }
.course-now-playing h3 { font-family: 'Cinzel', serif; margin: 0; color: var(--c-text, #1a1a1a); }
.course-now-order { color: var(--c-text-soft, #666); font-size: .85rem; margin: .2rem 0 0; }

.course-done-banner {
    background: linear-gradient(135deg, rgba(11,110,79,.08), rgba(22,160,133,.12)) !important;
    border: 1px solid rgba(11,110,79,.25);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

/* ---------- Playlist lateral ---------- */
.course-playlist {
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, rgba(0,0,0,.08));
    border-radius: 12px;
    display: flex; flex-direction: column;
    max-height: 70vh;
}
.course-playlist-head { padding: 1rem; border-bottom: 1px solid var(--c-border, rgba(0,0,0,.08)); display: flex; align-items: center; justify-content: space-between; }
.course-playlist-head h3 { font-family: 'Cinzel', serif; margin: 0; font-size: 1rem; color: var(--c-text, #1a1a1a); }
.course-playlist-head .count { font-size: .8rem; color: var(--c-text-soft, #666); background: var(--c-bg-alt, #f0f0f0); padding: .25rem .6rem; border-radius: 999px; }

.course-playlist-scroll { overflow-y: auto; padding: .5rem; flex: 1; }

.course-playlist-item {
    display: flex; gap: .7rem;
    padding: .6rem; margin-bottom: .3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease;
    align-items: center;
}
.course-playlist-item:hover { background: var(--c-bg-alt, #f5f5f5); }
.course-playlist-item.is-current { background: rgba(11,110,79,.08); box-shadow: inset 3px 0 0 var(--c-accent, #0b6e4f); }
.course-playlist-item.is-done .course-playlist-title { color: var(--c-text-soft, #666); }

.course-playlist-thumb-wrap {
    position: relative; width: 100px; height: 56px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden;
    background: var(--c-bg-alt, #ddd);
}
.course-playlist-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-playlist-check {
    position: absolute; bottom: 4px; right: 4px;
    width: 18px; height: 18px;
    background: #ccc; color: #fff;
    border-radius: 50%; display: grid; place-items: center;
    font-size: 10px;
}
.course-playlist-check.is-checked { background: var(--c-accent, #0b6e4f); }
.course-playlist-num {
    position: absolute; top: 4px; left: 4px;
    background: rgba(0,0,0,.7); color: #fff;
    padding: .1rem .35rem; border-radius: 4px; font-size: .7rem; font-weight: 700;
}
.course-playlist-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.course-playlist-title { font-size: .88rem; color: var(--c-text, #1a1a1a); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.course-playlist-status { font-size: .76rem; color: var(--c-text-soft, #888); }

/* ---------- Modal de reporte ---------- */
.course-report-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.6);
    display: grid; place-items: center;
    padding: 1rem;
}
.course-report-modal[hidden] { display: none; }
.course-report-modal-inner {
    background: #fff; max-width: 800px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    padding: 2rem; border-radius: 12px;
    position: relative;
}
.course-report-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: 0; font-size: 1.8rem;
    color: var(--c-text-soft, #888); cursor: pointer;
    line-height: 1; padding: 0 .3rem;
}
.course-report-close:hover { color: var(--c-text, #1a1a1a); }

.course-report-summary {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; margin: 1rem 0;
}
.course-report-stat {
    background: var(--c-bg-alt, #f5f5f5);
    border-radius: 10px; padding: 1rem;
    text-align: center;
}
.course-report-stat-value { font-size: 2rem; font-weight: 700; color: var(--c-accent, #0b6e4f); font-family: 'Cinzel', serif; }
.course-report-stat-label { font-size: .8rem; color: var(--c-text-soft, #666); margin-top: .2rem; }

.is-row-done td { background: rgba(11,110,79,.04); }
.is-row-pending td { background: rgba(212, 160, 23, .04); }

.course-status-tag { padding: .2rem .5rem; border-radius: 4px; font-size: .76rem; font-weight: 600; }
.course-status-done { background: rgba(11,110,79,.15); color: #0b6e4f; }
.course-status-pending { background: rgba(212, 160, 23, .18); color: #8a6d10; }

/* ---------- Toast anti-trampas ---------- */
.anticheat-toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    background: #b42828; color: #fff;
    padding: .8rem 1.2rem; border-radius: 8px;
    font-size: .9rem; font-weight: 500;
    box-shadow: 0 4px 20px rgba(180,40,40,.4);
    z-index: 10000;
    transition: opacity .6s ease;
}
.anticheat-toast.is-fading { opacity: 0; }

/* ---------- Responsive del reproductor ---------- */
@media (max-width: 640px) {
    .course-controls { gap: .4rem; padding: .6rem; }
    .course-progress-track { min-width: 120px; order: 4; flex-basis: 100%; }
    .course-time { min-width: 0; order: 5; flex: 1; text-align: left; }
    .course-register-card { padding: 1.2rem; }
    .course-report-summary { grid-template-columns: 1fr; }
}

/* ---------- Botón admin "Cursos" ---------- */
.admin-nav a[href="courses.php"] { display: flex; align-items: center; gap: .5rem; }

/* ============================================================
   MODAL DE FELICITACIONES — Curso 100% completado
   ============================================================ */

/* Overlay backdrop: cubre toda la pantalla, sobre todo lo demás */
.course-congrats-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 1rem;
    /* Hidden by default (sin animación) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility 0s linear .3s;
}
.course-congrats-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .3s ease, visibility 0s linear 0s;
}
.course-congrats-modal.is-closed {
    display: none;
}

/* Capa semi-transparente detrás del modal */
.course-congrats-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 5, .75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Tarjeta del modal (contenido) */
.course-congrats-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    background: linear-gradient(135deg, #fdfbf3 0%, #f5efe0 50%, #faf3e2 100%);
    border: 2px solid #d4a017;
    border-radius: 16px;
    padding: 2.5rem 2.2rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(212, 160, 23, .2);
    transform: translateY(20px) scale(.95);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.course-congrats-modal.is-open .course-congrats-modal-card {
    transform: translateY(0) scale(1);
}
.course-congrats-modal-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(212,160,23,.15), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* Botón de cerrar (X) en la esquina superior derecha */
.course-congrats-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    z-index: 2;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: rgba(212, 160, 23, .15);
    border: 1px solid rgba(212, 160, 23, .3);
    border-radius: 50%;
    color: #8a6d10;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.course-congrats-close:hover {
    background: rgba(212, 160, 23, .3);
    transform: rotate(90deg);
}
.course-congrats-close svg { display: block; }

/* Cuerpo del modal */
.course-congrats-modal-body {
    text-align: center;
    position: relative;
    z-index: 1;
}

.course-congrats-icon {
    width: 84px; height: 84px;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    color: #d4a017;
    background: rgba(255,255,255,.6);
    border: 2px solid #d4a017;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(212,160,23,.2);
    animation: congrats-pulse 2s ease-in-out infinite;
}
@keyframes congrats-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 12px rgba(212,160,23,.2); }
    50%      { transform: scale(1.06); box-shadow: 0 4px 20px rgba(212,160,23,.35); }
}

.course-congrats-title {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem; font-weight: 700;
    color: #8a6d10;
    margin: 0 0 .2rem;
    letter-spacing: .02em;
}
.course-congrats-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.7rem;
    color: #0b6e4f;
    margin: 0 0 1.2rem;
    direction: rtl;
    line-height: 1.4;
}
.course-congrats-lead {
    font-size: 1.05rem;
    color: #2a2520;
    line-height: 1.65;
    margin: 0 0 .8rem;
}
.course-congrats-lead strong { color: #8a6d10; }
.course-congrats-body {
    font-size: .95rem;
    color: #4a3f2a;
    line-height: 1.7;
    margin: 0 0 .8rem;
    font-style: italic;
}
.course-congrats-body em { color: #0b6e4f; font-weight: 600; }
.course-congrats-cert {
    background: rgba(212, 160, 23, .12);
    border-left: 4px solid #d4a017;
    padding: .8rem 1rem;
    border-radius: 0 6px 6px 0;
    margin: 1rem 0 .8rem;
    font-size: .92rem;
    color: #4a3f2a;
    line-height: 1.55;
    text-align: left;
}
.course-congrats-cert strong { color: #8a6d10; }
.course-congrats-footer {
    font-size: .82rem;
    color: #8a6d10;
    margin: .5rem 0 1.5rem;
    font-style: italic;
    letter-spacing: .03em;
}

/* Botón "Cerrar" del modal */
.course-congrats-ok-btn {
    width: 100%;
    justify-content: center;
    padding: .8rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0b6e4f, #16a085);
    border: 0;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    margin-top: .5rem;
}
.course-congrats-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 110, 79, .3);
}

/* Responsive: pantallas pequeñas */
@media (max-width: 640px) {
    .course-congrats-modal-card { padding: 2rem 1.3rem 1.5rem; }
    .course-congrats-icon { width: 64px; height: 64px; }
    .course-congrats-icon svg { width: 40px; height: 40px; }
    .course-congrats-title { font-size: 1.5rem; }
    .course-congrats-arabic { font-size: 1.4rem; }
    .course-congrats-lead { font-size: .98rem; }
}

/* Respeto preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .course-congrats-icon { animation: none; }
    .course-congrats-modal-card { transition: none; }
    .course-congrats-close:hover { transform: none; }
}

/* ============================================================
   AVISO DE ADBLOCKER — Cuando YouTube IFrame API falla
   ============================================================ */
.course-adblock-msg {
    text-align: center;
    color: #fff;
    max-width: 540px;
    padding: 1.5rem;
    background: rgba(180, 40, 40, .25);
    border: 1px solid rgba(255, 100, 100, .4);
    border-radius: 10px;
    backdrop-filter: blur(4px);
}
.course-adblock-icon {
    font-size: 3rem;
    margin-bottom: .5rem;
}
.course-adblock-msg h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin: 0 0 1rem;
    color: #ffd9d9;
}
.course-adblock-msg p {
    margin: .6rem 0;
    line-height: 1.55;
    font-size: .92rem;
    color: rgba(255,255,255,.92);
}
.course-adblock-msg strong { color: #fff; }
.course-adblock-msg ol {
    background: rgba(0,0,0,.3);
    padding: 1rem 1rem 1rem 2.2rem;
    border-radius: 8px;
    font-size: .9rem;
    line-height: 1.7;
}
.course-adblock-msg ol li { margin-bottom: .3rem; }
.course-adblock-msg kbd {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 4px;
    padding: .1rem .4rem;
    font-family: 'Courier New', monospace;
    font-size: .8rem;
}
