:root {
  --bg: #0f0f11;
  --surface: #18181b;
  --surface-hover: #222226;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --border: #303036;
  --radius: 1.5rem;
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: #fff; }

/* Componentes compartidos por todas las páginas */
.announcement {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .55rem; padding: .55rem 1rem; background: var(--accent); color: #fff;
  text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .025em;
}
.announcement a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,17,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-shell {
  width: min(100% - 2rem, 1200px); min-height: 76px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; min-width: 0; }
.brand-logo {
  width: 46px; height: 46px; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15); flex: 0 0 auto;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 1rem; font-weight: 800; letter-spacing: -.03em; }
.brand-copy small { margin-top: .25rem; color: #a1a1aa; font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); }
.nav-links a { color: #d4d4d8; font-size: .88rem; font-weight: 600; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links .nav-cta { padding: .65rem 1.1rem; border-radius: 999px; background: #fff; color: #18181b; }
.nav-links .nav-cta:hover { background: #e4e4e7; color: #09090b; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: #fff; cursor: pointer; font-size: 1.35rem;
}
.mobile-nav { display: none; width: min(100% - 2rem, 1200px); margin: 0 auto; padding: 0 0 1rem; }
.mobile-nav a { display: block; padding: .8rem .25rem; color: #e4e4e7; font-weight: 600; border-top: 1px solid rgba(255,255,255,.06); }
.mobile-nav a.nav-cta { margin-top: .6rem; padding: .85rem 1rem; text-align: center; border: 0; border-radius: 999px; background: var(--accent); color: #fff; }
.mobile-nav.is-open { display: block; }

.eyebrow { color: #fb7185; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-shell { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.section-space { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-heading { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-heading h2 { margin: .6rem 0 .8rem; color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 800; }
.section-heading p { margin: 0; color: var(--muted); }
.surface-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-hover { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card-hover:hover { transform: translateY(-5px); border-color: #52525b; background: var(--surface-hover); }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; font-size: .9rem; font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-secondary { border: 1px solid #52525b; background: rgba(39,39,42,.8); color: #fff; }
.btn-secondary:hover { background: #3f3f46; transform: translateY(-2px); }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 1rem;
  background: radial-gradient(ellipse at 75% 10%, rgba(225,29,72,.2), transparent 38%), linear-gradient(135deg,#18181b,#09090b);
  border-bottom: 1px solid var(--border); text-align: center;
}
.page-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg,transparent,var(--accent),transparent); opacity: .65; }
.page-hero .inner { position: relative; z-index: 1; width: min(100%, 850px); margin: auto; }
.page-hero h1 { margin: .7rem 0 1rem; color: #fff; font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1; letter-spacing: -.06em; font-weight: 800; }
.page-hero p { max-width: 720px; margin: auto; color: #d4d4d8; font-size: clamp(1rem, 2vw, 1.2rem); }

.pastor-feature {
  display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding: clamp(1.25rem, 4vw, 3rem); background: linear-gradient(135deg,#202024,#151518);
  border: 1px solid var(--border); border-radius: 28px;
}
.pastor-photo { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; border-radius: 20px; background: #27272a; }
.pastor-copy h2 { margin: .5rem 0 .8rem; color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.1; letter-spacing: -.04em; }
.pastor-copy p { color: #a1a1aa; }
.team-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.25rem; }
.team-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; transition: transform .25s ease,border-color .25s ease; }
.team-card:hover { transform: translateY(-5px); border-color: #52525b; }
.team-photo { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; background: #27272a; }
.team-card-body { padding: 1.2rem; }
.team-card h3 { margin: .35rem 0 .2rem; color: #fff; font-size: 1.05rem; }
.team-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.role-label { color: #fb7185; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.site-footer { margin-top: 4rem; padding: 3rem 1rem 1.5rem; background: #09090b; border-top: 1px solid var(--border); }
.footer-inner { width: min(100%,1200px); margin: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-inner p { margin: 0; color: #71717a; font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: #a1a1aa; font-size: .82rem; }
.footer-links a:hover { color: #fff; }

/* Pestañas accesibles de la página Quiénes somos */
.tabs { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.tab-button { padding: .9rem 1.5rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.tab-button[aria-selected="true"] { color: #fff; border-bottom-color: var(--accent); }
.tab-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.tab-panel[hidden] { display: none; }
.belief-card { padding: 1.5rem; }
.belief-card h3 { margin: 0 0 .4rem; color: #fff; font-size: 1.1rem; }
.belief-card p { margin: 0; color: var(--muted); font-size: .92rem; }

@media (max-width: 900px) {
  .nav-links { gap: .8rem; }
  .nav-links a { font-size: .8rem; }
  .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-shell { min-height: 68px; }
  .pastor-feature { grid-template-columns: 1fr; }
  .pastor-photo { max-width: 360px; margin-inline: auto; aspect-ratio: 5/4; }
  .tab-panel { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 440px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { aspect-ratio: 16/10; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy small { font-size: .58rem; }
  .announcement { font-size: .68rem; }
}
