:root {
  --bg: #f3f7f7;
  --bg-soft: #ffffff;
  --dark: #061010;
  --dark-soft: #0a1a1b;
  --text: #102020;
  --muted: #5f7475;
  --accent: #10b7b8;
  --accent-light: #b8e0e1;
  --accent-dark: #087f81;
  --cream: #edf6f7;
  --line: rgba(8, 127, 129, 0.18);
  --card: rgba(255, 255, 255, 0.84);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('assets/fachada-nacohi.jpg');
  background-size: cover;
  background-position: center center;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 12, 0.86) 0%, rgba(4, 18, 18, 0.76) 43%, rgba(7, 28, 29, 0.44) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.08) 58%, rgba(243,247,247,1) 100%);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand img {
  display: block;
  width: min(390px, 66vw);
  height: auto;
}

.nav-cta {
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 98px);
  display: grid;
  grid-template-columns: 1.08fr .72fr;
  gap: 44px;
  align-items: center;
  padding: 26px 0 120px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  font-weight: 900;
}
.eyebrow.accent { color: var(--accent-dark); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.97;
  letter-spacing: -0.07em;
}

.hero-text {
  max-width: 730px;
  color: rgba(255,255,255,.88);
  font-size: clamp(18px, 2.05vw, 22px);
  line-height: 1.64;
}

.hero-highlight {
  max-width: 680px;
  margin: 26px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,.12);
  border-radius: 0 18px 18px 0;
  backdrop-filter: blur(8px);
}
.hero-highlight p {
  margin: 0;
  color: #e8ffff;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 700;
}

.event-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 34px 0 30px;
}
.event-summary article {
  padding: 19px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.event-summary span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}
.event-summary strong { font-size: 17px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); color: #021010; }
.button.primary:hover { background: var(--accent-light); }
.button.secondary {
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.10);
  color: white;
}
.button.full { width: 100%; font-size: 16px; }

.invitation-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px;
  background: rgba(255,255,255,.86);
  color: var(--text);
  box-shadow: 0 32px 90px rgba(0,0,0,.28);
}
.invitation-card .eyebrow { color: var(--accent-dark); }
.invitation-card h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.04;
}
.invitation-card p {
  color: var(--muted);
  line-height: 1.68;
  font-size: 17px;
}

.card-seal {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: end;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.card-seal span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.card-seal strong {
  color: var(--accent-dark);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.intro-band {
  position: relative;
  z-index: 1;
  margin-top: -64px;
}
.intro-band-inner {
  display: grid;
  grid-template-columns: .95fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 46px 38px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(0,0,0,.10);
}
.intro-band-inner p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.section { padding: 104px 0; }
.section-heading { max-width: 750px; margin-bottom: 44px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.program-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  min-height: 258px;
  box-shadow: 0 18px 50px rgba(4,20,20,.06);
}
.program-card.featured {
  background: linear-gradient(180deg, rgba(16,183,184,.15), rgba(255,255,255,.88));
  transform: translateY(-6px);
}
.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(16, 183, 184, .16);
  color: var(--accent-dark);
  font-weight: 900;
  margin-bottom: 24px;
}
.program-card h3 { margin-bottom: 12px; font-size: 21px; }
.program-card p { color: var(--muted); line-height: 1.62; }

.recognition {
  background: linear-gradient(135deg, #ffffff 0%, #e8f5f5 100%);
  color: var(--ink);
}
.recognition-inner {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 48px;
  align-items: center;
  padding: 92px 0;
}
.recognition p:last-child {
  color: #395051;
  font-size: 20px;
  line-height: 1.72;
}

.photo-story {
  background: #fff;
}
.photo-story-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 96px 0;
}
.photo-card {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(4,20,20,.12);
  border: 1px solid var(--line);
}
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-copy p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.form-section { padding-top: 96px; }
.rsvp-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(4,20,20,.10);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 9px;
  color: #244142;
  font-weight: 800;
  font-size: 14px;
}
.two-cols {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 16px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(8,127,129,.22);
  border-radius: 16px;
  background: #f8fbfb;
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  outline: none;
}
input::placeholder, textarea::placeholder { color: #8aa1a2; }
select option { color: #171717; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(16, 183, 184, .98);
  box-shadow: 0 0 0 4px rgba(16, 183, 184, .16);
}
.hidden { display: none; }
.form-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  background: #ffffff;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer strong { color: var(--text); }

@media (max-width: 980px) {
  .hero-content,
  .intro-band-inner,
  .recognition-inner,
  .photo-story-inner {
    grid-template-columns: 1fr;
  }
  .invitation-card { max-width: 640px; }
}

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .event-summary,
  .program-grid,
  .two-cols {
    grid-template-columns: 1fr;
  }
  .program-card.featured { transform: none; }
}

@media (max-width: 640px) {
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(3, 12, 12, 0.76) 0%, rgba(4, 18, 18, 0.78) 48%, rgba(243,247,247,1) 100%);
  }
  .container { width: min(100% - 28px, 1120px); }
  .brand img { width: min(330px, 82vw); }
  .hero-content { padding-bottom: 96px; }
  .hero-actions .button { width: 100%; }
  .intro-band { margin-top: -44px; }
  .event-summary article,
  .invitation-card,
  .intro-band-inner,
  .rsvp-form { border-radius: 24px; }
  .intro-band-inner,
  .rsvp-form { padding: 24px; }
  .section { padding: 76px 0; }
  .recognition-inner,
  .photo-story-inner { padding: 72px 0; }
}

.success-message {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(4,20,20,.10);
  text-align: center;
}
.success-message h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}
.success-message p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.success-location {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(8,127,129,.18);
  border-radius: 22px;
  background: #f3f7f7;
}
.success-location strong,
.success-location span,
.success-location a {
  display: block;
}
.success-location strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}
.success-location span {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.success-location a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
