/* =========================================================
   Jesus & María — Invitación de boda
   Paleta: crema #FBF3EC · vino #7A2E3A · rosa #D88C9A · salvia #6E7A5B
   Tipografía: Cormorant Garamond (display) + Jost (utilitaria)
   ========================================================= */

/* =========================================================
   Jesus & María — Invitación de boda
   Paleta: crema #FBF3EC · salvia #A9BC9C · verde hoja #7C9070 · verde oscuro #45573C
   Acentos florales: rosa #D88C9A / rosa oscuro #B85C74
   Tipografía: Cormorant Garamond (display) + Tangerine (script) + Jost (utilitaria)
   ========================================================= */

:root {
  --cream: #FBF3EC;
  --cream-dark: #F1E4D6;
  --ink: #2E2622;
  --sage: #A9BC9C;
  --leaf: #7C9070;
  --sage-deep: #45573C;
  --rose: #D88C9A;
  --rose-deep: #B85C74;
  --gold: #B98B4E;
  --bg-green: #EAF0E4;
  --olive: #7B8349;
  --text-light: #2E2622;
  --accent-light: #45573C;

  --display: 'Cormorant Garamond', serif;
  --script: 'Tangerine', cursive;
  --sans: 'Jost', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg opacity='0.6'%3E%3Cg transform='translate(55,45)'%3E%3Ccircle r='7' fill='%23B85C74'/%3E%3Cpath d='M0,0 C-14,-10 -14,-28 0,-24 C14,-28 14,-10 0,0Z' fill='%23D88C9A'/%3E%3Cpath d='M0,0 C14,-10 30,-6 24,10 C16,24 4,20 0,0Z' fill='%23D88C9A'/%3E%3Cpath d='M0,0 C10,14 6,30 -10,26 C-24,20 -18,8 0,0Z' fill='%23D88C9A'/%3E%3Cpath d='M0,0 C-10,14 -28,12 -26,-4 C-22,-18 -10,-14 0,0Z' fill='%23D88C9A'/%3E%3C/g%3E%3Cpath d='M78,66 C93,61 103,71 96,86 C88,98 73,94 78,66Z' fill='%237C9070'/%3E%3Cg transform='translate(185,165) scale(0.7)'%3E%3Ccircle r='7' fill='%23B85C74'/%3E%3Cpath d='M0,0 C-14,-10 -14,-28 0,-24 C14,-28 14,-10 0,0Z' fill='%23D88C9A'/%3E%3Cpath d='M0,0 C14,-10 30,-6 24,10 C16,24 4,20 0,0Z' fill='%23D88C9A'/%3E%3Cpath d='M0,0 C10,14 6,30 -10,26 C-24,20 -18,8 0,0Z' fill='%23D88C9A'/%3E%3Cpath d='M0,0 C-10,14 -28,12 -26,-4 C-22,-18 -10,-14 0,0Z' fill='%23D88C9A'/%3E%3C/g%3E%3Cpath d='M205,185 C220,180 230,190 223,203 C215,215 200,211 205,185Z' fill='%237C9070'/%3E%3Cpath d='M215,25 C225,15 240,20 235,33 C229,43 217,39 215,25Z' fill='%23A9BC9C'/%3E%3Cpath d='M18,205 C28,195 43,200 38,213 C32,223 20,219 18,205Z' fill='%23A9BC9C'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 260px 260px;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 0.75rem;
}

.amp {
  font-family: var(--display);
  font-style: italic;
  color: var(--leaf);
}

/* ---------- Viñetas SVG ---------- */
.vine { width: 100%; height: auto; display: block; }
.vine__line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  opacity: 0.75;
  animation: draw 2.6s ease forwards 0.3s;
}
.vine__leaf {
  fill: var(--sage);
  opacity: 0;
  animation: fadein 1s ease forwards 2s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 0.8; } }

/* ---------- GATE (pantalla de bienvenida) ---------- */
.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  z-index: 50;
  overflow: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.gate__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: blur(18px) saturate(1.05) brightness(0.9);
  transform: scale(1.15);
}
.gate__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,28,17,0.55) 0%, rgba(20,28,17,0.72) 100%);
}

/* hojas flotantes de fondo */
.leaves { position: absolute; inset: 0; z-index: 1; }
.leaf {
  position: absolute;
  width: 22px;
  height: 22px;
  fill: var(--leaf);
  opacity: 0.55;
  animation: floatLeaf 7s ease-in-out infinite;
}
.leaves--light .leaf { fill: #EAF0E4; opacity: 0.4; }
.leaf--1 { top: 12%; left: 8%;  width: 16px; animation-delay: 0s;   }
.leaf--2 { top: 68%; left: 6%;  width: 20px; animation-delay: 1.2s; }
.leaf--3 { top: 32%; left: 15%; width: 12px; animation-delay: 2.4s; }
.leaf--4 { top: 80%; left: 22%; width: 15px; animation-delay: 0.6s; }
.leaf--5 { top: 15%; right: 9%;  width: 18px; animation-delay: 1.8s; }
.leaf--6 { top: 55%; right: 6%;  width: 14px; animation-delay: 3s;   }
.leaf--7 { top: 78%; right: 16%; width: 20px; animation-delay: 0.9s; }
.leaf--8 { top: 38%; right: 20%; width: 12px; animation-delay: 2.1s; }
@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(12deg); }
}

/* tarjeta cristal */
.gate__card {
  position: relative;
  z-index: 2;
  width: min(92vw, 420px);
  background-image: linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.82)), url("../img/bg-arco.jpg");
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: 0 35px 70px -30px rgba(10, 15, 8, 0.55);
  padding: 3.75rem 2rem 2.25rem;
  text-align: center;
}

.gate__card--arch {
  border-radius: 200px 200px 28px 28px;
  padding: 4.5rem 2rem 2.25rem;
  overflow: visible;
}
.gate__pearls {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.gate__pearls circle {
  fill: #fff;
  opacity: 0.9;
}
.gate__eucalyptus {
  position: absolute;
  top: -6px;
  right: -18px;
  width: 128px;
  height: 78px;
  z-index: 1;
  transform: rotate(-14deg);
  opacity: 0.95;
}
.gate__lilies {
  position: absolute;
  left: -34px;
  bottom: -18px;
  width: 150px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(20,28,17,0.25));
}

.gate__photo-ring {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(155deg, var(--sage), var(--sage-deep));
  box-shadow: 0 12px 24px -8px rgba(69, 87, 60, 0.6);
}
.gate__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  display: block;
}

.gate__names {
  position: relative;
  z-index: 1;
  margin: 0.5rem 0 0;
  color: #2B3327;
}
.gate__names .script {
  display: block;
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(2.4rem, 10vw, 3rem);
  line-height: 1.05;
}
.gate__amp {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--leaf);
  margin: 0.15rem 0;
}

.gate__rule {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem auto 0.85rem;
  width: 70%;
  color: var(--leaf);
}
.gate__rule span { flex: 1; height: 1px; background: var(--sage); }
.gate__rule em { font-style: normal; font-size: 0.95rem; }

.gate__date {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  color: #55604D;
  margin: 0 0 1.1rem;
}

.gate__text {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #5B6555;
  max-width: 34ch;
  margin: 0 auto 1.75rem;
}

.btn-open {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #fff;
  background: var(--sage-deep);
  border: 1px solid var(--sage-deep);
  padding: 0.85rem 2.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, transform 0.25s ease;
}
.btn-open:hover { background: #384630; transform: translateY(-2px); }
.btn-open:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

.btn-open--pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.5px solid var(--sage-deep);
  z-index: -1;
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.55); opacity: 0; }
}

.gate__hint {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.1rem 0 0;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--sage-deep);
}
.gate__hint svg { animation: hintBounce 1.6s ease-in-out infinite; }
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- CONTENIDO ---------- */
.invite { position: relative; }

section {
  padding: 5.5rem 1.5rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- HERO CON FOTO ---------- */
.hero-photo { cursor: pointer; }
.floating-heart {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.8rem;
  pointer-events: none;
  z-index: 2;
  animation: heartFloat 1.4s ease-out forwards;
  text-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
@keyframes heartFloat {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  15% { opacity: 1; transform: translate(-50%, -70%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -220%) scale(1); }
}
.hero-photo {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  max-width: none;
  padding: 0;
}
.hero-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-photo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,32,20,0.15) 0%, rgba(24,32,20,0.35) 55%, rgba(20,26,17,0.82) 100%);
}
.hero-photo__content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 3.5rem;
  text-align: center;
  color: #fff;
  max-width: 640px;
}
.eyebrow--light { color: #EAF0E4; }
.hero-photo__names {
  margin: 0.3rem 0;
}
.hero-photo__names .script {
  display: block;
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 4.6rem);
  line-height: 1.05;
  color: #fff;
}
.gate__amp--light { color: var(--sage); }
.hero-photo__date {
  font-family: var(--sans);
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  color: #F1E4D6;
}
.hero-photo__quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-top: 1.2rem;
  color: #fff;
  opacity: 0.95;
}
.hero-photo__scroll {
  position: absolute;
  z-index: 1;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- SECCIONES CON FOTO (feature) ---------- */
.feature { max-width: 1080px; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}
.feature__media { position: relative; }
.feature__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 25px 50px -25px rgba(69, 87, 60, 0.45);
}
.feature__leaf {
  position: absolute;
  width: 110px;
  height: 66px;
  bottom: -16px;
  right: -22px;
  z-index: 1;
  transform: scaleX(-1) rotate(8deg);
  filter: drop-shadow(0 6px 10px rgba(20,28,17,0.25));
}
.feature__leaf--alt { right: auto; left: -22px; transform: rotate(8deg); }
.feature__leaf--small { width: 84px; height: 50px; bottom: -12px; right: -16px; }
.feature__text { text-align: left; }
.feature__text .eyebrow { text-align: left; }
.feature__quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  color: var(--accent-light);
  line-height: 1.4;
  margin: 0 0 1rem;
}
.feature__body {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0;
}
@media (min-width: 760px) {
  .feature__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .feature--reverse .feature__grid .feature__text { order: 2; }
  .feature--reverse .feature__grid .feature__media { order: 1; }
}

/* Botón de música flotante */
.music-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--sage-deep);
  box-shadow: 0 10px 22px -8px rgba(69, 87, 60, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  animation: spin 6s linear infinite;
}
.music-btn.is-paused { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Historia */

/* ---------- ORNAMENTOS FLORALES REUTILIZABLES ---------- */
.countdown, .location, .schedule { position: relative; overflow: hidden; }
.section-bloom {
  position: absolute;
  width: 84px;
  height: 105px;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}
.section-bloom--tl { top: -10px; left: -6px; }
.section-bloom--tr { top: -10px; right: -6px; }
.countdown > *:not(.section-bloom),
.location > *:not(.section-bloom),
.schedule > *:not(.section-bloom) { position: relative; z-index: 1; }

/* ---------- DIVISOR DE ANILLOS ---------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 260px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}
.section-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}
.section-divider__rings { width: 46px; height: auto; flex-shrink: 0; opacity: 0.9; }

/* Countdown */
.countdown__heading {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--accent-light);
  margin: 0 0 2rem;
}
.countdown__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2.5vw, 1.25rem);
  flex-wrap: wrap;
}
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 74px;
}
.countdown__card {
  width: clamp(64px, 18vw, 92px);
  height: clamp(64px, 18vw, 92px);
  border-radius: 20px;
  background: linear-gradient(155deg, var(--sage-deep), #2E3B27);
  box-shadow: 0 16px 30px -14px rgba(69, 87, 60, 0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.countdown__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.14), transparent 60%);
}
.countdown__num {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  margin-top: 0.55rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.countdown__sep {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--sage);
  padding-bottom: 1.4rem;
}
@media (max-width: 420px) {
  .countdown__grid { gap: 0.4rem; }
  .countdown__item { min-width: 0; flex: 1 1 0; }
  .countdown__card {
    width: 100%;
    max-width: 68px;
    height: clamp(52px, 20vw, 68px);
    margin: 0 auto;
    border-radius: 14px;
  }
  .countdown__num { font-size: clamp(1.25rem, 7vw, 1.6rem); }
  .countdown__label { font-size: 0.58rem; }
  .countdown__sep { display: none; }
}

/* RSVP */
.rsvp {
  position: relative;
  background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.85)), url("../img/bg-marco.jpg");
  background-size: cover;
  background-position: center;
}
.rsvp__media {
  position: relative;
  width: min(70vw, 220px);
  margin: 0 auto 1.75rem;
}
.rsvp__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50% / 45%;
  box-shadow: 0 20px 40px -20px rgba(69, 87, 60, 0.5);
}
.rsvp__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--accent-light);
  margin: 0 0 0.75rem;
}
.rsvp__quote {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent-light);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  max-width: 480px;
  margin: 0 auto 1rem;
}
.rsvp__text { max-width: 480px; margin: 0 auto 1.75rem; color: var(--text-light); }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff;
  background: #3B8B5A;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(59, 139, 90, 0.55);
  transition: transform 0.25s ease, background 0.3s ease;
}
.btn-whatsapp:hover { background: #327a4d; transform: translateY(-2px); }
.rsvp__phone {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent-light);
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
  color: var(--text-light);
}
.footer__bloom {
  position: absolute;
  bottom: -16px;
  right: -8px;
  width: 84px;
  height: 105px;
  opacity: 0.85;
  z-index: 0;
}
.footer__ornament { position: relative; z-index: 1; font-size: 1.2rem; color: var(--accent-light); margin-bottom: 0.5rem; }
.footer__names { position: relative; z-index: 1; font-family: var(--display); font-size: 1.4rem; margin: 0; }
.footer__date { position: relative; z-index: 1; font-family: var(--sans); letter-spacing: 0.3em; font-size: 0.75rem; margin-top: 0.3rem; }
.footer__credit {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  font-size: 0.65rem;
  color: var(--text-light);
  opacity: 0.7;
}
.footer__credit a { color: inherit; }

/* ---------- UBICACIÓN ---------- */
.location__heading {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--accent-light);
  margin: 0 0 1.75rem;
}
.location__card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -28px rgba(69, 87, 60, 0.45);
  text-align: left;
}
.location__map { width: 100%; aspect-ratio: 16 / 10; background: var(--cream-dark); }
.location__map iframe { width: 100%; height: 100%; display: block; }
.location__info { padding: 1.75rem 1.5rem 2rem; text-align: center; }
.location__pin { width: 26px; height: 26px; margin-bottom: 0.5rem; }
.location__address {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.btn-directions {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #fff;
  background: var(--sage-deep);
  padding: 0.75rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.3s ease;
}
.btn-directions:hover { background: #384630; transform: translateY(-2px); }

/* ---------- CÓDIGO DE VESTIMENTA ---------- */
.dresscode__card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  background: var(--cream-dark);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  overflow: hidden;
}
.dresscode__ornament {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 90px;
  height: 90px;
  z-index: 0;
}
.dresscode__title {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--sage-deep);
  margin: 0 0 0.6rem;
}
.dresscode__text {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.dresscode__examples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: -0.5rem 0 1.5rem;
}
.dresscode__examples span {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--sage-deep);
  background: #fff;
  border: 1px solid rgba(69,87,60,0.15);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
}
.dresscode__swatches {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 2.5rem);
  margin-bottom: 1.5rem;
}
.swatch { display: flex; flex-direction: column; align-items: center; }
.swatch__color {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(69,87,60,0.2);
  display: block;
}
.swatch__color--white { box-shadow: inset 0 0 0 1px rgba(69,87,60,0.2); }
.swatch__no {
  position: absolute;
  top: 0; left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.swatch__no::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 58px;
  height: 2px;
  background: var(--sage-deep);
  transform: translate(-50%, -50%) rotate(45deg);
}
.swatch__label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.dresscode__note {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--sage-deep);
  margin: 0;
}

/* ---------- PROGRAMA DEL DÍA ---------- */
.schedule__heading {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--accent-light);
  margin: 0 0 2.25rem;
}
.schedule__list {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  padding-left: 2rem;
}
.schedule__list::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--accent-light), var(--sage));
}
.schedule__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
}
.schedule__dot {
  position: absolute;
  left: -2rem;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 4px var(--cream);
}
.schedule__time {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-light);
  min-width: 58px;
}
.schedule__label {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---------- PÉTALOS FLOTANTES (canvas de fondo) ---------- */
.petals-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   REFUERZOS RESPONSIVE — asegura que todo se adapte
   correctamente en móviles de cualquier tamaño
   ========================================================= */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; }
p, h1, h2, h3 { overflow-wrap: break-word; word-break: break-word; }

.btn-whatsapp,
.btn-directions,
.btn-open {
  flex-wrap: wrap;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.schedule__item { flex-wrap: wrap; }
.schedule__label { flex: 1 1 120px; min-width: 0; }

@media (max-width: 480px) {
  section, .feature, .hero-photo__content { padding-left: 1.1rem; padding-right: 1.1rem; }
  section { padding-top: 3.75rem; padding-bottom: 3.75rem; }

  .gate__card { padding: 2.75rem 1.4rem 2.25rem; }
  .gate__names .script { font-size: clamp(2.1rem, 13vw, 2.8rem); }

  .hero-photo__content { padding: 2rem 1.1rem 2.75rem; }
  .hero-photo__names .script { font-size: clamp(2.2rem, 13vw, 3.4rem); }

  .feature { padding-top: 3rem; padding-bottom: 3rem; }
  .feature__quote { font-size: clamp(1.15rem, 5vw, 1.4rem); }

  .location__info { padding: 1.5rem 1.1rem 1.75rem; }
  .dresscode__card { padding: 2rem 1.25rem; }
  .dresscode__swatches { gap: 1rem; }
  .swatch__color, .swatch__no { width: 40px; height: 40px; }

  .btn-whatsapp { padding: 0.85rem 1.4rem; font-size: 0.85rem; }
  .btn-directions { padding: 0.7rem 1.4rem; }
}

@media (max-width: 360px) {
  .gate__names .script { font-size: 1.9rem; }
  .hero-photo__names .script { font-size: 2rem; }
  .countdown__card { max-width: 58px; }
}
