:root {
  --brown-950: #2f1d12;
  --brown-800: #4a2f1e;
  --brown-700: #654329;
  --gold-500: #d99a2b;
  --gold-300: #f2c66f;
  --cream-50: #fffdf8;
  --cream-100: #fff7e7;
  --cream-200: #f9ead0;
  --ink: #211b16;
  --muted: #665e56;
  --green: #356b51;
  --danger: #8f2f2f;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(69, 43, 25, .12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--white);
  color: var(--brown-950);
  padding: .7rem 1rem;
  border-radius: 10px;
}
.skip-link:focus { left: 8px; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: 4.75rem 0; }
.section-tight { padding: 3rem 0; }
.eyebrow {
  margin: 0 0 .6rem;
  color: var(--brown-700);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}
h1, h2, h3 { line-height: 1.1; margin-top: 0; color: var(--brown-950); }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
p { margin-top: 0; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #4c433c; max-width: 760px; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,253,248,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eadcc5;
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 900; color: var(--brown-950); }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: grid; line-height: 1; }
.brand-text small { font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brown-700); margin-bottom: .25rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.site-nav a {
  padding: .65rem .58rem;
  text-decoration: none;
  font-weight: 750;
  font-size: .88rem;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--cream-200); color: var(--brown-950); }
.site-nav .nav-cta { background: var(--brown-950); color: white; margin-left: .3rem; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--brown-700); color: white; }
.site-nav .lang-toggle { margin-left: .3rem; border: 2px solid #d8c4a3; background: white; color: var(--brown-950); padding-block: .5rem; }
.site-nav .lang-toggle:hover { background: var(--cream-200); }
.menu-toggle { display: none; margin-left: auto; border: 0; background: var(--cream-200); border-radius: 12px; padding: .7rem .8rem; font-weight: 800; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgba(217,154,43,.22), transparent 25rem),
    linear-gradient(135deg, #fffdf8 0%, #fff4dc 100%);
  border-bottom: 1px solid #eadcc5;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 3rem; padding: 5rem 0 4rem; }
.hero-copy h1 span { color: var(--brown-700); }
.hero-copy .service-area { max-width: 780px; font-weight: 650; color: #55483d; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero-logo-shell {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 46% 54% / 45% 55% 45% 55%;
  background: linear-gradient(145deg, #f9d992, #f3b94f);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-logo-shell::after {
  content: "Serving since 1985";
  position: absolute;
  bottom: 1.2rem;
  background: rgba(255,255,255,.9);
  padding: .5rem .8rem;
  border-radius: 999px;
  font-weight: 850;
  color: var(--brown-800);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.hero-logo-shell img { width: min(260px, 72%); filter: drop-shadow(0 18px 20px rgba(61,36,17,.18)); }
html[lang="es"] .hero-logo-shell::after { content: "Sirviendo desde 1985"; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 48px;
  padding: .78rem 1.1rem;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brown-950); color: white; }
.btn-primary:hover { background: var(--brown-700); }
.btn-secondary { background: white; color: var(--brown-950); border-color: #d8c4a3; }
.btn-secondary:hover { background: var(--cream-100); }
.btn-gold { background: var(--gold-500); color: #2c1c11; }
.btn-gold:hover { background: #e5aa42; }

.hours-strip { margin-top: -1.2rem; position: relative; z-index: 4; }
.hours-card {
  display: grid;
  grid-template-columns: .9fr 1fr 1fr 1.4fr;
  background: var(--brown-950);
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hours-card > div { padding: 1.4rem 1.5rem; border-right: 1px solid rgba(255,255,255,.13); }
.hours-card > div:last-child { border-right: 0; }
.hours-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: #f1cf93; font-weight: 900; }
.hours-value { font-size: 1.15rem; font-weight: 900; margin-top: .15rem; }
.hours-card a { color: white; }

.notice {
  border-left: 5px solid var(--gold-500);
  background: #fff4d7;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
}
.notice strong { color: var(--brown-950); }
.notice-danger { border-left-color: var(--danger); background: #fff0ed; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.card {
  background: white;
  border: 1px solid #eadcc5;
  border-radius: var(--radius);
  padding: 1.55rem;
  box-shadow: 0 10px 28px rgba(75,49,30,.06);
}
.card h3 { margin-bottom: .55rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-accent { background: linear-gradient(145deg, #fff9ed, #fff2d3); }
.icon-circle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-200);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: .05rem; color: var(--green); font-weight: 1000; }
.bullet-list { padding-left: 1.2rem; }
.bullet-list li + li { margin-top: .35rem; }

.page-hero {
  padding: 4.3rem 0 3.1rem;
  background: linear-gradient(135deg, #fffaf0, #f8e5bd);
  border-bottom: 1px solid #eadcc5;
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin-bottom: .7rem; }
.breadcrumb { font-size: .9rem; font-weight: 750; color: var(--brown-700); margin-bottom: 1rem; }

.first-visit {
  background: var(--brown-950);
  color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.first-visit h2, .first-visit h3 { color: white; }
.first-visit .big-line { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 950; line-height: 1.06; margin-bottom: .8rem; }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.stat { text-align: center; border-radius: 18px; background: white; border: 1px solid #eadcc5; padding: 1.5rem 1rem; }
.stat strong { display: block; font-size: 2rem; color: var(--brown-700); line-height: 1; margin-bottom: .4rem; }

.church-grid, .partner-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.entity-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border-radius: 18px;
  background: white;
  border: 1px solid #eadcc5;
}
.entity-card h3 { font-size: 1.05rem; }
.entity-card a { font-weight: 850; color: var(--brown-700); }

.resource-card { display: flex; flex-direction: column; }
.resource-card p { flex: 1; }
.resource-card .btn { align-self: flex-start; margin-top: .4rem; }

.map-frame { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-item { padding: 1rem 1.1rem; border-radius: 16px; background: white; border: 1px solid #eadcc5; }
.contact-item strong { display: block; color: var(--brown-950); }

.form-card { background: white; border: 1px solid #eadcc5; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 800; color: var(--brown-950); }
input, select, textarea {
  width: 100%;
  border: 1px solid #cdbb9f;
  border-radius: 12px;
  padding: .78rem .85rem;
  background: #fffefb;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(217,154,43,.25); border-color: var(--gold-500); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--muted); }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.form-status { margin-top: .85rem; min-height: 1.35em; font-size: .92rem; font-weight: 700; }
.form-status.success { color: #2f6b3d; }
.form-status.error { color: #9b2c2c; }
button:disabled { opacity: .7; cursor: wait; }

.cta-band {
  background: var(--brown-950);
  color: white;
  border-radius: var(--radius);
  padding: clamp(1.7rem, 4vw, 2.7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { color: white; margin-bottom: .5rem; }
.cta-band p { margin-bottom: 0; color: #efe5dc; max-width: 700px; }

.site-footer { background: #24170f; color: #efe7df; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand img { width: 72px; }
.footer-brand strong { color: white; font-size: 1.25rem; }
.footer-links { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.footer-links a { color: #efe7df; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-link {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  transition: background .15s ease, color .15s ease;
}
.social-link:hover, .social-link:focus-visible { background: var(--gold-500); color: #2c1c11; }
.social-link svg { width: 22px; height: 22px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #cfc2b7; }

@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .4rem);
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid #eadcc5;
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: .7rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .85rem 1rem; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .site-nav .lang-toggle { margin-left: 0; text-align: center; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 3.6rem; }
  .hero-logo-shell { min-height: 300px; max-width: 520px; width: 100%; justify-self: center; }
  .hours-card { grid-template-columns: repeat(2,1fr); }
  .hours-card > div { border-bottom: 1px solid rgba(255,255,255,.13); }
  .hours-card > div:nth-child(2) { border-right: 0; }
  .hours-card > div:nth-child(3), .hours-card > div:nth-child(4) { border-bottom: 0; }
  .grid-3, .church-grid, .partner-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .brand-text small { display: none; }
  .brand-text span { font-size: .95rem; }
  .hero-grid { gap: 2rem; }
  .hero-logo-shell { min-height: 250px; }
  .hours-card, .grid-2, .grid-3, .split, .church-grid, .partner-grid, .stat-row, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hours-card > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13) !important; }
  .hours-card > div:last-child { border-bottom: 0 !important; }
  .field.full { grid-column: auto; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .section { padding: 3.5rem 0; }
}
