/* Web pública de Ministerios Ebenezer · Iglesia de Cristo Sabaoth (fase 8).
   Criterio: moderna y elegante, que impacte por la calidad y no por el tamaño. Granate de base, dorado solo como
   acento, marfil y arena para respirar. Movimiento mínimo: el vídeo de la portada y una aparición suave al bajar.
   Primero para el móvil; las secciones claras y oscuras se alternan, así que no depende del modo del sistema. */
:root {
    --wine-950: #140406;
    --wine-900: #22070b;
    --wine-800: #3a0c12;
    --wine-700: #6b1414;
    --wine-600: #842028;
    --gold-300: #ead6a8;
    --gold-400: #d9b86f;
    --gold-500: #c19a4e;
    --gold-600: #9c7a35;
    --ivory: #fbf7f1;
    --sand: #f4ece1;
    --ink: #1f1416;
    --ink-soft: #5e4f4c;
    --night-ink: #f5eee8;
    --night-soft: #c9b8b1;
    --line: rgb(31 20 22 / .1);
    --night-line: rgb(255 255 255 / .1);
    --radius: 16px;
    --max: 1160px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --header: 68px;
}

html.pub-html { background: var(--wine-950); scroll-behavior: smooth; scroll-padding-top: var(--header); }
@media (prefers-reduced-motion: reduce) { html.pub-html { scroll-behavior: auto; } }
body.pub { margin: 0; background: var(--ivory); color: var(--ink); font-family: 'Gotham', system-ui, sans-serif; font-size: 16px; line-height: 1.7; overflow-x: clip; -webkit-font-smoothing: antialiased; }
.pub a { color: inherit; }
.pub img { max-width: 100%; }
.pub :focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }
.pub-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pub-skip { position: absolute; top: -80px; left: 16px; z-index: 60; padding: 10px 14px; border-radius: 10px; background: var(--gold-400); color: var(--ink); font-weight: 700; }
.pub-skip:focus { top: 12px; }
.pub-container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Tipografía ---------- */
.pub-display { margin: 10px 0 16px; font-size: clamp(1.75rem, 4.6vw, 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.pub-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--wine-700); font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.pub-kicker::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.pub-kicker--gold { color: var(--gold-400); }

/* ---------- Botones ---------- */
.pub-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: .95rem; font-weight: 700; letter-spacing: .01em; text-decoration: none; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms var(--ease); }
.pub-button:hover { transform: translateY(-1px); }
.pub-button:active { transform: none; }
.pub-button--gold { background: var(--gold-400); color: var(--wine-900) !important; }
.pub-button--gold:hover { background: var(--gold-300); }
.pub-button--glass { border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .04); color: #fff !important; }
.pub-button--glass:hover { border-color: rgb(255 255 255 / .7); background: rgb(255 255 255 / .1); }
.pub-button--wine { background: var(--wine-700); color: #fff !important; }
.pub-button--wine:hover { background: var(--wine-600); }
.pub-button--outline { border-color: var(--line); background: #fff; color: var(--ink) !important; }
.pub-button--outline:hover { border-color: rgb(107 20 20 / .35); }
.pub-button--whatsapp { background: #1e8e4d; color: #fff !important; }
.pub-button--whatsapp:hover { background: #22a259; }

/* ---------- Cabecera ---------- */
.pub-header { position: sticky; top: 0; z-index: 40; background: rgb(20 4 6 / .92); color: #fff; backdrop-filter: blur(12px); transition: background-color 300ms ease, box-shadow 300ms ease; }
.pub--home .pub-header { position: fixed; right: 0; left: 0; background: linear-gradient(rgb(20 4 6 / .55), transparent); backdrop-filter: none; }
.pub--home .pub-header.is-scrolled, .pub--home .pub-header.is-open { background: rgb(20 4 6 / .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--night-line); }
.pub-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--max); min-height: var(--header); margin: 0 auto; padding: 0 16px; }
.pub-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.pub-brand img { width: 40px; height: 40px; }
.pub-brand span { display: grid; line-height: 1.2; }
.pub-brand strong { font-size: .92rem; font-weight: 700; letter-spacing: .02em; }
.pub-brand small { color: var(--gold-300); font-size: .7rem; letter-spacing: .04em; }
.pub-menu-toggle { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; background: transparent; cursor: pointer; }
.pub-menu-toggle__bars { display: grid; gap: 6px; width: 18px; }
.pub-menu-toggle__bars span { display: block; height: 1.5px; border-radius: 2px; background: #fff; transition: transform 250ms var(--ease); }
.pub-header.is-open .pub-menu-toggle__bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.pub-header.is-open .pub-menu-toggle__bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.pub-nav { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: calc(var(--header) + 16px) 28px 32px; background: var(--wine-950); opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s linear 250ms; }
.pub-header.is-open .pub-nav { opacity: 1; visibility: visible; transition: opacity 250ms ease; }
.pub-nav > a { padding: 9px 0; border-bottom: 1px solid var(--night-line); color: #fff; font-size: 1.3rem; font-weight: 500; text-decoration: none; }
.pub-nav > a:hover { color: var(--gold-300); }
.pub-nav .pub-nav__app { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 22px; border: 1px solid var(--gold-400); border-radius: 999px; color: var(--gold-300); font-size: .95rem; font-weight: 700; }
.pub-nav__social { display: flex; gap: 10px; margin-top: 24px; }
.pub-nav__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--night-line); border-radius: 50%; color: #fff; text-decoration: none; }
body.pub-menu-open { overflow: hidden; }
@media (min-width: 1000px) {
    .pub-menu-toggle { display: none; }
    .pub-nav { position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: none; opacity: 1; visibility: visible; }
    .pub-nav > a { padding: 8px 10px; border: 0; font-size: .86rem; font-weight: 500; }
    .pub-nav > a:hover { color: var(--gold-300); }
    .pub-nav .pub-nav__app { margin: 0 0 0 12px; padding: 8px 16px; font-size: .84rem; }
    .pub-nav .pub-nav__app:hover { background: var(--gold-400); color: var(--wine-900); }
    .pub-nav__social { display: none; }
}

/* ---------- Portada con vídeo ---------- */
.pub-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; overflow: hidden; background: var(--wine-950); color: #fff; isolation: isolate; }
.pub-hero__media { position: absolute; inset: 0; z-index: -1; }
.pub-hero__video { width: 100%; height: 100%; object-fit: cover; }
/* Velo granate: el texto siempre se lee y el vídeo queda como atmósfera, no como protagonista. */
.pub-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 4 6 / .55) 0%, rgb(34 7 11 / .45) 35%, rgb(20 4 6 / .9) 100%), rgb(58 12 18 / .25); }
.pub-hero__inner { display: grid; justify-items: start; gap: 16px; width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header) + 40px) 16px 28px; }
.pub-brands { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.pub-brands__ministry { width: 64px; height: 64px; }
.pub-brands__church { width: 72px; height: auto; opacity: .95; }
.pub-brands__divider { width: 1px; height: 44px; background: rgb(255 255 255 / .35); }
.pub-hero h1 { max-width: 14ch; margin: 0; font-size: clamp(2.3rem, 8vw, 4.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.pub-hero h1 span { color: var(--gold-300); }
.pub-hero__lead { max-width: 44ch; margin: 0; color: rgb(255 255 255 / .85); font-size: 1.05rem; line-height: 1.6; }
.pub-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pub-hero__bar { display: grid; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px 24px; gap: 1px; }
.pub-hero__fact { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgb(255 255 255 / .16); text-decoration: none; }
.pub-hero__fact > i { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border: 1px solid rgb(217 184 111 / .55); border-radius: 50%; color: var(--gold-300); font-size: .95rem; }
.pub-hero__fact span { display: grid; min-width: 0; line-height: 1.35; }
.pub-hero__fact small { color: var(--gold-300); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pub-hero__fact strong { font-size: .95rem; font-weight: 500; }
.pub-hero__fact em { color: rgb(255 255 255 / .7); font-size: .84rem; font-style: normal; }
.pub-hero__fact:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.pub-hero__toggle { position: absolute; right: 16px; top: calc(var(--header) + 12px); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; background: rgb(20 4 6 / .35); color: #fff; cursor: pointer; }
.pub-hero__toggle:hover { background: rgb(20 4 6 / .6); }
@media (min-width: 900px) {
    .pub-hero { justify-content: center; }
    .pub-hero__media::after { background: linear-gradient(90deg, rgb(20 4 6 / .85) 0%, rgb(20 4 6 / .55) 45%, rgb(20 4 6 / .2) 100%), linear-gradient(180deg, transparent 60%, rgb(20 4 6 / .85) 100%), rgb(58 12 18 / .2); }
    .pub-hero__inner { padding: calc(var(--header) + 72px) 24px 56px; }
    .pub-brands__ministry { width: 76px; height: 76px; }
    .pub-brands__church { width: 84px; }
    .pub-hero__bar { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0 24px 36px; }
    .pub-hero__toggle { top: auto; right: 24px; bottom: 36px; }
    .pub-hero__bar { padding-right: 88px; }
}

/* ---------- Secciones ---------- */
.pub-section { position: relative; padding: 72px 0; }
.pub-section--ivory { background: var(--ivory); }
.pub-section--sand { background: var(--sand); }
.pub-section--night { background: linear-gradient(180deg, var(--wine-900), var(--wine-950)); color: var(--night-ink); }
.pub-section--night p { color: var(--night-soft); }
.pub-section p { margin: 0 0 14px; }
.pub-section--ivory p, .pub-section--sand p { color: var(--ink-soft); }
.pub-section__head { max-width: 640px; margin-bottom: 40px; }
@media (min-width: 900px) { .pub-section { padding: 104px 0; } .pub-container { padding: 0 24px; } }

/* Nosotros */
.pub-about { display: grid; gap: 8px; }
.pub-about__text { font-size: 1.05rem; }
.pub-values { display: grid; gap: 0; margin-top: 32px; padding-left: 16px; list-style: none; border-top: 1px solid var(--line); }
.pub-values li { display: grid; grid-template-columns: 52px 1fr; gap: 2px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub-values__number { grid-row: span 2; color: var(--gold-600); font-size: 1.5rem; font-weight: 300; line-height: 1.2; }
.pub-values strong { font-size: 1.1rem; font-weight: 700; }
.pub-values li > span:last-child { color: var(--ink-soft); }
@media (min-width: 900px) {
    .pub-about { grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
    .pub-values { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-left: 24px; border-top: 0; }
    .pub-values li { grid-template-columns: 1fr; padding: 24px 0 0; border-top: 1px solid var(--gold-500); border-bottom: 0; }
    .pub-values__number { grid-row: auto; margin-bottom: 6px; }
}

/* Pastores */
.pub-pastors { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
.pub-pastors li { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pub-pastors__photo { display: grid; place-items: center; width: 168px; height: 168px; margin-bottom: 16px; padding: 6px; border: 1px solid rgb(217 184 111 / .6); border-radius: 50%; }
.pub-pastors__photo img, .pub-pastors__photo > span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pub-pastors__photo > span { display: grid; place-items: center; background: var(--wine-800); color: var(--gold-300); font-size: 2.4rem; font-weight: 300; letter-spacing: .06em; }
.pub-pastors__role { color: var(--gold-400); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pub-pastors strong { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.pub-pastors p { max-width: 40ch; margin: 6px 0 0; }
@media (min-width: 760px) { .pub-pastors { grid-template-columns: repeat(2, 1fr); gap: 48px; } }

/* Horarios */
.pub-schedule { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pub-schedule li { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pub-schedule__time { flex: 0 0 auto; min-width: 74px; padding-right: 18px; border-right: 1px solid var(--line); color: var(--wine-700); font-size: 1.5rem; font-weight: 300; letter-spacing: -.01em; }
.pub-schedule__body { display: grid; gap: 1px; }
.pub-schedule__day { display: flex; align-items: center; gap: 8px; color: var(--gold-600); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pub-schedule__day em { padding: 1px 8px; border: 1px solid var(--gold-500); border-radius: 999px; color: var(--wine-700); font-size: .62rem; font-style: normal; letter-spacing: .1em; }
.pub-schedule strong { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.pub-schedule small { color: var(--ink-soft); font-size: .84rem; }
.pub-schedule li.is-next { border-color: var(--gold-500); }
@media (min-width: 760px) { .pub-schedule { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pub-schedule { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* Ministerios */
.pub-ministries { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pub-ministries li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub-ministries__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(107 20 20 / .2); border-radius: 50%; color: var(--wine-700); font-size: 1rem; }
.pub-ministries strong { font-size: 1.08rem; }
.pub-ministries li > span:last-child { color: var(--ink-soft); }
@media (min-width: 760px) { .pub-ministries { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1100px) { .pub-ministries { grid-template-columns: repeat(3, 1fr); } }

/* Visítanos */
.pub-visit { display: grid; gap: 36px; align-items: center; }
.pub-visit__photo { position: relative; margin: 0 12px 12px 0; }
.pub-visit__photo::before { content: ''; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid var(--gold-500); border-radius: 20px; }
.pub-visit__photo img { position: relative; display: block; width: 100%; height: auto; border-radius: 20px; }
.pub-address { display: flex; gap: 14px; margin: 18px 0 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-soft); font-style: normal; }
.pub-address i { margin-top: 5px; color: var(--wine-700); }
.pub-address strong { color: var(--ink); }
@media (min-width: 900px) { .pub-visit { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Oración */
.pub-prayer { padding: 64px 0; background: var(--wine-800); color: #fff; }
.pub-prayer__inner { display: grid; justify-items: center; gap: 16px; text-align: center; }
.pub-prayer__icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgb(217 184 111 / .6); border-radius: 50%; color: var(--gold-300); font-size: 1.3rem; }
.pub-prayer h2 { margin: 0; }
.pub-prayer p { margin: 4px 0 0; color: rgb(255 255 255 / .8); }
.pub-prayer .pub-button--wine { background: var(--gold-400); color: var(--wine-900) !important; }
.pub-prayer .pub-button--wine:hover { background: var(--gold-300); }
@media (min-width: 900px) { .pub-prayer__inner { grid-template-columns: auto 1fr auto; justify-items: start; gap: 28px; text-align: left; } }

/* Redes: superficie sobria, el color de cada red solo en su icono. */
.pub-social { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pub-social__tile { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--night-line); border-radius: var(--radius); background: rgb(255 255 255 / .03); color: #fff; text-decoration: none; transition: border-color 200ms ease, background-color 200ms ease; }
.pub-social__tile:hover { background: rgb(255 255 255 / .06); }
.pub-social__tile > i:first-child { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; font-size: 1.35rem; }
.pub-social__tile span { display: grid; flex: 1; line-height: 1.35; }
.pub-social__tile strong { font-size: 1.02rem; font-weight: 700; }
.pub-social__tile small { color: var(--night-soft); }
.pub-social__go { color: var(--night-soft); font-size: .85rem; }
.pub-social__tile--instagram > i:first-child { color: #d62976; }
.pub-social__tile--instagram:hover { border-color: rgb(214 41 118 / .6); }
.pub-social__tile--facebook > i:first-child { color: #1877f2; }
.pub-social__tile--facebook:hover { border-color: rgb(24 119 242 / .6); }
.pub-social__tile--youtube > i:first-child { color: #ff0000; }
.pub-social__tile--youtube:hover { border-color: rgb(255 0 0 / .55); }
.pub-giving { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--night-line); }
.pub-giving i { color: var(--gold-400); }
@media (min-width: 900px) { .pub-social { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* Contacto */
.pub-contact { display: grid; gap: 24px; align-items: center; }
.pub-contact__actions { display: grid; gap: 12px; }
@media (min-width: 900px) { .pub-contact { grid-template-columns: 1fr auto; gap: 48px; } .pub-contact__actions { min-width: 340px; } }

/* ---------- Pie ---------- */
.pub-footer { background: var(--wine-950); color: rgb(255 255 255 / .72); text-align: center; }
.pub-footer__inner { display: grid; justify-items: center; gap: 20px; max-width: var(--max); margin: 0 auto; padding: 56px 16px calc(32px + env(safe-area-inset-bottom)); }
.pub-footer__logos { display: flex; align-items: center; gap: 22px; }
.pub-footer__logos img:first-child { width: 72px; height: auto; }
.pub-footer__logos img:last-child { width: 88px; height: auto; }
.pub-footer__divider { width: 1px; height: 52px; background: rgb(217 184 111 / .5); }
.pub-footer__claim { margin: 0; color: var(--gold-300); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.pub-footer__social { display: flex; gap: 10px; }
.pub-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--night-line); border-radius: 50%; color: #fff; text-decoration: none; transition: border-color 200ms ease; }
.pub-footer__social a:hover { border-color: var(--gold-400); }
.pub-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.pub-footer__links a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; font-size: .88rem; text-decoration: none; }
.pub-footer__links a:hover { text-decoration: underline; }
.pub-footer__copy { margin: 0; color: rgb(255 255 255 / .42); font-size: .78rem; }

/* ---------- Páginas legales ---------- */
.pub-legal { max-width: 760px; margin: 0 auto; padding: 56px 16px 80px; }
.pub-legal .pub-kicker { color: var(--wine-700); }
.pub-legal h1 { margin: 10px 0 4px; font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.pub-legal h2 { margin: 32px 0 8px; font-size: 1.15rem; }
.pub-legal p, .pub-legal li { color: var(--ink-soft); }
.pub-legal__updated { font-size: .85rem; }
.pub-legal__pending { display: flex; gap: 10px; padding: 14px 16px; border: 1px solid var(--gold-500); border-radius: 12px; background: rgb(193 154 78 / .1); color: var(--ink) !important; }
.pub-legal__pending i { margin-top: 5px; color: var(--gold-600); }

/* ---------- Aparición suave al bajar (solo con JavaScript y sin "reducir movimiento") ---------- */
@media (prefers-reduced-motion: no-preference) {
    .pub-js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
    .pub-js [data-reveal].is-visible { opacity: 1; transform: none; }
}
/* Web pública apagada (decisión 108): en la cabecera solo queda el acceso a EbeneCenter. */
.pub-header .pub-nav__app--solo { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--gold-400); border-radius: 999px; color: var(--gold-300); font-size: .875rem; font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pub-header .pub-nav__app--solo:hover { background: var(--gold-400); color: var(--wine-900); } }
