:root {
  --brand-blue: #002e9f;
  --brand-blue-dark: #001f73;
  --brand-blue-soft: #eaf1ff;
  --brand-cyan: #2db9d6;
  --brand-cyan-dark: #138ca8;
  --white: #ffffff;
  --ink: #14213d;
  --muted: #63708a;
  --surface: #ffffff;
  --background: #f3f7ff;
  --border: #d9e4f6;
  --danger: #a33232;
  --success: #176b4b;
  --shadow: 0 18px 55px rgba(0, 46, 159, 0.12);
  --page-padding: clamp(16px, 4vw, 32px);
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Montserrat", "Arial Black", Arial, sans-serif;
  --font-elegant: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--background);
}
main, section, article, form, fieldset, div { min-width: 0; }
body, button, input, textarea, select { font-family: inherit; }
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font-size: 16px; }
input, textarea, select { max-width: 100%; }
fieldset { min-inline-size: 0; }
.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}
.narrow { width: min(980px, 100%); }
.center { text-align: center; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding:
    max(42px, env(safe-area-inset-top))
    var(--page-padding)
    clamp(58px, 8vw, 86px);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 10%, rgba(45, 185, 214, 0.25), transparent 26%),
    radial-gradient(circle at 88% 85%, rgba(45, 185, 214, 0.18), transparent 28%),
    linear-gradient(145deg, var(--brand-blue) 0%, #0739a8 48%, var(--brand-blue-dark) 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { width: 330px; height: 330px; top: -180px; left: -130px; }
.hero::after { width: 390px; height: 390px; right: -190px; bottom: -210px; }
.ornament {
  position: absolute;
  border: 1px solid rgba(45,185,214,.24);
  transform: rotate(45deg);
  pointer-events: none;
}
.ornament-one { width: 150px; height: 150px; top: 18%; right: 8%; }
.ornament-two { width: 95px; height: 95px; bottom: 16%; left: 9%; }
.hero-inner {
  width: min(760px, 100%);
  position: relative;
  z-index: 2;
  text-align: center;
}
.company-logo {
  display: block;
  width: clamp(260px, 27vw, 390px);
  max-width: min(76vw, 390px);
  height: auto !important;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 auto clamp(14px, 2vw, 20px);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.16));
}
.eyebrow {
  font-family: var(--font-display);
  max-width: 100%;
  margin: 0;
  color: #b9eff8;
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 800;
  letter-spacing: clamp(1.4px, .35vw, 2.3px);
  line-height: 1.55;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.eyebrow.dark { color: var(--brand-cyan-dark); }
.anniversary-number {
  margin-top: clamp(20px, 4vw, 30px);
  color: var(--white);
  font-family: var(--font-elegant);
  font-size: clamp(88px, 16vw, 170px);
  font-weight: 700;
  line-height: .78;
  text-shadow: 0 12px 34px rgba(0,0,0,.24);
}
.anniversary-number sup {
  position: relative;
  top: .2em;
  font-size: .18em;
  vertical-align: top;
}
.hero h1 {
  max-width: 100%;
  margin: clamp(18px, 3vw, 24px) 0 5px;
  font-family: var(--font-display);
  font-size: clamp(31px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: clamp(.5px, .45vw, 4px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.company {
  font-family: var(--font-display);
  max-width: 100%;
  margin: 8px auto 0;
  color: #b9eff8;
  font-size: clamp(17px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.hero-message {
  max-width: 650px;
  margin: 20px auto 30px;
  color: rgba(255,255,255,.85);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.primary-button,
.secondary-button {
  font-family: var(--font-display);
  max-width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.primary-button {
  color: #00266f;
  background: linear-gradient(135deg, #62d8ec, var(--brand-cyan));
  box-shadow: 0 15px 36px rgba(0,0,0,.22);
}
.secondary-button {
  color: var(--brand-blue);
  border: 1px solid #8fb4ed;
  background: var(--white);
}
@media (hover:hover) {
  .primary-button:hover, .secondary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
  }
}
.primary-button:focus-visible,
.secondary-button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(45,185,214,.35);
  outline-offset: 2px;
}

/* ===== Sección compacta, formal y corporativa ===== */
.details-section {
  padding: clamp(44px, 6vw, 72px) 0 clamp(46px, 6vw, 68px);
  background:
    linear-gradient(180deg, #f5f8ff 0%, #ffffff 72%),
    var(--white);
}
.section-heading-compact {
  max-width: 820px;
  margin: 0 auto clamp(22px, 3vw, 30px);
  text-align: center;
}
.section-heading-compact h2 {
  margin: 7px 0 10px;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: clamp(25px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.16;
}
.intro {
  max-width: 760px;
  margin: 0 auto;
  color: #405170;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
  text-align: center;
  overflow-wrap: anywhere;
}
.event-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 46, 159, .10);
}
.event-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 22px 20px;
}
.event-item + .event-item { border-left: 1px solid var(--border); }
.detail-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  border: 1px solid #bed3f5;
  border-radius: 50%;
}
.detail-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.event-copy { min-width: 0; }
.event-copy h3 {
  margin: 1px 0 7px;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  line-height: 1.25;
  text-transform: uppercase;
}
.event-copy p,
.event-copy strong {
  display: block;
  margin: 0;
  color: #4c5a75;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.event-copy strong {
  margin-top: 2px;
  color: #19396e;
  font-weight: 750;
}
.pass-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
  padding: 16px 20px;
  color: var(--white);
  text-align: left;
  background: linear-gradient(135deg, var(--brand-blue), #0754c6);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(0,46,159,.16);
}
.pass-banner span {
  display: block;
  margin: 0;
  padding-right: 16px;
  color: #b9eff8;
  border-right: 1px solid rgba(255,255,255,.28);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.4;
  text-transform: uppercase;
}
.pass-banner strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.countdown-section {
  padding: 25px 0 12px;
  text-align: center;
}
.countdown-section > p {
  margin: 0;
  color: var(--brand-cyan-dark);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.countdown {
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 13px auto 0;
}
.countdown div {
  min-width: 0;
  padding: 12px 6px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,46,159,.06);
}
.countdown strong {
  display: block;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 700;
  line-height: 1;
}
.countdown span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .35px;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.event-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.event-actions .primary-button,
.event-actions .secondary-button {
  min-width: min(230px, 48%);
  box-shadow: none;
}
.event-actions .primary-button { box-shadow: 0 10px 24px rgba(0,46,159,.14); }

@media (max-width: 760px) {
  .details-section { padding: 38px 0 46px; }
  .section-heading-compact { margin-bottom: 19px; }
  .section-heading-compact h2 { font-size: clamp(24px, 7vw, 31px); }
  .intro { font-size: 14.5px; line-height: 1.55; }
  .event-summary { grid-template-columns: 1fr; border-radius: 20px; }
  .event-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 15px;
  }
  .event-item + .event-item {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .detail-icon { width: 38px; height: 38px; }
  .detail-icon svg { width: 18px; height: 18px; }
  .event-copy h3 { margin-bottom: 4px; font-size: 10.5px; }
  .event-copy p, .event-copy strong { font-size: 13.5px; line-height: 1.38; }
  .pass-banner { margin-top: 14px; padding: 14px 15px; border-radius: 16px; }
  .pass-banner strong { font-size: 16px; }
  .countdown-section { padding-top: 20px; }
  .countdown { gap: 7px; margin-top: 11px; }
  .countdown div { padding: 10px 4px 9px; border-radius: 12px; }
  .countdown strong { font-size: clamp(24px, 7.2vw, 31px); }
  .countdown span { font-size: 7.5px; }
  .event-actions { margin-top: 18px; }
  .event-actions .primary-button,
  .event-actions .secondary-button {
    width: 50%;
    min-width: 0;
    padding-inline: 12px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .details-section { padding-top: 34px; }
  .section-heading-compact .eyebrow { font-size: 8.5px; }
  .section-heading-compact h2 { margin-top: 5px; font-size: 24px; }
  .intro { font-size: 14px; }
  .event-item { padding: 13px 12px; }
  .pass-banner {
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: center;
  }
  .pass-banner span {
    padding: 0;
    border-right: 0;
    font-size: 9px;
  }
  .pass-banner strong { font-size: 15.5px; line-height: 1.3; }
  .countdown strong { font-size: clamp(23px, 7.5vw, 29px); }
  .event-actions { gap: 8px; }
  .event-actions .primary-button,
  .event-actions .secondary-button {
    min-height: 46px;
    padding: 11px 8px;
    font-size: 12px;
  }
}

@media (max-width: 330px) {
  .event-item { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .detail-icon { width: 34px; height: 34px; }
  .event-actions { flex-direction: column; }
  .event-actions .primary-button,
  .event-actions .secondary-button { width: 100%; }
}

.confirmation-section {
  scroll-margin-top: 10px;
  padding: clamp(62px, 9vw, 96px) 0;
  color: var(--white);
  background: linear-gradient(150deg, var(--brand-blue-dark), var(--brand-blue));
}
.form-container { width: min(760px, 100%); }
.form-heading {
  margin-bottom: 30px;
  text-align: center;
}
.form-heading h2 {
  max-width: 100%;
  margin: 7px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.form-heading p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.form-heading .eyebrow { color: #b9eff8; }
.confirmation-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
  color: var(--ink);
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
}
.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full { grid-column: 1 / -1; }
.field label,
.field legend {
  font-family: var(--font-display);
  color: #24365d;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.field label span { color: var(--muted); font-weight: 400; }
input, textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfdaea;
  border-radius: 12px;
  outline: none;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-cyan-dark);
  box-shadow: 0 0 0 3px rgba(45,185,214,.16);
}
.choice-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-field legend {
  grid-column: 1 / -1;
  margin-bottom: 3px;
}
.choice-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  cursor: pointer;
  border: 1px solid #cfdaea;
  border-radius: 16px;
}
.choice-card:has(input:checked) {
  border-color: var(--brand-cyan-dark);
  background: #edfaff;
  box-shadow: 0 0 0 2px rgba(45,185,214,.1);
}
.choice-card input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
}
.choice-card span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.choice-card strong,
.choice-card small { overflow-wrap: anywhere; }
.choice-card small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
}
.checkbox-line {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  font-weight: 600 !important;
}
.checkbox-line input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
}
.privacy-line {
  color: #53617a !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.submit-button { min-width: min(230px, 100%); }
.alert {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.success-message {
  color: #17583e;
  background: #e7f6ef;
  border: 1px solid #acd8c4;
}
.error-message {
  color: #842d2d;
  background: #fff0f0;
  border: 1px solid #e3b0b0;
}
.error-message ul { margin: 8px 0 0; padding-left: 18px; }
.deadline {
  margin-top: 20px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
.public-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px var(--page-padding) calc(34px + env(safe-area-inset-bottom));
  color: var(--white);
  text-align: center;
  background: #001852;
  overflow-wrap: anywhere;
}
.public-footer span { color: rgba(255,255,255,.65); }
.public-footer a { margin-top: 8px; color: #7ee3f2; font-size: 12px; }
.mobile-confirm-bar { display: none; }

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    padding-top: max(34px, env(safe-area-inset-top));
    padding-bottom: 56px;
  }
  .company-logo {
    width: min(300px, 76vw);
    max-width: 300px;
    margin-bottom: 12px;
  }
  .anniversary-number { font-size: clamp(84px, 25vw, 125px); }
  .hero h1 {
    font-size: clamp(34px, 10vw, 54px);
    letter-spacing: clamp(.7px, 1.1vw, 4px);
  }
  .company { font-size: clamp(17px, 5vw, 22px); }
  .hero-message { max-width: 560px; margin-bottom: 25px; }
  .ornament { display: none; }
  .confirmation-form {
    grid-template-columns: 1fr;
    gap: 18px;
    border-radius: 22px;
  }
  .choice-field { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }

}

@media (max-width: 520px) {
  :root { --page-padding: 14px; }
  .hero {
    min-height: auto;
    padding-top: max(30px, env(safe-area-inset-top));
    padding-bottom: 48px;
  }
  .company-logo {
    width: min(248px, 76vw);
    max-width: 248px;
  }
  .eyebrow {
    font-size: 9.5px;
    letter-spacing: 1.35px;
  }
  .anniversary-number {
    margin-top: 20px;
    font-size: clamp(82px, 30vw, 112px);
  }
  .hero h1 {
    margin-top: 17px;
    font-size: clamp(30px, 9.7vw, 46px);
    letter-spacing: clamp(.5px, .8vw, 2.3px);
  }
  .company {
    max-width: 320px;
    font-size: 17px;
  }
  .hero-message {
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 1.58;
  }
  .primary-button, .secondary-button { width: 100%; }
  .confirmation-section { padding-top: 56px; }
  .form-heading { margin-bottom: 24px; }
  .form-heading h2 { font-size: clamp(32px, 10vw, 42px); }
  .form-heading p { font-size: 14px; }
  .confirmation-form {
    gap: 16px;
    padding: 20px 15px;
    border-radius: 18px;
  }
  .choice-card { padding: 13px; }
  .submit-button { min-width: 0; }
  .public-footer { font-size: 14px; }
}

@media (max-width: 360px) {
  :root { --page-padding: 12px; }
  .company-logo {
    width: min(220px, 74vw);
    max-width: 220px;
  }
  .eyebrow { letter-spacing: 1px; }
  .anniversary-number { font-size: 82px; }
  .hero h1 {
    font-size: clamp(28px, 9.5vw, 34px);
    letter-spacing: .4px;
  }
  .company { font-size: 16px; }
  .hero-message { font-size: 14px; }
  .confirmation-form { padding-inline: 12px; }
  .choice-card { gap: 8px; padding: 12px 10px; }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: max(26px, env(safe-area-inset-top));
    padding-bottom: 38px;
  }
  .company-logo { width: min(230px, 34vw); }
  .anniversary-number {
    margin-top: 16px;
    font-size: 76px;
  }
  .hero h1 {
    margin-top: 14px;
    font-size: 38px;
  }
  .hero-message { margin: 12px auto 20px; }
}

@supports not selector(.choice-card:has(input:checked)) {
  .choice-card { background: #fff; }
  .choice-card input:checked + span strong { color: var(--brand-blue); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Tipografía corporativa: equilibrio entre elegancia y modernidad. */
@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(28px, 9.7vw, 40px);
    letter-spacing: .2px;
  }
  .eyebrow {
    letter-spacing: 1.2px;
  }
}

@media (max-width: 350px) {
  .hero h1 {
    font-size: 27px;
  }
}

/* ===== Jerarquía tipográfica final: formal, corporativa y legible ===== */
body {
  font-family: var(--font-body);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.primary-button,
.secondary-button,
.eyebrow,
.company,
.event-copy h3,
.pass-banner span,
.pass-banner strong,
.countdown-section > p,
.countdown strong,
.countdown span,
.field label,
.field legend,
.public-footer strong {
  font-family: var(--font-display);
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.hero h1 { font-weight: 800; }

/* Playfair se reserva exclusivamente para el elemento ceremonial. */
.anniversary-number {
  font-family: var(--font-elegant);
  font-weight: 700;
}

/* Información y lectura continua en Inter. */
.intro,
.hero-message,
.event-copy p,
.event-copy strong,
.form-heading > p,
input,
textarea,
select,
.choice-card small,
.checkbox-line,
.privacy-line,
.deadline,
.public-footer span,
.public-footer a {
  font-family: var(--font-body);
}

.primary-button,
.secondary-button,
.company,
.pass-banner strong,
.countdown strong,
.public-footer strong {
  font-weight: 700;
}

.field label,
.field legend,
.eyebrow,
.event-copy h3,
.pass-banner span,
.countdown-section > p,
.countdown span {
  font-weight: 600;
}

.countdown strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.eyebrow,
.pass-banner span,
.countdown-section > p {
  letter-spacing: 0.14em;
}

.event-copy p,
.event-copy strong,
input,
textarea,
select {
  font-weight: 400;
}

.choice-card strong,
.checkbox-line {
  font-weight: 600 !important;
}

@media (max-width: 520px) {
  .eyebrow,
  .pass-banner span,
  .countdown-section > p {
    letter-spacing: 0.11em;
  }
}
