/* ================================================================
   IBB SISTEMA — Design System
   Fuente: Raleway | Paleta: blanco limpio + azul IBB + dorado
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Variables ────────────────────────────────────────────────── */
:root {
  --ibb-blue:    #2B4798;
  --ibb-navy:    #0E1D4D;
  --ibb-gold:    #997A2B;
  --ibb-blue-lt: #4060C8;
  --ibb-gold-lt: #C9A84C;

  /* Backgrounds claros para secciones públicas */
  --bg-dark:    #0d1520;    /* nav, footer, hero */
  --bg-white:   #ffffff;
  --bg-light:   #f5f7fc;    /* secciones alternas */
  --bg-light2:  #eef1f9;

  /* Surfaces oscuras (para panel y cards sobre fondos oscuros) */
  --bg:       #07101f;
  --bg2:      #0b1628;
  --bg3:      #0f1e35;
  --surface:  #142040;
  --surface2: #1a2a52;

  /* Texto principal del sitio (sobre fondos blancos) */
  --txt-dark:   #0e1d4d;
  --txt-body:   #374151;
  --txt-muted:  #6b7280;
  --txt-faint:  #9ca3af;

  /* Texto sobre fondos oscuros */
  --text:   #f0f4ff;
  --text2:  #8fa3cc;
  --text3:  #4a5f88;

  --border:      rgba(43,71,152,0.12);
  --border-blue: rgba(43,71,152,0.25);
  --border-gold: rgba(153,122,43,0.35);

  --success: #3a9e6f;
  --warning: #d48c20;
  --danger:  #c94040;
  --info:    #3a7fd4;

  --ff: 'Raleway', sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --max: 1160px;
  --radius: 8px;
  --transition: 0.2s ease;
  --shadow: 0 2px 12px rgba(43,71,152,.10);
  --shadow-md: 0 6px 24px rgba(43,71,152,.15);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-white);
  color: var(--txt-body);
  font-family: var(--ff);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ───────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Announcement bar ─────────────────────────────────────────── */
.announcement {
  background: var(--ibb-blue);
  color: #fff;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 1rem;
}
.announcement a { text-decoration: underline; opacity: .85; }
.announcement a:hover { opacity: 1; }

/* ── Live banner ──────────────────────────────────────────────── */
.live-banner {
  background: linear-gradient(90deg, #160505, #1e0606);
  border-bottom: 1px solid rgba(200,40,40,.3);
  padding: .65rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
}
.live-dot {
  width: 8px; height: 8px;
  background: #d63535;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(214,53,53,.4); }
  50%      { opacity:.6; box-shadow: 0 0 0 5px rgba(214,53,53,0); }
}
.live-tag   { font-size:.68rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#d63535; }
.live-title { font-size:.85rem; color:#ccc; }
.live-cta   {
  background: #d63535; color: #fff;
  padding: .3rem 1rem; border-radius: 2px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background var(--transition);
}
.live-cta:hover { background: #b02828; }

/* ── Navegación ───────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,21,32,.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: .9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  display: flex; align-items: center; gap: .9rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-brand-text { line-height: 1.2; }
.nav-name { font-size: .95rem; font-weight: 800; color: #fff; letter-spacing: .02em; }
.nav-sub  { font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }

.nav-links {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--ibb-gold-lt);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--ibb-blue);
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--ibb-blue-lt); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none; border: none; color: #fff;
  font-size: 1.4rem; padding: .25rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(13,21,32,.98);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-direction: column;
    padding: 1.5rem var(--gutter);
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: .9rem; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
/* El container dentro del hero actúa como grid de 2 cols */
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  padding-top: 7rem;
  padding-bottom: 5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--bg-dark);
}
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
/* Degradado: oscuro izquierda (texto legible), foto visible derecha */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(7,14,28,.95) 0%,
    rgba(7,14,28,.90) 30%,
    rgba(7,14,28,.50) 55%,
    rgba(7,14,28,.05) 100%
  );
}
/* Columna izquierda: texto */
.hero-content {
  position: relative;
  padding: 0;
  max-width: 520px;
}
/* Columna derecha: vacía, deja ver la foto */
.hero-spacer { position: relative; }

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 9rem;
    padding-bottom: 4rem;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(7,14,28,.88) 0%,
      rgba(7,14,28,.70) 60%,
      rgba(7,14,28,.50) 100%
    );
  }
  .hero-spacer { display: none; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ibb-gold-lt);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--ibb-gold-lt);
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--ibb-gold-lt); }
.hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.75);
  max-width: 460px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Botones ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary   { background: var(--ibb-blue); color: #fff; }
.btn-primary:hover { background: var(--ibb-blue-lt); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(43,71,152,.4); }
.btn-outline   { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-gold      { background: var(--ibb-gold); color: #fff; }
.btn-gold:hover { background: var(--ibb-gold-lt); transform: translateY(-2px); }
.btn-live {
  background: #FF0000;
  color: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
}
.btn-live:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,0,0,.4);
}
.btn-live svg { flex-shrink: 0; }
.btn-sm        { padding: .45rem 1rem; font-size: .75rem; }
.btn-lg        { padding: .9rem 2rem; font-size: .9rem; }
/* Botón outline sobre fondo claro */
.btn-outline-dark { background: transparent; color: var(--ibb-blue); border: 2px solid var(--ibb-blue); }
.btn-outline-dark:hover { background: var(--ibb-blue); color: #fff; }

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-white   { background: var(--bg-white); }
.section-light   { background: var(--bg-light); }
.section-dark    { background: var(--bg-dark); }
.section-navy    { background: var(--ibb-navy); }

/* Compatibilidad con clases antiguas */
.section-dark.bg2 { background: var(--bg2); }
.section-surface  { background: var(--surface); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-eyebrow {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ibb-blue);
  margin-bottom: .75rem;
  display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--txt-dark);
  line-height: 1.2;
}
/* Títulos sobre fondo oscuro */
.section-dark .section-title,
.section-navy .section-title {
  color: #fff;
}
.section-dark .section-eyebrow,
.section-navy .section-eyebrow {
  color: var(--ibb-gold-lt);
}
.section-desc {
  font-size: 1rem; color: var(--txt-muted);
  max-width: 540px; margin: 1rem auto 0;
  line-height: 1.7;
}
.section-dark .section-desc,
.section-navy .section-desc { color: rgba(255,255,255,.65); }

.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--ibb-blue), var(--ibb-gold));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid rgba(43,71,152,.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(43,71,152,.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 1.5rem; }
.card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--txt-dark); margin-bottom: .5rem;
}
.card-text { font-size: .9rem; color: var(--txt-muted); line-height: 1.6; }

/* Card sobre fondo oscuro */
.dark-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background var(--transition), border-color var(--transition);
}
.dark-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.2);
}

/* ── Grid ─────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

/* ── Stats bar ────────────────────────────────────────────────── */
.stats-bar {
  background: var(--ibb-navy);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-number {
  font-size: 2.4rem; font-weight: 900;
  color: var(--ibb-gold-lt);
  line-height: 1;
}
.stat-label {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: .4rem;
}

/* ── Video card ───────────────────────────────────────────────── */
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-light);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-thumb:hover img { transform: scale(1.04); }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  transition: background var(--transition);
}
.video-thumb:hover .video-play { background: rgba(43,71,152,.4); }
.play-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ibb-blue);
  font-size: 1.1rem;
  padding-left: 4px;
  transition: transform var(--transition);
}
.video-thumb:hover .play-icon { transform: scale(1.1); }

/* ── Badge de ministerio ──────────────────────────────────────── */
.ministry-icon {
  width: 56px; height: 56px;
  background: var(--bg-light2);
  border: 1px solid rgba(43,71,152,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ── Horarios ─────────────────────────────────────────────────── */
.schedule-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(43,71,152,.12);
  border-left: 4px solid var(--ibb-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.schedule-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.schedule-time {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ibb-blue);
  white-space: nowrap;
  min-width: 76px;
}
.schedule-name { font-weight: 700; color: var(--txt-dark); }
.schedule-place { font-size: .85rem; color: var(--txt-muted); }

/* ── Event card ───────────────────────────────────────────────── */
.event-card {
  display: flex; gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(43,71,152,.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-date-badge {
  flex-shrink: 0;
  width: 52px; text-align: center;
  background: var(--ibb-blue);
  border-radius: 6px;
  padding: .4rem .3rem;
  color: #fff;
}
.event-date-day  { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.event-date-mon  { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.event-title     { font-size: .95rem; font-weight: 700; color: var(--txt-dark); }
.event-meta      { font-size: .8rem; color: var(--txt-muted); margin-top: .25rem; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
label {
  display: block;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: .5rem;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="password"], input[type="number"],
select, textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(43,71,152,.2);
  border-radius: var(--radius);
  color: var(--txt-dark);
  padding: .7rem .9rem;
  font-family: var(--ff);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ibb-blue);
  box-shadow: 0 0 0 3px rgba(43,71,152,.12);
}
textarea { resize: vertical; min-height: 120px; }
::placeholder { color: var(--txt-faint); }

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--ibb-navy) 0%, #1a337a 100%);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 900; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.7); max-width: 480px; margin: 0 auto 2rem; line-height: 1.7; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: #0b1220;
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { width: 48px; margin-bottom: 1rem; }
.footer-brand-name { font-size: 1rem; font-weight: 800; color: #fff; }
.footer-brand-desc { font-size: .85rem; color: rgba(255,255,255,.5); margin-top: .5rem; line-height: 1.6; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--ibb-blue); border-color: var(--ibb-blue); color: #fff; }

.footer-col-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .88rem; color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--ibb-gold-lt); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-panel-link {
  font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.3);
  letter-spacing: .06em;
  transition: color var(--transition);
}
.footer-panel-link:hover { color: var(--ibb-gold-lt); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Alert / Flash ────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 1rem;
  border-left: 3px solid;
}
.alert-success { background: #f0fdf4; border-color: var(--success); color: #166534; }
.alert-danger  { background: #fef2f2; border-color: var(--danger);  color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: var(--warning); color: #92400e; }
.alert-info    { background: #eff6ff; border-color: var(--info);    color: #1e40af; }

/* ── Utilities ────────────────────────────────────────────────── */
.text-gold    { color: var(--ibb-gold-lt); }
.text-blue    { color: var(--ibb-blue); }
.text-muted   { color: var(--txt-muted); }
.text-dimmed  { color: var(--txt-faint); }
.text-center  { text-align: center; }
.text-sm      { font-size: .85rem; }
.text-white   { color: #fff !important; }
.fw-bold      { font-weight: 700; }
.fw-black     { font-weight: 900; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── card-sub (ministerios con subtítulo) ─────────────────────── */
.card-sub {
  font-size: .78rem; font-weight: 600;
  color: var(--ibb-blue);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

/* ── Schedule grid ────────────────────────────────────────────── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.sched-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* ── Prayer highlight (reunión de oración en sección cultos) ──── */
.prayer-highlight {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--ibb-navy) 0%, #1a2e6e 100%);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0 1.5rem;
  color: #fff;
  flex-wrap: wrap;
}
.prayer-highlight-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  margin-top: .2rem;
}
.prayer-highlight-body { flex: 1; min-width: 200px; }
.prayer-highlight-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ibb-gold-lt);
  margin-bottom: .4rem;
}
.prayer-highlight-title {
  font-size: 1.05rem; font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.prayer-days {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.prayer-day {
  display: inline-flex; flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: .5rem .8rem;
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  min-width: 80px;
  text-align: center;
}
.prayer-day.virtual {
  border-color: var(--ibb-gold);
  background: rgba(153,122,43,.15);
}
.prayer-day small {
  font-size: .68rem; font-weight: 400;
  color: rgba(255,255,255,.55);
  margin-top: .2rem;
}
.prayer-highlight-cta { align-self: center; }

/* ── Actividades + Oración (2 columnas) ───────────────────────── */
.act-oracion-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .act-oracion-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.event-list { display: flex; flex-direction: column; gap: .85rem; }

/* ── Prayer box (formulario de oración) ───────────────────────── */
.prayer-box {
  background: linear-gradient(160deg, var(--ibb-navy), #1a2e6e);
  border-radius: 14px;
  padding: 2.5rem;
  color: #fff;
  position: sticky;
  top: 80px;
}
.prayer-box .section-eyebrow { color: var(--ibb-gold-lt); }
.prayer-box-title {
  font-size: 1.35rem; font-weight: 800;
  color: #fff; margin: .5rem 0 .75rem;
  line-height: 1.3;
}
.prayer-box-desc {
  font-size: .9rem; color: rgba(255,255,255,.65);
  line-height: 1.65; margin-bottom: 1.5rem;
}
.prayer-box input,
.prayer-box textarea {
  background: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--txt-dark);
}
.prayer-box input::placeholder,
.prayer-box textarea::placeholder { color: var(--txt-faint); }
.prayer-box input:focus,
.prayer-box textarea:focus {
  border-color: var(--ibb-gold);
  box-shadow: 0 0 0 3px rgba(153,122,43,.25);
  background: #fff;
}
.prayer-box label { color: rgba(255,255,255,.7); }

/* ── Instituto section ────────────────────────────────────────── */
.instituto-section {
  background: linear-gradient(160deg, #05090f 0%, #0d1830 50%, #0e1d4d 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.instituto-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 65% 50%, rgba(43,71,152,.18) 0%, transparent 70%);
  pointer-events: none;
}
.instituto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}
@media (max-width: 860px) {
  .instituto-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.instituto-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ibb-gold-lt);
  margin-bottom: 1.5rem;
}
.instituto-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}
.instituto-title span { color: var(--ibb-gold-lt); }
.instituto-desc {
  font-size: 1rem; color: rgba(255,255,255,.68);
  line-height: 1.8; margin-bottom: 2rem;
}
.instituto-features {
  list-style: none;
  display: flex; flex-direction: column; gap: .75rem;
  margin-bottom: 2.5rem;
}
.instituto-features li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; color: rgba(255,255,255,.75);
}
.feature-check {
  width: 20px; height: 20px;
  background: rgba(43,71,152,.4);
  border: 1px solid rgba(43,71,152,.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: var(--ibb-blue-lt);
  flex-shrink: 0; margin-top: 2px;
}
.instituto-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ibb-gold);
  color: #fff !important;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  transition: all var(--transition);
}
.instituto-cta:hover {
  background: var(--ibb-gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(153,122,43,.4);
}

/* Cards del instituto */
.instituto-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .instituto-cards { grid-template-columns: 1fr; }
}
.instituto-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: background var(--transition), border-color var(--transition);
}
.instituto-card:hover {
  background: rgba(43,71,152,.15);
  border-color: rgba(43,71,152,.4);
}
.ic-icon {
  font-size: 1.8rem;
  margin-bottom: .75rem;
}
.ic-title {
  font-size: .95rem; font-weight: 700;
  color: #fff; margin-bottom: .5rem;
}
.ic-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ── Stat divider ─────────────────────────────────────────────── */
.stat-divider {
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: 1rem;
}

/* ── Contenido editor (panel) ─────────────────────────────────── */
.contenido-editor { margin-top: 1.5rem; }
.tab-nav {
  display: flex; gap: .5rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 0;
}
.tab-btn {
  padding: .65rem 1.1rem;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: .82rem; font-weight: 600;
  color: var(--txt-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  font-family: var(--ff);
}
.tab-btn:hover { color: var(--ibb-blue); }
.tab-btn.active {
  color: var(--ibb-blue);
  border-bottom-color: var(--ibb-blue);
}

/* ── Hero interior (páginas interiores) */
.hero-interior {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--ibb-navy) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-interior::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(43,71,152,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-interior .container { position: relative; }
.hero-interior .section-eyebrow { color: var(--ibb-gold-lt); }
.hero-interior h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: #fff;
  margin: .75rem 0 1rem;
  line-height: 1.15;
}
.hero-interior p {
  font-size: 1.05rem; color: rgba(255,255,255,.68);
  max-width: 540px; margin: 0 auto;
  line-height: 1.75;
}

/* ── About grid (nosotros) */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.about-lead {
  font-size: 1.1rem; color: var(--txt-dark);
  line-height: 1.85; margin-bottom: 1.5rem;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.about-stat {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.about-stat-num {
  font-size: 2rem; font-weight: 900;
  color: var(--ibb-blue); line-height: 1;
}
.about-stat-label {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--txt-muted); margin-top: .4rem;
}

/* ── Mission/Vision cards */
.mv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.mv-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--ibb-blue), var(--ibb-blue-lt));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.25rem;
}
.mv-title {
  font-size: 1.15rem; font-weight: 800;
  color: var(--txt-dark); margin-bottom: .75rem;
}
.mv-text {
  font-size: .95rem; color: var(--txt-muted); line-height: 1.75;
}

/* ── Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--ibb-blue), var(--ibb-gold));
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute; left: -2.4rem; top: 6px;
  width: 12px; height: 12px;
  background: var(--ibb-blue);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ibb-blue);
}
.timeline-year {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ibb-blue); margin-bottom: .35rem;
}
.timeline-title {
  font-size: 1rem; font-weight: 700;
  color: var(--txt-dark); margin-bottom: .4rem;
}
.timeline-text { font-size: .9rem; color: var(--txt-muted); line-height: 1.65; }

/* ── Pastor card */
.pastor-card {
  display: flex; gap: 2.5rem; align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 700px; margin: 0 auto;
}
@media (max-width: 600px) { .pastor-card { flex-direction: column; text-align: center; } }
.pastor-avatar {
  width: 120px; height: 120px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ibb-navy), var(--ibb-blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff; font-weight: 900;
}
.pastor-name { font-size: 1.3rem; font-weight: 800; color: var(--txt-dark); }
.pastor-title {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ibb-blue); margin: .35rem 0 1rem;
}
.pastor-bio { font-size: .95rem; color: var(--txt-muted); line-height: 1.75; }

/* ── Culto card grande */
.culto-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--ibb-blue);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.culto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.culto-hora {
  font-size: 2rem; font-weight: 900;
  color: var(--ibb-blue); line-height: 1;
  margin-bottom: .5rem;
}
.culto-dia {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--txt-muted); margin-bottom: 1rem;
}
.culto-nombre { font-size: 1rem; font-weight: 700; color: var(--txt-dark); margin-bottom: .5rem; }
.culto-lugar { font-size: .85rem; color: var(--txt-muted); }

/* ── Oración day card (cultos page) */
.oracion-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.oracion-day-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: background var(--transition);
}
.oracion-day-card:hover { background: rgba(255,255,255,.13); }
.oracion-day-card.virtual {
  border-color: var(--ibb-gold);
  background: rgba(153,122,43,.12);
}
.oracion-day-name {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ibb-gold-lt); margin-bottom: .5rem;
}
.oracion-day-hour {
  font-size: 1.4rem; font-weight: 900;
  color: #fff; line-height: 1;
}
.oracion-day-modal {
  font-size: .72rem; color: rgba(255,255,255,.5);
  margin-top: .4rem;
}

/* ── Ministry card (home grid-4) */
.ministry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ministry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ministry-card-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.ministry-card-name {
  font-size: 1rem; font-weight: 800;
  color: var(--txt-dark); margin-bottom: .25rem;
}
.ministry-card-sub {
  font-size: .75rem; font-weight: 600;
  color: var(--ibb-blue); letter-spacing: .06em;
  margin-bottom: .75rem;
}
.ministry-card-desc {
  font-size: .88rem; color: var(--txt-muted);
  line-height: 1.65; flex: 1;
}
.ministry-card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: .82rem; font-weight: 700;
  color: var(--ibb-blue-lt);
  letter-spacing: .03em;
}
.ministry-card-link:hover { color: var(--ibb-blue); }

/* ── Último mensaje (sección YouTube) ──────────────────────────── */
.ultimo-mensaje-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) {
  .ultimo-mensaje-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.um-video-wrap { position: relative; }
.um-thumb-link {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ibb-navy);
  aspect-ratio: 16/9;
}
.um-thumb-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.um-thumb-link:hover img { transform: scale(1.03); }
.um-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ibb-navy), var(--ibb-blue));
}
.um-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25);
  transition: background var(--transition);
}
.um-thumb-link:hover .um-play-btn { background: rgba(255,0,0,.35); }
.um-play-btn svg {
  width: 64px; height: 64px;
  background: rgba(255,0,0,.9);
  border-radius: 50%;
  padding: 14px 14px 14px 18px;
  transition: transform var(--transition);
}
.um-thumb-link:hover .um-play-btn svg { transform: scale(1.1); }

.um-titulo {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; color: var(--txt-dark);
  line-height: 1.25; margin: .6rem 0 1rem;
}
.um-desc {
  font-size: .98rem; color: var(--txt-muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════
   PROFESSIONAL POLISH — overrides & improvements
   ═══════════════════════════════════════════════════════════════ */

/* Hero: ajuste de altura para que se vea contenido abajo en desktop */
@media (min-width: 901px) {
  .hero { min-height: 92vh; }
}

/* Hero: sombra sutil en texto para máxima legibilidad sobre foto */
.hero-eyebrow,
.hero-title,
.hero-desc {
  text-shadow: 0 2px 12px rgba(0,0,8,.35);
}

/* Mejora visual en botones del hero */
.hero-actions .btn {
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

/* Sección stats: mayor impacto visual */
.stats-bar {
  background: linear-gradient(135deg, #0b163a 0%, var(--ibb-navy) 50%, #0b163a 100%);
  border-top: 3px solid var(--ibb-gold);
  border-bottom: 3px solid rgba(43,71,152,.3);
}
.stats-grid { padding: 1rem 0; }
.stat-number { text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.stat-divider { border-left: 1px solid rgba(255,255,255,.12); }

/* Section header: línea dorada decorativa */
.section-header .section-eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
}
.section-header .section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Divider mejorado */
.divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--ibb-blue), var(--ibb-gold-lt));
  margin: 1.1rem auto 0;
  border-radius: 99px;
}

/* Card hover mejorado */
.card:hover {
  box-shadow: 0 12px 32px rgba(43,71,152,.16);
}

/* Mejor legibilidad en section-light */
.section-light { border-top: 1px solid rgba(43,71,152,.06); border-bottom: 1px solid rgba(43,71,152,.06); }

/* Schedule item: borde superior dorado en hover */
.schedule-item:hover { border-left-color: var(--ibb-gold); }

/* Culto card: gradiente en el borde superior */
.culto-card { border-top: 4px solid; border-image: linear-gradient(90deg,var(--ibb-blue),var(--ibb-blue-lt)) 1; }

/* Hero interior: variantes de color para eyebrow */
.hero-interior .section-eyebrow::before { background: var(--ibb-gold-lt); }

/* Footer: acento dorado en el borde superior */
footer { border-top: 3px solid var(--ibb-gold); }

/* Imagen de hero: leve zoom en parallax falso para más profundidad */
.hero-bg img { transition: transform 8s ease; }

/* Stats bar: números más grandes en mobile */
@media (max-width: 480px) {
  .stat-number { font-size: 2rem; }
}

/* Ministerios: grid más apretado en 4 columnas */
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
}

/* Link de ministerio: separador visual superior */
.ministry-card-link {
  border-top: 1px solid rgba(43,71,152,.1);
  padding-top: .85rem;
  width: 100%;
  text-align: center;
}

/* About grid: imagen placeholder */
.about-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--ibb-navy), var(--ibb-blue-lt));
  display: flex; align-items: center; justify-content: center;
}
.about-img-placeholder {
  font-size: 4rem; opacity: .25;
}

/* Pastor card: efecto azul sutil en hover */
.pastor-card:hover {
  border-color: rgba(43,71,152,.25);
  box-shadow: 0 8px 28px rgba(43,71,152,.13);
}

/* CTA section: patrón de puntos sutil */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.cta-section > .container { position: relative; }

/* Mejor espaciado para event cards en mobile */
@media (max-width: 600px) {
  .event-card { flex-direction: column; gap: .85rem; }
  .act-oracion-grid { grid-template-columns: 1fr; }
}

/* Scrollbar elegante */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(43,71,152,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ibb-blue); }

/* Nav: blur más pronunciado */
nav { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
