/* =====================================================================
 *  MARGOT & LUIS · Tema boho terracota
 *  Papel crema, fotos con borde rasgado, ramos florales en las esquinas.
 * ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=Pinyon+Script&display=swap');

:root {
  --font-display: 'Pinyon Script', cursive;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;

  --color-bg: #f3ede4;
  --color-surface: #f9f6f1;
  --color-surface-alt: #ebe2d5;
  --color-text: #3d322b;
  --color-heading: #2a201b;
  --color-muted: #7a6a5e;
  --color-line: #dccfbd;
  --color-primary: #b9622f;
  --color-primary-contrast: #ffffff;
  --color-accent: #c0703f;

  --hero-text: #ffffff;
  --radius: 6px;
  --section-padding: clamp(56px, 8vw, 96px);

  /* Textura de papel */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .25 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Borde de papel rasgado para fotos */
  --torn: url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox%3D'0 0 1000 1000' preserveAspectRatio%3D'none'%3E%3Cpolygon points%3D'0 11.8 16 5.8 27 11.1 42 5.3 63 13.4 76 8.6 95 14.5 104 12.0 116 14.8 126 13.0 141 6.8 149 19.0 171 5.9 185 19.3 196 10.7 212 14.7 224 6.7 245 11.1 257 12.8 269 6.5 288 9.6 301 5.3 322 7.8 342 11.5 354 13.6 367 16.1 384 6.2 395 11.2 405 4.8 419 14.9 436 19.3 448 11.0 463 11.0 483 11.2 497 8.2 508 15.9 518 8.3 537 17.7 558 18.8 578 16.0 595 12.9 604 9.2 617 7.4 630 15.0 649 8.3 670 4.1 683 13.4 697 5.4 719 11.3 739 13.4 754 6.0 773 18.3 785 4.4 795 15.3 813 14.6 833 7.7 852 6.7 861 5.3 869 12.6 889 17.5 899 11.9 908 8.5 922 5.0 935 7.7 948 16.6 957 6.6 965 14.0 975 10.5 984 11.6 998 4.1 1000 11.2 1000 984.2 987 981.1 969 985.8 957 990.2 948 981.9 939 994.9 929 991.1 920 986.4 906 990.0 891 981.5 875 989.3 865 981.6 848 988.0 827 985.2 813 980.5 793 989.3 778 984.8 759 981.4 743 980.2 726 982.7 712 994.8 690 987.1 673 989.7 655 983.5 640 988.9 619 984.5 611 990.1 596 980.2 579 993.5 561 993.3 551 987.6 538 995.7 517 987.8 508 989.8 498 985.5 486 984.2 474 981.5 458 989.7 438 993.1 425 989.3 405 986.9 396 993.4 381 992.0 367 987.8 355 995.6 346 984.1 331 987.1 311 994.3 297 992.4 284 995.5 274 984.3 254 995.5 238 991.5 226 992.3 207 988.1 196 986.0 176 980.8 162 980.9 143 989.4 134 992.6 124 984.4 108 980.6 96 990.4 83 993.5 62 986.1 43 984.7 32 986.6 22 984.7 0 986.3 0 990.6'%2F%3E%3C%2Fsvg%3E");
  --ramo: url('media/ramo.svg');
}

body { background-color: var(--color-bg); background-image: var(--paper); font-size: 15.5px; }

/* ---------- Secciones ---------- */
.section, .section--alt { background: transparent; }
.section { position: relative; overflow: hidden; }
.section__head { margin-bottom: 28px; }
.section__head::after { display: none; }
.section__icon { font-size: 2.1rem; margin-bottom: 12px; color: var(--color-primary); }
.section__title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(.9rem, 2.2vw, 1.05rem); letter-spacing: .2em; text-transform: uppercase;
}
.section__subtitle { max-width: 460px; color: var(--color-text); }
.card { background: transparent; border: 0; }
.h3 { font-family: var(--font-heading); font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 400; }
.eyebrow { color: var(--color-heading); font-family: var(--font-heading); font-weight: 700; letter-spacing: .18em; }

/* Botones terracota */
.btn, .btn--primary {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
  border-radius: 5px; padding: .65em 1.5em;
  font-family: var(--font-heading); font-size: .82rem; letter-spacing: .02em; text-transform: none;
  text-decoration: underline; text-underline-offset: 3px;
  box-shadow: 0 2px 0 rgba(120, 60, 25, .18);
}
.btn:hover { background: var(--color-primary); color: #fff; filter: brightness(1.08); }

/* ---------- Portada ---------- */
.hero-stacked { overflow: hidden; }
.hero-stacked__quote { font-size: .98rem; }
.monogram { font-weight: 400; letter-spacing: .02em; }
.hero-stacked__tagline { font-family: var(--font-heading); font-size: .8rem; }
.hero-stacked .eyebrow { font-style: italic; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.hero-stacked .people__names { font-family: var(--font-heading); font-style: italic; font-size: .98rem; line-height: 1.6; }
.hero-stacked__label { font-family: var(--font-heading); }
.hero-stacked__names span:first-child { transform: translateX(-14%); }
.hero-stacked__names span:last-child { transform: translateX(14%); }
.hero-stacked__names .hero__amp { color: var(--color-accent); }
.date-block__month { font-weight: 700; }
.date-block__side { border-color: var(--color-primary); color: var(--color-text); }

/* Cuenta regresiva con dos puntos */
.hero-stacked .countdown { gap: 26px; }
.hero-stacked .countdown__item { position: relative; min-width: 58px; }
.hero-stacked .countdown__item:not(:last-child)::after {
  content: ':'; position: absolute; right: -17px; top: -2px;
  font-family: var(--font-heading); font-size: 2.1rem; line-height: 1; color: var(--color-primary);
}
.hero-stacked .countdown__num { font-family: var(--font-heading); font-size: clamp(1.9rem, 6vw, 2.5rem); }
.hero-stacked .countdown__label { color: var(--color-text); letter-spacing: .04em; text-transform: none; font-size: .75rem; }

/* ---------- Fotos con borde rasgado ---------- */
.photo-frame { width: min(620px, 100% - 32px); }
.photo-band { width: min(980px, 100% - 32px); }
.photo-frame img, .photo-band img, .photo-frame.is-missing, .photo-band.is-missing {
  -webkit-mask: var(--torn) center / 100% 100% no-repeat;
  mask: var(--torn) center / 100% 100% no-repeat;
}

/* ---------- Ubicación ---------- */
.location__body { padding: 8px 16px 0; }
.location__address { font-style: italic; color: var(--color-text); }
.location__time { font-family: var(--font-heading); font-weight: 700; }

/* ---------- Itinerario ---------- */
.timeline { max-width: 560px; }
.timeline::before { width: 0; border-left: 1px dashed var(--color-primary); opacity: .6; }
.timeline__item { margin-bottom: 26px; }
.timeline__dot { border: 0; width: 52px; height: 52px; font-size: 2.1rem; color: var(--color-primary); background: var(--color-bg) !important; }
.timeline__time { font-family: var(--font-heading); font-size: .85rem; color: var(--color-text); letter-spacing: .08em; }
.timeline__title { font-family: var(--font-heading); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }

/* ---------- Vestimenta ---------- */
.dress { padding: 0; }
.dress__code { font-size: clamp(2.4rem, 7vw, 3.2rem); color: var(--color-primary); }
.chip { background: var(--color-surface); }

/* ---------- Regalos ---------- */
.gift { padding: 8px; }
.gift__icon { color: var(--color-primary); }
.gift__meta { margin-bottom: 0; }
.bank { margin-top: 10px; padding-top: 0; }
.bank__rows dd { font-family: var(--font-heading); font-size: .9rem; }

/* ---------- Confirmación ---------- */
.rsvp .card { background: var(--color-surface); border: 1px solid var(--color-line); }
.choice input:checked + span { background: var(--color-primary); border-color: var(--color-primary); }

/* ---------- Pie ---------- */
.footer { position: relative; overflow: hidden; background: transparent; color: var(--color-text); padding: 72px 0 64px; }
.footer__eyebrow { font-family: var(--font-heading); font-size: .75rem; letter-spacing: .16em; }
.footer__closing { color: var(--color-heading); }
.footer__names { color: var(--color-primary); font-size: clamp(2rem, 6vw, 2.6rem); }
.footer__text { font-size: 1rem; }

/* ---------- Navegación ---------- */
.nav__brand { font-size: 1.9rem; }
.nav__links a { font-family: var(--font-heading); font-size: .68rem; }

/* ---------- Ramos florales ---------- */
.hero-stacked::before,
#itinerary::after,
#gifts::before,
.footer::after {
  content: ''; position: absolute; pointer-events: none; z-index: 0;
  width: clamp(150px, 26vw, 270px); aspect-ratio: 260 / 220;
  background: var(--ramo) no-repeat center / contain;
}
.hero-stacked::before { top: var(--nav-height); left: -10px; }
@media (max-width: 640px) {
  .hero-stacked { padding-top: calc(var(--nav-height) + 120px); }
  .hero-stacked::before { width: 130px; top: calc(var(--nav-height) - 6px); }
  .hero-stacked .countdown { gap: 20px; }
  .hero-stacked .countdown__item { min-width: 50px; }
  .hero-stacked .countdown__item:not(:last-child)::after { right: -14px; font-size: 1.7rem; }
}
#itinerary::after { bottom: -10px; right: -10px; transform: scale(-1, -1); }
#gifts::before { top: 0; right: -10px; transform: scaleX(-1); width: clamp(120px, 20vw, 210px); }
.footer::after { bottom: -10px; right: -10px; transform: scale(-1, -1); }
.hero-stacked > *, .section > .container, .footer > .container { position: relative; z-index: 1; }
