:root {
  --cream: #fff9e9;
  --cream-card: rgba(255, 252, 235, .94);
  --charcoal: #272727;
  --blue: #6674ff;
  --border: rgba(39,39,39,.72);
  --font-body: "Century Gothic", "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  --font-display: "Arial Black", "Avenir Next", "Century Gothic", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 11px; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--cream);
  font-family: var(--font-body);
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.section-cream { background: var(--cream); }
.content-wide { width: min(86vw, 760px); margin: 0 auto; }
.content-narrow { width: min(82vw, 640px); margin: 0 auto; }
.section { padding: 34px 12px; }

/* Portada */
.hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding: 22px 10px;
  background: url("assets/portada.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.035); }
.hero-content { position: relative; z-index: 1; width: min(80vw, 520px); text-align: center; }
.hero-kicker { margin: 0 0 12px; color: #fff; letter-spacing: .24em; font-size: .72rem; }
.hero-card { width: min(100%, 470px); margin: auto; padding: 24px 20px; background: rgba(255,252,235,.86); backdrop-filter: blur(1.5px); }
.hero-card h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.65rem); line-height: .9; letter-spacing: -.035em; }
.hero-card h1 span { font-size: .7em; }
.hero-date { margin: 18px 0 14px; font-size: clamp(.9rem, 1.8vw, 1.25rem); }
.outline-button, .submit-button { border: 1.5px solid var(--charcoal); background: transparent; color: var(--charcoal); padding: 8px 15px; letter-spacing: .05em; cursor: pointer; }
.outline-button:hover, .outline-button:focus-visible, .submit-button:hover, .submit-button:focus-visible { background: var(--charcoal); color: var(--cream); }

/* Historia */
.display-title { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(1.65rem, 3.3vw, 2.8rem); line-height: 1; text-align: center; }
.story-copy { font-size: clamp(.82rem, 1vw, .94rem); line-height: 1.55; }
.story-copy p { margin: 0; }
.story-copy p + p { margin-top: 14px; }
.story-photo { width: 100%; margin-top: 18px; aspect-ratio: 16/9; object-fit: cover; }
.countdown-heading { margin: 23px auto 14px; font-family: var(--font-display); text-align: center; font-size: .82rem; }
.countdown { max-width: 520px; margin: auto; border: 1.5px solid var(--charcoal); padding: 10px 9px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.countdown div { min-width: 0; text-align: center; }
.countdown strong { display: block; font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.countdown span { display: block; margin-top: 5px; font-size: .54rem; letter-spacing: .05em; }
.countdown-finished { text-align: center; font-family: var(--font-display); }

/* Detalles */
.details-section { position: relative; padding: 30px 10px 38px; background: url("assets/pag2.jpg") center / cover no-repeat; }
.details-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.14); }
.details-content { position: relative; z-index: 1; }
.details-title { margin: 0 0 22px; color: #fff; text-align: center; font-weight: 400; font-size: clamp(2rem, 4vw, 3.15rem); }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; align-items: stretch; }
.detail-card { min-height: 290px; padding: 15px 11px; background: var(--cream-card); text-align: center; display: flex; flex-direction: column; align-items: center; }
.detail-card h3 { margin: 0 0 7px; font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.detail-card p { margin: 0; font-size: clamp(.72rem, .9vw, .82rem); line-height: 1.38; }
.detail-spaced { margin-top: 16px !important; }
.detail-icon { margin-top: auto; object-fit: contain; }
.dress-icon { width: 125px; }
.calendar { width: min(100%, 165px); margin-top: auto; padding: 9px; background: #fff; border: 1px solid rgba(39,39,39,.12); }
.calendar-month { margin-bottom: 7px; font-weight: 700; font-size: .78rem; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-weekdays { margin-bottom: 4px; font-size: .55rem; font-weight: 700; }
.calendar-days span { min-height: 17px; display: grid; place-items: center; font-size: .62rem; }
.calendar-days .event-day { background: var(--charcoal); color: #fff; border-radius: 50%; }

.location-card { justify-content: flex-start; }
.location-address { margin-top: 2px !important; }
.location-question { margin-top: 19px !important; }
.map-link { display: inline-block; margin: auto 0 6px; color: var(--blue); text-decoration: none; font-size: .72rem; }
.location-map { display: grid; place-items: center; width: 100%; margin: 0 auto; text-decoration: none; }
.location-icon { width: 88px; height: 88px; margin: 0 auto; object-fit: contain; background: #fff; }

/* Regalos: botón/ flecha */
.gift-intro { padding-bottom: 26px; text-align: center; }
.gift-question { margin: 0 0 9px; font-family: var(--font-display); font-size: .82rem; }
.gift-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.55rem, 3.25vw, 2.55rem); line-height: 1.12; }
.gift-copy { max-width: 650px; margin: 18px auto 0; text-align: left; font-size: .8rem; line-height: 1.5; }
.gift-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 150px; min-height: 48px; margin: 12px auto 0; padding: 5px 14px; border: 0; background: transparent; color: var(--charcoal); cursor: pointer; position: relative; z-index: 5; touch-action: manipulation; }
.gift-toggle-label { font-size: .72rem; }
.down-arrows { width: 25px; }
.down-arrows span { display: block; width: 13px; height: 13px; margin: -5px auto 0; border-right: 1.5px solid var(--charcoal); border-bottom: 1.5px solid var(--charcoal); transform: rotate(45deg); opacity: .35; }
.down-arrows span:nth-child(2) { opacity: .65; }
.down-arrows span:nth-child(3) { opacity: 1; }
.gift-toggle:focus-visible { outline: 1.5px solid var(--charcoal); outline-offset: 2px; }
.gift-toggle.is-open .down-arrows { transform: rotate(180deg); }

/* Sección de pagos: cerrada por defecto, abre solo al tocar la flecha */
.gift-payment-section { max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; pointer-events: none; padding: 0 12px; transition: max-height .8s cubic-bezier(.22,.61,.36,1), opacity .35s ease, padding .6s ease, visibility 0s linear .8s; }
.gift-payment-section.is-open { opacity: 1; visibility: visible; pointer-events: auto; padding-top: 20px; padding-bottom: 38px; transition: max-height .9s cubic-bezier(.22,.61,.36,1), opacity .35s ease .08s, padding .6s ease, visibility 0s; }
.gift-payment-inner { overflow: visible; }
.experience-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.experience-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.payment-intro { max-width: 620px; margin: 22px auto 0; font-size: .78rem; line-height: 1.45; }
.payment-block { margin-top: 20px; }
.payment-label { margin: 0 0 8px; font-size: .78rem; }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.payment-logo { position: relative; z-index: 3; display: grid; place-items: center; min-height: 72px; background: #fff; border: 1px solid var(--border); overflow: hidden; cursor: pointer; text-decoration: none; pointer-events: auto; }
.payment-logo img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.payment-logo:hover, .payment-logo:focus-visible { outline: 1.5px solid var(--charcoal); outline-offset: 2px; }
.transfer-card { border: 1px solid var(--border); background: #fff; padding: 12px 15px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.transfer-data h3 { margin: 0 0 8px; text-align: center; font-family: var(--font-display); font-size: .72rem; }
.transfer-data p { margin: 0; line-height: 1.38; font-size: .72rem; }
.transfer-qr { width: 118px; max-width: 29vw; }
.short-rule { width: 52px; height: 2px; margin: 22px auto 0; background: var(--charcoal); }

/* Cierre */
.closing { text-align: center; padding-top: 28px; padding-bottom: 30px; }
.closing-italic { margin: 0; font-style: italic; font-size: clamp(.96rem, 2vw, 1.5rem); line-height: 1.45; }
.closing-strong { margin: 12px 0 0; font-family: var(--font-display); font-size: clamp(1.65rem, 3.5vw, 2.55rem); }
.footer { padding: 20px 14px 22px; background: var(--charcoal); color: var(--cream); text-align: center; }
.footer-names { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2.8vw, 2rem); }
.footer-date { margin: 3px 0 0; font-style: italic; font-size: .78rem; }
.footer-heart { margin: 5px 0 0; }

/* RSVP */
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.68); display: grid; place-items: center; padding: 12px; overflow-y: auto; }
.modal-backdrop[hidden] { display: none; }
.modal-panel { position: relative; width: min(92vw, 410px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 20px 22px 18px; background: #fffaf0; border: 1px solid rgba(39,39,39,.2); }
.modal-close { position: absolute; top: 5px; right: 10px; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; }
#rsvp-form h2 { margin: 0 0 10px; text-align: center; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.modal-copy { margin: 0 0 10px; text-align: center; line-height: 1.35; font-size: .74rem; }
#rsvp-form label { display: block; margin-top: 7px; font-size: .72rem; }
#rsvp-form input, #rsvp-form select, #rsvp-form textarea { width: 100%; margin-top: 3px; border: 1px solid rgba(39,39,39,.28); background: transparent; padding: 7px 9px; font-size: .84rem; color: var(--charcoal); }
#rsvp-form textarea { resize: vertical; min-height: 50px; }
.submit-button { display: block; width: min(100%, 250px); margin: 12px auto 0; }
.hidden-field { position: absolute !important; left: -9999px !important; }
.form-status { min-height: 1.2em; margin: 8px 0 0; text-align: center; font-size: .72rem; }
body.modal-open { overflow: hidden; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Móvil: mantiene todo deliberadamente compacto */
@media (max-width: 640px) {
  html { font-size: 10.5px; }
  .content-wide { width: min(84vw, 330px); }
  .content-narrow { width: min(82vw, 320px); }
  .section { padding: 28px 9px; }
  .hero { min-height: 43vh; padding: 14px 7px; }
  .hero-content { width: min(82vw, 315px); }
  .hero-card { width: min(100%, 282px); padding: 17px 12px; }
  .hero-kicker { font-size: .62rem; letter-spacing: .18em; }
  .hero-card h1 { font-size: clamp(1.75rem, 8.6vw, 2.45rem); }
  .hero-date { margin: 13px 0 11px; font-size: .88rem; }
  .display-title { font-size: 1.6rem; }
  .story-copy { font-size: .82rem; }
  .details-section { padding: 26px 7px 32px; }
  .details-title { font-size: 1.9rem; margin-bottom: 17px; }
  .details-grid { grid-template-columns: 1fr; width: min(100%, 228px); margin: auto; gap: 9px; }
  .detail-card { min-height: 245px; padding: 13px 10px; }
  .detail-card h3 { font-size: 1.35rem; }
  .detail-card p { font-size: .73rem; }
  .calendar { width: 145px; }
  .dress-icon { width: 108px; }
  .location-question { margin-top: 14px !important; }
  .map-link { margin-top: auto; }
  .location-icon { width: 76px; height: 76px; }
  .gift-title { font-size: 1.55rem; }
  .gift-copy { font-size: .78rem; margin-top: 15px; }
  .gift-toggle { margin-top: 9px; }
  .gift-payment-section.is-open { padding-top: 16px; padding-bottom: 30px; }
  .experience-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; }
  .payment-intro, .payment-label { font-size: .73rem; }
  .payment-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .payment-logo { min-height: 56px; }
  .transfer-card { padding: 10px; gap: 9px; }
  .transfer-data h3, .transfer-data p { font-size: .67rem; }
  .transfer-qr { width: 92px; }
  .closing { padding-top: 24px; padding-bottom: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gift-payment-section { transition: none; }
}


/* Ajustes solicitados: legibilidad de textos sin alterar títulos */
.story-copy { font-size: clamp(.88rem, 1.05vw, 1rem); }
.hero-date { font-size: clamp(.94rem, 1.9vw, 1.3rem); }
.detail-card p { font-size: clamp(.78rem, .96vw, .88rem); }
.map-link { font-size: .78rem; }
.gift-copy { font-size: .86rem; }
.gift-toggle-label { font-size: .78rem; }
.payment-intro, .payment-label { font-size: .85rem; }
.footer-date { font-size: .84rem; }
.modal-copy { font-size: .80rem; }
#rsvp-form label { font-size: .78rem; }
.form-status { font-size: .78rem; }

/* Datos bancarios: aumento específico para facilitar lectura */
.transfer-data h3 { font-size: .90rem; margin-bottom: 9px; }
.transfer-data p { font-size: .88rem; line-height: 1.48; }

@media (max-width: 640px) {
  .story-copy { font-size: .88rem; }
  .detail-card p { font-size: .80rem; }
  .gift-copy { font-size: .84rem; }
  .gift-toggle-label { font-size: .78rem; }
  .payment-intro, .payment-label { font-size: .79rem; }
  .transfer-data h3 { font-size: .82rem; }
  .transfer-data p { font-size: .80rem; line-height: 1.44; }
}


/* ============================================================
   AJUSTES DE LEGIBILIDAD Y ÉNFASIS — versión solicitada
   Mantiene la composición existente y no modifica títulos.
   ============================================================ */

/* 1) Cuenta regresiva: ~20% más grande y con mayor presencia visual. */
.countdown {
  width: 100%;
  max-width: 624px;
  padding: 14px 10px;
  border: 2px solid var(--charcoal);
  background: rgba(255, 252, 235, .72);
  box-shadow: 0 7px 20px rgba(39, 39, 39, .10);
  animation: countdownEmphasis 3.2s ease-in-out infinite;
}
.countdown div { padding: 2px 6px; }
.countdown div + div { border-left: 1px solid rgba(39,39,39,.22); }
.countdown strong { font-size: 1.72rem; }
.countdown span { font-size: .62rem; }
@keyframes countdownEmphasis {
  0%, 100% { box-shadow: 0 7px 20px rgba(39,39,39,.08); }
  50% { box-shadow: 0 9px 26px rgba(39,39,39,.16); }
}

/* Calendario de la tarjeta Horario: también gana ~20% de tamaño
   y un énfasis sutil, para conservar coherencia con la ubicación. */
.calendar {
  width: min(100%, 198px);
  padding: 12px;
  border: 1.5px solid rgba(39,39,39,.30);
  box-shadow: 0 6px 16px rgba(39,39,39,.10);
  animation: calendarEmphasis 3.6s ease-in-out infinite;
}
.calendar-month { font-size: 12px; margin-bottom: 8px; }
.calendar-weekdays { font-size: 9px; margin-bottom: 5px; }
.calendar-days span { min-height: 20px; font-size: 10px; }
.calendar-days .event-day { box-shadow: 0 0 0 3px rgba(39,39,39,.12); }
@keyframes calendarEmphasis {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* 2) Ubicación: bloque visual del mismo orden de tamaño que el calendario. */
.location-map {
  width: min(100%, 198px);
  min-height: 150px;
  margin: 0 auto;
  background: #fff;
  display: grid;
  place-items: center;
}
.location-icon {
  width: 118px;
  height: 118px;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
}

/* 4) Textos normales: estándar web aproximado 15–16 px.
   Los títulos (.display-title, .gift-title, .details-title, h1/h2) no cambian. */
.story-copy,
.gift-copy,
.payment-intro,
.modal-copy {
  font-size: 16px;
  line-height: 1.55;
}
.hero-date,
.detail-card p,
.payment-label,
.gift-toggle-label,
#rsvp-form label,
.form-status {
  font-size: 15px;
  line-height: 1.48;
}
.map-link { font-size: 14px; }
.footer-date { font-size: 14px; }
#rsvp-form input,
#rsvp-form select,
#rsvp-form textarea { font-size: 16px; }

/* 5) Datos bancarios: mayor tamaño y separación para lectura clara. */
.transfer-data h3 {
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: .02em;
}
.transfer-data p {
  font-size: 16px;
  line-height: 1.55;
}
.transfer-card { gap: 18px; padding: 16px 18px; }
.transfer-qr { width: 128px; }

/* La nueva legibilidad puede necesitar algo más de altura en las tarjetas. */
.detail-card { min-height: 330px; }

@media (max-width: 640px) {
  /* No reducimos nuevamente los textos normales: preservamos legibilidad móvil. */
  .story-copy,
  .gift-copy,
  .payment-intro,
  .modal-copy { font-size: 15px; }
  .hero-date,
  .detail-card p,
  .payment-label,
  .gift-toggle-label,
  #rsvp-form label,
  .form-status { font-size: 14px; }
  #rsvp-form input,
  #rsvp-form select,
  #rsvp-form textarea { font-size: 16px; }

  .countdown {
    max-width: 100%;
    padding: 12px 7px;
  }
  .countdown div { padding: 2px 3px; }
  .countdown strong { font-size: 1.68rem; }
  .countdown span { font-size: .60rem; }

  .detail-card { min-height: 315px; }
  .calendar { width: min(100%, 174px); padding: 10px; }
  .location-map { width: min(100%, 174px); min-height: 138px; }
  .location-icon { width: 108px; height: 108px; }

  .transfer-card { padding: 13px 12px; gap: 10px; }
  .transfer-data h3 { font-size: 13px; }
  .transfer-data p { font-size: 15px; line-height: 1.48; overflow-wrap: anywhere; }
  .transfer-qr { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .countdown, .calendar { animation: none; }
}

/* ============================================================
   AJUSTES VISUALES V3 — conservan la estructura aprobada
   1) Iconografía Detalles centrada y proporcionada
   2) Portada: tarjeta translúcida más amplia
   3) Títulos y subtítulos +10% aprox.
   ============================================================ */

/* Portada: se amplía únicamente el soporte translúcido y su área de composición. */
.hero-content {
  width: min(88vw, 700px);
}
.hero-card {
  width: min(100%, 680px);
  padding: 32px 28px;
}
.hero-kicker {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: .22em;
  margin-bottom: 14px;
}

/* Títulos / subtítulos: aumento uniforme de ~10%, sin cambiar color ni alineación. */
.hero-card h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.02rem);
}
.display-title {
  font-size: clamp(1.82rem, 3.63vw, 3.08rem);
}
.countdown-heading {
  font-size: .90rem;
}
.details-title {
  font-size: clamp(2.2rem, 4.4vw, 3.47rem);
}
.detail-card h3 {
  font-size: clamp(1.38rem, 1.98vw, 1.65rem);
}
.calendar-month {
  font-size: 13.2px;
}
.gift-question {
  font-size: .90rem;
}
.gift-title {
  font-size: clamp(1.71rem, 3.58vw, 2.81rem);
}
.transfer-data h3 {
  font-size: 15.5px;
}
.closing-italic {
  font-size: clamp(1.06rem, 2.2vw, 1.65rem);
}
.closing-strong {
  font-size: clamp(1.82rem, 3.85vw, 2.81rem);
}
.footer-names {
  font-size: clamp(1.49rem, 3.08vw, 2.2rem);
}
#rsvp-form h2 {
  font-size: 1.93rem;
}

/* Detalles: modelos e icono ocupan una zona visual equivalente y centrada. */
.detail-card {
  min-height: 342px;
}
.dress-icon {
  width: 166px;
  height: 170px;
  margin: auto auto 0;
  object-fit: contain;
  object-position: center;
}
.location-map {
  width: min(100%, 178px);
  height: 170px;
  min-height: 170px;
  margin: auto auto 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.location-icon {
  width: 166px;
  height: 166px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

@media (max-width: 640px) {
  /* La tarjeta de portada también gana presencia en móvil, sin salir del viewport. */
  .hero-content {
    width: min(90vw, 360px);
  }
  .hero-card {
    width: 100%;
    padding: 22px 18px;
  }
  .hero-kicker {
    font-size: 14px;
    letter-spacing: .17em;
  }

  /* +10% sobre los tamaños móviles aprobados. */
  .hero-card h1 {
    font-size: clamp(1.93rem, 9.46vw, 2.70rem);
  }
  .display-title { font-size: 1.76rem; }
  .countdown-heading { font-size: .90rem; }
  .details-title { font-size: 2.09rem; }
  .detail-card h3 { font-size: 1.49rem; }
  .gift-question { font-size: .90rem; }
  .gift-title { font-size: 1.71rem; }
  .closing-italic { font-size: 1.12rem; }
  .closing-strong { font-size: 1.82rem; }
  .footer-names { font-size: 1.49rem; }
  #rsvp-form h2 { font-size: 1.93rem; }

  .detail-card {
    min-height: 332px;
  }
  .dress-icon {
    width: 156px;
    height: 160px;
  }
  .location-map {
    width: min(100%, 168px);
    height: 160px;
    min-height: 160px;
  }
  .location-icon {
    width: 156px;
    height: 156px;
  }
}

/* ============================================================
   AJUSTES FINALES — 04/09/2026
   Cambios puntuales sobre la versión V3 aprobada.
   ============================================================ */

/* 1) Calendario: integra el mismo fondo de su tarjeta y destaca
      el día 7 con un corazón delineado, sin alterar su tamaño. */
.calendar {
  background: transparent;
  border-color: rgba(39, 39, 39, .20);
  box-shadow: 0 6px 16px rgba(39, 39, 39, .07);
}
.calendar-days .event-day {
  position: relative;
  isolation: isolate;
  background: transparent;
  color: transparent;
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
}
.calendar-days .event-day::before {
  content: "♡";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -51%);
  color: #90a9c3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  font-weight: 400;
  z-index: 0;
}
.calendar-days .event-day::after {
  content: "7";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -45%);
  color: var(--charcoal);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  z-index: 1;
}

/* 2) Footer: "CAMILA & CLAUDIO" +70% respecto del tamaño V3. */
.footer-names {
  font-size: clamp(2.53rem, 5.24vw, 3.74rem);
  line-height: 1.05;
}

/* 3) Pregunta de regalos: tamaño estándar de lectura web. */
.gift-question {
  font-size: 16px;
  line-height: 1.45;
}

/* 4) Encabezado de la cuenta regresiva: tamaño estándar web y negrita. */
.countdown-heading {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
}

@media (max-width: 640px) {
  .calendar-days .event-day::before { font-size: 29px; }
  .calendar-days .event-day::after { font-size: 10px; }

  .footer-names {
    font-size: 2.53rem;
  }

  .gift-question,
  .countdown-heading {
    font-size: 16px;
  }
}

/* ============================================================
   AJUSTES DE CIERRE — 04/09/2026
   Aplicados únicamente sobre la versión FINAL_AJUSTES aprobada.
   ============================================================ */

/* 1 y 5) Bloques de texto: contenedor centrado y párrafos justificados. */
.story-copy,
.gift-copy,
.experience-intro,
.payment-intro-expanded {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.story-copy p,
.payment-intro-expanded p {
  text-align: justify;
  text-justify: inter-word;
}

/* La última línea queda visualmente equilibrada al centro sin perder el justificado. */
.gift-copy,
.experience-intro,
.payment-intro-expanded p {
  text-align-last: center;
}

.gift-copy {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* 2) Organización de la sección de experiencias/pagos según la referencia. */
.experience-intro {
  max-width: 650px;
  margin: 0 auto 18px;
  font-size: 16px;
  line-height: 1.55;
}

.payment-intro-expanded {
  max-width: 650px;
  margin: 22px auto 0;
  font-size: 16px;
  line-height: 1.55;
}
.payment-intro-expanded p {
  margin: 0;
}
.payment-intro-expanded p + p {
  margin-top: 16px;
}

/* 3) Horario: fecha y hora en líneas independientes, centradas y simétricas. */
.schedule-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.schedule-time span {
  display: block;
  width: 100%;
  text-align: center;
}

/* Calendario: corazón relleno, con el 7 centrado y animación de latido. */
.calendar-days .event-day::before {
  content: "♥";
  color: #90a9c3;
  font-size: 31px;
  font-weight: 400;
  transform: translate(-50%, -51%) scale(1);
  transform-origin: center;
  animation: weddingHeartBeat 1.35s ease-in-out infinite;
}
.calendar-days .event-day::after {
  content: "7";
  color: #ffffff;
  transform: translate(-50%, -43%);
  font-weight: 800;
}
@keyframes weddingHeartBeat {
  0%, 100% { transform: translate(-50%, -51%) scale(1); }
  14%      { transform: translate(-50%, -51%) scale(1.14); }
  28%      { transform: translate(-50%, -51%) scale(1); }
  42%      { transform: translate(-50%, -51%) scale(1.10); }
  60%      { transform: translate(-50%, -51%) scale(1); }
}

/* 4) Los nombres de portada y footer comparten exactamente la misma escala tipográfica. */
.hero-card h1,
.footer-names {
  font-size: clamp(2.53rem, 5.24vw, 3.74rem);
}

@media (max-width: 640px) {
  .hero-card h1,
  .footer-names {
    font-size: 2.53rem;
  }

  .experience-intro,
  .payment-intro-expanded {
    font-size: 15px;
    line-height: 1.55;
  }

  .payment-intro-expanded p + p {
    margin-top: 14px;
  }

  .calendar-days .event-day::before {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-days .event-day::before {
    animation: none;
  }
}

/* ============================================================
   AJUSTES DEFINITIVOS — 04/09/2026
   Solo modifica los cinco puntos solicitados sobre FINAL_LISTO.
   ============================================================ */

/* 1) La barra al final de pagos conserva el mismo aspecto, pero ahora es
      un control accesible y clicable para volver a plegar la sección. */
.short-rule.gift-collapse-toggle {
  width: 92px;
  height: 42px;
  margin: 22px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
}
.short-rule.gift-collapse-toggle > span {
  display: block;
  width: 52px;
  height: 2px;
  background: var(--charcoal);
}
.short-rule.gift-collapse-toggle:hover > span,
.short-rule.gift-collapse-toggle:focus-visible > span {
  transform: scaleX(1.14);
}
.short-rule.gift-collapse-toggle:focus-visible {
  outline: 1.5px solid var(--charcoal);
  outline-offset: 2px;
}

/* 3) Vestimenta: nuevo texto, conservando tipografía y escala existente. */
.dress-note {
  width: 100%;
  text-align: center;
}

/* 4) Cuenta regresiva: sin recuadro, números protagonistas con serif,
      corazones discretos como separadores y más aire vertical. */
.countdown-heading {
  margin-top: 34px;
  margin-bottom: 0;
}
.countdown {
  width: 100%;
  max-width: 640px;
  min-height: 154px;
  margin: 0 auto 14px;
  padding: 26px 6px 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.countdown .countdown-unit {
  min-width: 0;
  padding: 0;
  text-align: center;
  border: 0;
}
.countdown .countdown-unit + .countdown-unit {
  border-left: 0;
}
.countdown strong {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(40px, 6vw, 58px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.025em;
}
.countdown .countdown-unit > span {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: none;
}
.countdown > .countdown-heart {
  display: block;
  align-self: center;
  margin: -18px 0 0;
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
}

/* 5) Portada: +35% sobre el tamaño aprobado, manteniendo las tres líneas. */
.hero-card h1 {
  font-size: clamp(3.42rem, 7.07vw, 5.05rem);
}

@media (max-width: 640px) {
  .countdown-heading {
    margin-top: 30px;
  }
  .countdown {
    min-height: 132px;
    padding: 22px 0 27px;
    gap: 4px;
  }
  .countdown strong {
    font-size: clamp(31px, 10.4vw, 40px);
  }
  .countdown .countdown-unit > span {
    margin-top: 9px;
    font-size: 9px;
  }
  .countdown > .countdown-heart {
    margin-top: -15px;
    font-size: 9px;
  }
  .hero-card h1 {
    font-size: 3.42rem;
  }
  .short-rule.gift-collapse-toggle {
    width: 88px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .short-rule.gift-collapse-toggle > span {
    transition: none;
  }
}
