/* =========================================================
   Iglesia Cristo Vive — diseño 2026
   Colores tomados del logo: azul marino, rojo del aro y la llama
   ========================================================= */

:root {
    --navy-950: #070b1f;
    --navy-900: #0c1433;
    --navy-800: #16204d;
    --navy-700: #222f6b;
    --red: #e3241b;
    --flame: #ff7a1a;
    --gold: #ffc23d;
    --ink: #151a2d;
    --muted: #5d6478;
    --line: #e6e8ef;
    --paper: #ffffff;
    --soft: #f5f6fa;
    --grad-flame: linear-gradient(120deg, var(--red) 0%, var(--flame) 55%, var(--gold) 100%);
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 18px 40px -18px rgba(12, 20, 51, .28);
    --container: 1180px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy-900); color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--grad-flame);
    border-radius: 2px;
}
.section--dark .eyebrow { color: var(--gold); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
    margin-top: 14px;
    font-size: clamp(32px, 4.4vw, 50px);
    font-weight: 800;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.section--dark .section-head p { color: rgba(255,255,255,.72); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.accent--flame {
    background: var(--grad-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .08em;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 0;
    font: 700 15px/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--flame { background: var(--grad-flame); color: #fff; box-shadow: 0 12px 28px -10px rgba(227, 36, 27, .65); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--outline { background: transparent; color: var(--navy-900); border: 1.5px solid var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Encabezado ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: 18px 0;
}
.site-header.is-scrolled {
    background: rgba(7, 11, 31, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px -12px rgba(0,0,0,.5);
    padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand__mark {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid; place-items: center;
    border: 2px solid var(--red);
    color: var(--flame);
    font-size: 18px;
    background: rgba(255,255,255,.06);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__small { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.brand__name { font-family: var(--serif); font-style: italic; font-size: 25px; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
    display: block;
    padding: 10px 14px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    transition: background-color .2s, color .2s;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav__links .nav__admin { border: 1px solid rgba(255,255,255,.3); margin-left: 8px; }

.nav__toggle {
    display: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--navy-950);
    overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-color: var(--navy-900, #0c1433);
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(7,11,31,.55) 0%, rgba(7,11,31,.25) 35%, rgba(7,11,31,.92) 100%),
        radial-gradient(ellipse at 15% 100%, rgba(227,36,27,.35), transparent 55%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(64px, 10vh, 120px); padding-top: 140px; }
.hero h1 {
    margin-top: 18px;
    max-width: 880px;
    font-size: clamp(42px, 7.2vw, 92px);
    font-weight: 800;
}
.hero__lead { margin-top: 22px; max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.82); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow { color: var(--gold); }

.hero__dots { position: absolute; z-index: 3; right: 24px; bottom: 32px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 32px); }
.hero__dot {
    width: 8px; height: 8px; padding: 0;
    border-radius: 999px; border: 0;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: width .3s, background-color .3s;
}
.hero__dot.is-active { width: 24px; background: #fff; }

/* ---------- Franja de datos ---------- */
.quick { position: relative; z-index: 5; margin-top: -48px; }
.quick__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.quick__item { display: flex; gap: 16px; align-items: center; padding: 26px 28px; }
.quick__item + .quick__item { border-left: 1px solid var(--line); }
.quick__icon {
    flex: none;
    width: 50px; height: 50px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: #fff1e8;
    color: var(--red);
    font-size: 20px;
}
.quick__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.quick__value { font-weight: 700; line-height: 1.35; }
.quick__value a { text-decoration: none; }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__intro { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--ink); margin-top: 18px; }
.pillars { margin-top: 32px; display: grid; gap: 16px; }
.pillar {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.pillar:hover { border-color: transparent; box-shadow: var(--shadow); }
.pillar__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--navy-900); color: var(--gold); font-size: 20px;
}
.pillar h3 { font-size: 19px; font-weight: 800; }
.pillar p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.video-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    background: var(--navy-900);
}
.video-frame iframe,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame video { object-fit: contain; background: #000; }
.video-frame--wide { aspect-ratio: 16 / 9; }

/* ---------- Pastores ---------- */
.pastors { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.pastors__photo { position: relative; }
.pastors__photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; }
.pastors__photo::before {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    border: 2px solid var(--red);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.pastors__names { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 42px); margin-top: 14px; }
.pastors__text p { margin-top: 18px; color: var(--muted); }
.pastors__quote {
    margin-top: 26px;
    padding: 20px 24px;
    border-left: 3px solid var(--flame);
    background: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Áreas ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.area img { width: 88px; height: 88px; flex: none; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.area h3 { font-size: 18px; font-weight: 800; }
.area span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* ---------- Galería ---------- */
.gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 56px 0 22px; }
.gallery-head h3 { font-size: 24px; font-weight: 800; }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
}
.gallery-nav button:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---------- Radio ---------- */
.radio {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 90% 0%, rgba(255,122,26,.28), transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(227,36,27,.25), transparent 55%),
        var(--navy-900);
}
.radio__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.radio__live {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 24px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: 14px; font-weight: 600;
}
.radio__live i { color: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.player {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
}
.player__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.player__top img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #fff; }
.player__top strong { display: block; font-size: 18px; }
.player__top small { color: rgba(255,255,255,.65); }
.player iframe { width: 100%; height: 110px; border: 0; border-radius: 12px; background: #fff; display: block; }
.player__apps { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.player__apps img { height: 48px; width: auto; }
.player__apps .zeno { background: #fff; border-radius: 10px; padding: 8px 14px; height: 48px; display: grid; place-items: center; }
.player__apps .zeno img { height: 26px; }

/* ---------- Prédicas ---------- */
.sermons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.sermon {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-900);
    box-shadow: var(--shadow);
}
.sermon::before {
    /* Ícono de TikTok visible mientras carga el video */
    content: "\e07b";
    font-family: "Font Awesome 6 Brands";
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 42px; color: rgba(255,255,255,.25);
    animation: pulse 1.6s infinite;
}
.sermon iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sermons-cta { margin-top: 40px; text-align: center; }

/* ---------- Eventos ---------- */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event {
    display: flex; flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.event:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.event__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.event:hover .event__img img { transform: scale(1.05); }
.event__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event__tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.event h3 { font-size: 21px; font-weight: 800; }
.event p { color: var(--muted); font-size: 15px; }
.event__more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--navy-700); }
.event__more i { transition: transform .2s; }
.event:hover .event__more i { transform: translateX(4px); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.card { background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.card h3 { font-size: 24px; font-weight: 800; }
.card > p { margin-top: 8px; color: var(--muted); }
.form { margin-top: 26px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--soft);
    font: 500 16px var(--font);
    color: var(--ink);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--flame); background: #fff; box-shadow: 0 0 0 4px rgba(255,122,26,.15); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.visit { background: var(--navy-900); color: #fff; display: flex; flex-direction: column; }
.visit > p { color: rgba(255,255,255,.7); }
.visit__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.visit__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.visit__list i {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: var(--gold);
}
.visit__list small { display: block; color: rgba(255,255,255,.6); font-size: 13px; font-weight: 600; }
.visit__list a { text-decoration: none; }
.visit .btn { margin-top: 28px; align-self: flex-start; }

.socials { display: flex; gap: 10px; margin-top: auto; padding-top: 30px; }
.socials a {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.08);
    color: #fff; text-decoration: none; font-size: 17px;
    transition: background-color .2s, transform .2s;
}
.socials a:hover { background: var(--grad-flame); transform: translateY(-2px); }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 56px 0 32px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 14px; }
.footer__bottom a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer .socials { margin: 0; padding: 0; }

/* ---------- Volver arriba ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 50px; height: 50px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: var(--grad-flame); color: #fff; font-size: 18px;
    box-shadow: 0 12px 26px -10px rgba(227,36,27,.7);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Animación al hacer scroll (solo si hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal, .hero__slide { transition: none; transform: none; }
}

/* ---------- Alertify con los colores de la iglesia ---------- */
.alertify .ajs-header { font-family: var(--font); font-weight: 800; }
.alertify .ajs-body, .alertify-notifier .ajs-message { font-family: var(--font); }
.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok { background: var(--red); color: #fff; border-radius: 8px; }

/* =========================================================
   Inicio de sesión (Inicio.aspx)
   ========================================================= */
.login-page { background: var(--soft); }
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; min-height: 100svh; }

.login__side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px clamp(32px, 5vw, 64px) 56px;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.login__side::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(7,11,31,.55) 0%, rgba(7,11,31,.35) 40%, rgba(7,11,31,.95) 100%),
        radial-gradient(ellipse at 0% 100%, rgba(227,36,27,.4), transparent 60%);
}
.login__side > * { position: relative; }
.login__side h2 { margin-top: 14px; font-size: clamp(34px, 4vw, 54px); font-weight: 800; }
.login__side p { margin-top: 14px; max-width: 420px; color: rgba(255,255,255,.78); font-size: 18px; }
.login__side .eyebrow { color: var(--gold); }

.login__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 40px 24px;
    position: relative;
}
.login__back {
    position: absolute; top: 28px; right: 28px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; text-decoration: none; color: var(--muted);
    padding: 10px 16px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.login__back:hover { background: #fff; color: var(--ink); }

.login__box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 44px);
    box-shadow: var(--shadow);
}
.login__icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--navy-900); color: var(--gold); font-size: 22px;
}
.login__box h1 { margin-top: 22px; font-size: 30px; font-weight: 800; }
.login__lead { margin-top: 6px; color: var(--muted); }
.login__box .form { margin-top: 26px; gap: 18px; }

.field__control { position: relative; }
.field__control > i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #9aa1b4; font-size: 15px; pointer-events: none;
}
.field__control input { padding-left: 44px; padding-right: 48px; }
.field__eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 10px;
    background: transparent; color: #9aa1b4; cursor: pointer;
}
.field__eye:hover { color: var(--ink); background: var(--line); }
.login__submit { width: 100%; margin-top: 6px; padding: 16px 26px; font-size: 16px; }

.login__foot {
    margin-top: 28px; padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 14px; color: var(--muted); font-weight: 600;
}
.login__socials { display: flex; gap: 8px; }
.login__socials a {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--soft); color: var(--navy-800); text-decoration: none;
    transition: background-color .2s, color .2s;
}
.login__socials a:hover { background: var(--grad-flame); color: #fff; }
.login__copy { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
    .login { grid-template-columns: 1fr; }
    .login__side { min-height: 270px; padding: 24px 20px 56px; }
    .login__side h2 { font-size: 30px; }
    .login__side p { display: none; }
    .login__main { justify-content: flex-start; margin-top: -28px; padding: 0 16px 32px; }
    .login__back { position: static; align-self: flex-end; order: 3; }
}

/* =========================================================
   Panel Vive Kids (ViveKids_Media.aspx)
   ========================================================= */
.panel-page { background: var(--soft); min-height: 100vh; display: flex; flex-direction: column; }
.panel-page main { flex: 1; }

.panel-bar { position: sticky; top: 0; z-index: 50; background: var(--navy-950); padding: 12px 0; box-shadow: 0 8px 24px -14px rgba(0,0,0,.6); }
.panel-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-bar__actions { display: flex; gap: 8px; }
.panel-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.06);
    color: #fff; font: 600 14px var(--font); cursor: pointer;
    transition: background-color .2s, border-color .2s;
}
.panel-btn:hover { background: rgba(255,255,255,.14); }
.panel-btn--exit:hover { background: var(--red); border-color: var(--red); }

.panel-hero {
    color: #fff;
    padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 84px);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255,122,26,.3), transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(227,36,27,.28), transparent 55%),
        var(--navy-900);
}
.panel-hero__inner { display: flex; align-items: center; gap: clamp(20px, 3vw, 32px); }
.panel-hero__logo { width: clamp(72px, 9vw, 104px); height: clamp(72px, 9vw, 104px); border-radius: 24px; object-fit: cover; background: #fff; flex: none; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.panel-hero .eyebrow { color: var(--gold); }
.panel-hero h1 { margin-top: 10px; font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
.panel-hero__group {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 14px; padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.08); font-size: 15px; color: rgba(255,255,255,.85);
}
.panel-hero__group i { color: var(--gold); }
.panel-hero__group strong { color: #fff; }

.panel-section { padding-top: 40px; }
.panel-section:first-of-type { margin-top: -36px; padding-top: 0; }
.panel-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.panel-section:first-of-type .panel-section__head {
    background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow);
}
.panel-section__head h2 { font-size: 22px; font-weight: 800; }
.panel-section__head p { color: var(--muted); font-size: 15px; }

.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.lessons--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lesson {
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); text-decoration: none; color: var(--ink);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.lesson:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.lesson__img { position: relative; aspect-ratio: 398 / 561; overflow: hidden; background: var(--soft); }
.lessons--wide .lesson__img { aspect-ratio: 4 / 3; }
.lesson__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lesson:hover .lesson__img img { transform: scale(1.04); }
.lesson__num {
    position: absolute; bottom: 12px; left: 12px;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(7,11,31,.82); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.lesson__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lesson__body h3 { font-size: 17px; font-weight: 800; line-height: 1.3; }
.lesson__open { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--red); }

.panel-empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); }
.panel-foot { padding: 40px 0 28px; font-size: 14px; color: var(--muted); text-align: center; }

/* Ventana emergente */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(7,11,31,.6); backdrop-filter: blur(4px); }
.modal__card {
    position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
    transform: translateY(12px) scale(.98); transition: transform .25s ease;
}
.modal.is-open .modal__card { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; font-size: 16px; }
.modal__close:hover { background: var(--line); }
.modal__card h2 { margin-top: 18px; font-size: 26px; font-weight: 800; }
.modal__card .form { margin-top: 22px; margin-bottom: 20px; }
.field__error { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--red); }

@media (max-width: 600px) {
    .panel-btn span { display: none; }
    .panel-btn { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 16px; }
    .panel-hero__inner { align-items: flex-start; }
    .lessons { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .lessons--wide { grid-template-columns: 1fr; }
    .lesson__body { padding: 12px 12px 14px; }
    .lesson__body h3 { font-size: 15px; }
    .lesson__num { bottom: 8px; left: 8px; font-size: 11px; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1040px) {
    .nav__toggle { display: grid; place-items: center; }
    .nav__links {
        position: fixed;
        inset: 74px 16px auto 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        border-radius: var(--radius);
        background: rgba(7, 11, 31, .97);
        box-shadow: 0 20px 40px rgba(0,0,0,.4);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav__links a { padding: 13px 16px; border-radius: 12px; }
    .nav__links .nav__admin { margin: 6px 0 0; text-align: center; }

    .areas { grid-template-columns: repeat(2, 1fr); }
    .sermons { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .about, .pastors, .radio__grid, .contact { grid-template-columns: 1fr; }
    .video-frame { aspect-ratio: 16 / 10; }
    .pastors__photo { max-width: 460px; }
    .quick__grid { grid-template-columns: 1fr; }
    .quick__item + .quick__item { border-left: 0; border-top: 1px solid var(--line); }
    .events { grid-template-columns: 1fr; max-width: 520px; }
    .sermons { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .areas { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .hero__content { padding-bottom: 76px; }
    .hero__dots { left: 16px; right: auto; bottom: 30px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .pastors__photo::before { inset: 14px -10px -14px 14px; }
    .gallery { grid-auto-columns: 82%; }
    .g-recaptcha { transform: scale(.9); transform-origin: left top; }
    .to-top { right: 16px; bottom: 16px; }
}
