/* Iglesia Bautista Smyrna · Ministerio Hispano — one stylesheet for the whole site.
   Colors come from the Smyrna logo (teal + slate) and the Spanish brochure (gold diamonds, red headings). */
:root {
  --teal-900: #083a38;
  --teal-800: #0b4f4b;
  --teal-700: #0d5c58;
  --teal-600: #12807a;
  --teal-100: #e3f1ef;
  --gold: #d99a2b;
  --gold-soft: #f2c46b;
  --red: #9b1c2c;
  --red-soft: #fbeaec;
  --ink: #1f2a2c;
  --ink-2: #4a5557;
  --ink-3: #6b7476;
  --line: #e2ddd2;
  --paper: #faf7f0;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 42, 40, .06), 0 8px 24px rgba(16, 42, 40, .08);
  --wrap: 1160px;
  --font: "Source Sans 3", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; color: var(--teal-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 780px); margin-inline: auto; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- diamonds band (from the brochure) */
.diamonds { height: 14px; background:
  linear-gradient(45deg, transparent 35%, var(--gold) 35% 65%, transparent 65%) 0 0 / 28px 14px,
  var(--teal-800); }
.diamonds.light { background:
  linear-gradient(45deg, transparent 35%, var(--gold) 35% 65%, transparent 65%) 0 0 / 28px 14px, var(--paper); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-900); margin-right: auto; }
.brand svg { width: 40px; height: 40px; color: var(--teal-700); flex: none; }
.brand b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; font-size: .78rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--teal-100); color: var(--teal-800); }
.nav a[aria-current="page"] { color: var(--teal-700); background: var(--teal-100); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--teal-800); cursor: pointer; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-gold { background: var(--gold); color: #2a1d05; }
.btn-gold:hover { background: #c98a1d; color: #2a1d05; }
.btn-outline { border-color: currentColor; color: var(--teal-700); background: transparent; }
.btn-outline:hover { background: var(--teal-100); }
.btn-light { background: #fff; color: var(--teal-800); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- hero */
.hero { position: relative; color: #fff; overflow: hidden; background:
  radial-gradient(900px 500px at 15% 0%, rgba(255, 255, 255, .14), transparent 60%),
  radial-gradient(700px 500px at 100% 100%, rgba(217, 154, 43, .25), transparent 60%),
  linear-gradient(135deg, var(--teal-900), var(--teal-700) 50%, var(--teal-600)); }
.hero .mark-bg { position: absolute; right: -120px; top: -40px; width: 560px; height: 560px; color: #fff; opacity: .06; pointer-events: none; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .kicker { color: var(--gold-soft); }
.hero-inner { position: relative; padding: 56px 0 64px; display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding: 36px 0 44px; gap: 28px; } }
.kicker { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.hero p.lead { font-size: 1.2rem; opacity: .95; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.page-hero { padding: 44px 0 40px; }
.page-hero .hero-inner { display: block; padding: 0; }
.page-hero p { max-width: 42em; font-size: 1.15rem; opacity: .95; margin: 0; }

/* ---------- sections + cards */
section.block { padding: 56px 0; }
section.block.tight { padding: 36px 0; }
section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card.flat { box-shadow: none; }

/* service times */
.times { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .times { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.time { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 18px; text-align: center; }
.time .day { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.time .hour { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--teal-800); line-height: 1.2; margin: 4px 0; }
.time .what { font-weight: 600; }

/* video cards */
.video-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.video-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 42, 40, .08), 0 14px 32px rgba(16, 42, 40, .12); color: inherit; }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--teal-800) center / cover no-repeat; }
.video-card .thumb::after { content: ""; position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%230d5c58'/%3E%3C/svg%3E") 55% 50% / 28px no-repeat; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.video-card .dur { position: absolute; right: 8px; bottom: 8px; z-index: 1; background: rgba(0, 0, 0, .75); color: #fff; font-size: .8rem; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.video-card .meta { padding: 14px 16px 16px; }
.video-card .meta b { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.3; color: var(--teal-900); }
.video-card .meta span { font-size: .92rem; color: var(--ink-3); }
.player { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; }
.featured { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: calc(var(--radius) + 4px); padding: 12px; }
.featured .cap { padding: 10px 6px 2px; }
.featured .cap b { font-family: var(--display); font-size: 1.15rem; display: block; }
.featured .cap span { opacity: .85; font-size: .95rem; }

/* list items */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.datebox { flex: none; width: 54px; text-align: center; background: var(--teal-100); border-radius: 10px; padding: 6px 0; line-height: 1.1; }
.datebox b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--teal-800); }
.datebox span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 700; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--teal-100); color: var(--teal-800); letter-spacing: .02em; }
.pill.gold { background: #fbefd8; color: #7a520c; }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.gray { background: #eceae4; color: var(--ink-2); }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--teal-800), var(--teal-600)); color: #fff; border-radius: calc(var(--radius) + 6px); padding: 32px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2, .cta h3 { color: #fff; margin: 0 0 4px; }
.cta p { margin: 0; opacity: .92; }

/* ---------- forms */
form.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--ink-3); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #cfc9bc; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(18, 128, 122, .25); border-color: var(--teal-600); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal-700); flex: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.notice.ok { background: #e3f4ea; color: #1d5b36; }
.notice.err { background: var(--red-soft); color: var(--red); }
.notice.info { background: var(--teal-100); color: var(--teal-800); }

/* ---------- prose (doctrine, about) */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--red); }
.article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.article h3 { color: var(--red); margin: 0 0 .4em; }
.verse { border-left: 4px solid var(--gold); padding: 6px 0 6px 18px; font-style: italic; color: var(--ink-2); }

/* ---------- footer */
.site-footer { background: var(--teal-900); color: #d7e6e3; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding: 44px 0 28px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; gap: 22px; } }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 24px; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- calendar */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-toolbar h2 { margin: 0 auto 0 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal .dow { background: var(--teal-800); color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: 8px; text-align: center; }
.cal .day { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; font-size: .85rem; position: relative; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: #f6f3ec; color: #b1aa9b; }
.cal .day.today { background: #fffaf0; box-shadow: inset 0 0 0 2px var(--gold); }
.cal .num { font-weight: 700; font-size: .85rem; }
.cal .ev { display: block; width: 100%; text-align: left; margin-top: 4px; padding: 3px 6px; border-radius: 6px; background: var(--teal-100); color: var(--teal-900); font: inherit; font-size: .78rem; line-height: 1.25; border: 0; cursor: pointer; text-decoration: none; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal .ev.reading { background: #fbefd8; color: #6b4708; }
.cal .ev:hover { filter: brightness(.95); }
.agenda { display: none; }
@media (max-width: 760px) {
  .cal { display: none; }
  .agenda { display: block; }
}
.agenda .daygroup { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 10px 14px; }
.agenda .daygroup.today { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(217, 154, 43, .3); }
.agenda h4 { margin: 0 0 6px; font-size: .95rem; color: var(--teal-800); }
.agenda a, .agenda button.evlink { display: block; padding: 6px 0; text-decoration: none; font: inherit; background: none; border: 0; text-align: left; color: var(--ink); cursor: pointer; width: 100%; }
.legend { display: flex; gap: 14px; font-size: .88rem; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }

/* ---------- dialog */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(8, 30, 29, .55); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; }
dialog .dlg-head h3 { margin: 0; }
dialog .dlg-body { padding: 14px 22px 22px; }
.x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 4px 8px; border-radius: 8px; }
.x:hover { background: #f0ede6; }

/* ---------- staff */
.staff { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
@media (max-width: 720px) { .staff { grid-template-columns: 1fr; } }
.staff .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); display: grid; place-items: center; color: rgba(255, 255, 255, .9); font-family: var(--display); font-size: 4rem; font-weight: 800; overflow: hidden; box-shadow: var(--shadow); }
.staff .photo img { width: 100%; height: 100%; object-fit: cover; }
.staff .photo-col .btn { width: 100%; margin-top: 14px; }

.skeleton { background: linear-gradient(90deg, #eee9df 25%, #f6f2ea 50%, #eee9df 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { padding: 28px; text-align: center; color: var(--ink-3); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}
