/* ============================================================
   Ana & Adán — Invitación de boda
   ============================================================ */

@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-MediumItalic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-SemiBoldItalic.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-BoldItalic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  --cream:        #EDEBE4;
  --card:         #E8E3D4;
  --olive-900:    #575535;
  --olive-700:    #616745;
  --olive-600:    #6E7154;
  --olive-500:    #7B7C63;
  --olive-400:    #999B79;
  --sage-300:     #C1C699;
  --sage-200:     #C7CDA9;
  --taupe:        #998876;
  --grey-text:    #7C7C7C;
  --terracota:    #BA684F;
  --terracota-700:#A35745;
  --terracota-900:#8A3228;
  --white:        #FFFFFF;

  --font-serif: "Lora", "PT Serif", Georgia, serif;
  --label-spacing: 0.22em;

  --max-w: 1180px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-serif);
  background: var(--cream);
  color: var(--olive-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--olive-700);
}

.eyebrow--light { color: var(--cream); }
.eyebrow--onterra { color: rgba(255,255,255,0.92); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; margin: 0; }

.italic-quote {
  font-style: italic;
  font-weight: 400;
  color: var(--olive-900);
}
.italic-quote em { font-style: italic; font-weight: 500; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ Diamond / rombo patterns ============ */
/* A checkerboard of squares, rotated 45deg and clipped to a thin strip,
   reads visually as a continuous row of two-tone diamonds (rombos). */
.diamond-strip {
  position: relative;
  height: 46px;
  width: 100%;
  overflow: hidden;
}
.diamond-strip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300vmax;
  height: 300vmax;
  transform: translate(-50%, -50%) rotate(45deg);
  background-size: 33px 33px;
  background-position: 0 0, 16.5px 16.5px;
}
.diamond-strip--terracota::before {
  background-color: var(--terracota);
  background-image:
    linear-gradient(45deg, var(--terracota-700) 25%, transparent 25%, transparent 75%, var(--terracota-700) 75%),
    linear-gradient(45deg, var(--terracota-700) 25%, transparent 25%, transparent 75%, var(--terracota-700) 75%);
}
.diamond-strip--olive::before {
  background-color: var(--olive-500);
  background-image:
    linear-gradient(45deg, var(--olive-400) 25%, transparent 25%, transparent 75%, var(--olive-400) 75%),
    linear-gradient(45deg, var(--olive-400) 25%, transparent 25%, transparent 75%, var(--olive-400) 75%);
}
.diamond-strip--sage::before {
  background-color: var(--sage-300);
  background-image:
    linear-gradient(45deg, var(--sage-200) 25%, transparent 25%, transparent 75%, var(--sage-200) 75%),
    linear-gradient(45deg, var(--sage-200) 25%, transparent 25%, transparent 75%, var(--sage-200) 75%);
}

.rombo {
  width: 14px; height: 14px;
  background: var(--sage-300);
  transform: rotate(45deg);
  display: inline-block;
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(87, 85, 53, 0.0);
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.3s ease;
}
.nav.is-scrolled {
  background: var(--olive-900);
  box-shadow: 0 2px 18px rgba(0,0,0,0.15);
  height: 68px;
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 38px; width: auto; }
.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.92;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}
.nav__links a:hover { opacity: 1; border-color: var(--sage-300); }
.nav__links a.nav__cta {
  border: 1px solid rgba(255,255,255,0.55);
  padding: 8px 16px;
  border-radius: 2px;
}
.nav__links a.nav__cta:hover { background: rgba(255,255,255,0.12); }

.nav__toggle {
  display: none;
  width: 30px; height: 22px;
  position: relative;
  background: none; border: none; cursor: pointer;
  z-index: 101;
}
.nav__toggle span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--white); transition: all 0.3s ease;
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  width: 100%;
  min-height: 100svh;
  background-color: var(--olive-600);
  background-image:
    linear-gradient(180deg, rgba(87,85,53,0.35), rgba(87,85,53,0.5)),
    url("../assets/img/hero-bg-clean.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
@media (min-width: 761px) {
  .hero__scroll { display: flex; }
}
.hero__content { color: var(--white); padding: 0 20px; }
.hero__names {
  display: block;
  width: min(450px, 65vw);
  margin: 0 auto 24px;
}
.hero__date {
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero__scroll {
  display: none;
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 34px;
  background: rgba(255,255,255,0.7);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============ Generic section paddings ============ */
.section { padding: 110px 0; }
.section--tight { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--olive { background: var(--olive-500); color: var(--cream); }
.section--sage { background: var(--sage-200); }
.section--sage-light { background: var(--sage-300); }

/* ============ Padrinos / familia ============ */
.familia { text-align: center; }
.familia__quote {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  max-width: 720px;
  margin: 0 auto 64px;
}
.familia__group + .familia__group { margin-top: 56px; }
.familia__label {
  display: block;
  margin-bottom: 26px;
}
.familia__names {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
  flex-wrap: wrap;
}
.familia__couple {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
}
.florero-wrap {
  display: flex;
  justify-content: center;
  margin-top: 70px;
}
.florero-wrap img { width: min(360px, 70vw); }

/* ============ Frase (quote) ============ */
.frase {
  text-align: center;
  background-image: url("../assets/img/frase-bg.jpg");
  background-size: cover;
  background-position: center;
}
.frase p {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  max-width: 780px;
  margin: 0 auto;
}

/* ============ Since / monogram ============ */
.since { text-align: center; }
.since img { margin: 0 auto; width: min(420px, 80vw); }

/* ============ Lugar / ubicación ============ */
.lugar-banner {
  background: var(--terracota);
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.lugar-banner p {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--white);
  max-width: 720px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.lugar-info { text-align: center; padding-top: 70px; }
.lugar-info img.benazuza-ill { max-width: min(760px, 92vw); margin: 0 auto 40px; }
.lugar-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--olive-700);
}
.lugar-info address {
  font-style: normal;
  margin-top: 14px;
  color: var(--olive-900);
  font-size: 1.02rem;
}
.lugar-info address em { color: var(--grey-text); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 13px 30px;
  border: 1px solid var(--olive-700);
  color: var(--olive-700);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-serif);
}
.btn:hover { background: var(--olive-700); color: var(--white); }
.btn--light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--terracota-900); }
.btn--solid { background: var(--olive-700); color: var(--white); }
.btn--solid:hover { background: var(--olive-900); }

/* ============ Itinerario ============ */
.itinerario { color: var(--cream); }
.itin-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 46px 0;
}
.itin-item:not(:last-child) { border-bottom: 1px solid rgba(237,235,228,0.18); }
.itin-item__illustration { display: flex; justify-content: center; align-items: center; height: 110px; }
.itin-item__illustration img { height: 110px; width: auto; max-width: 100%; object-fit: contain; opacity: 0.95; }
.itin-item--reverse .itin-item__illustration { order: 2; }
.itin-item--reverse .itin-item__text { order: 1; text-align: right; }
.itin-item__text h3 {
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 14px;
}
.itin-item__place {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--sage-300);
  margin-bottom: 12px;
}
.itin-item__time { font-style: italic; font-size: 1.15rem; color: var(--cream); }

/* ============ Dress code ============ */
.dresscode { text-align: center; }
.dresscode__block { margin-top: 60px; }
.dresscode__block h3 {
  font-style: italic;
  font-weight: 400;
  font-size: 2.1rem;
  color: var(--olive-700);
}
.dresscode__rule {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 6px;
}
.dresscode__note {
  font-style: italic;
  color: var(--grey-text);
  font-size: 1rem;
  margin-top: 4px;
}
.dresscode__photos {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.dresscode__photos img {
  width: 260px;
  height: 340px;
  object-fit: cover;
  border-radius: 2px;
}

/* ============ No niños ============ */
.no-ninos {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
}
.no-ninos p { font-size: 1.15rem; max-width: 480px; }
.no-ninos p + p { margin-top: 18px; font-style: italic; }
.no-ninos__candles { display: flex; justify-content: center; }
.no-ninos__candles img { width: 150px; }

/* ============ Mesa de regalos ============ */
.regalos-intro { text-align: center; max-width: 740px; margin: 0 auto 60px; }
.regalos-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--olive-700);
  margin-bottom: 20px;
}
.regalos-intro p { font-size: 1.02rem; color: var(--olive-900); }

.categoria-banner {
  background: var(--olive-600);
  text-align: center;
  padding: 30px 20px;
  margin: 50px 0 44px;
}
.categoria-banner h3 {
  color: var(--white);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.gift-card {
  background: var(--card);
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-serif);
  color: inherit;
  display: block;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gift-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(87,85,53,0.18); }
.gift-card__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.gift-card__body { display: block; padding: 26px 24px 30px; }
.gift-card__title {
  display: block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--olive-700);
  font-weight: 500;
}
.gift-card__desc {
  display: block;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--olive-900);
  line-height: 1.6;
}
.gift-card__note {
  display: block;
  margin-top: 10px;
  font-style: italic;
  font-size: 0.83rem;
  color: var(--grey-text);
}
.gift-card__price {
  display: block;
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--olive-900);
}

.registro-card {
  background: var(--terracota);
  margin-top: 60px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.registro-card__strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: auto;
}
.registro-card__text { position: relative; z-index: 1; color: var(--white); }
.registro-card__text h3 { font-weight: 500; font-size: 1.5rem; }
.registro-card__text span {
  display: block; margin-top: 10px;
  letter-spacing: 0.16em; font-size: 0.85rem; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.registro-card .btn { position: relative; z-index: 1; margin-top: 0; background: var(--cream); border-color: var(--cream); color: var(--terracota-900); }
.registro-card .btn:hover { background: var(--white); }

/* ============ Guía turística ============ */
.guia {
  background: var(--sage-300);
  text-align: center;
}
.guia h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--olive-900);
  font-weight: 500;
}
.guia p { max-width: 620px; margin: 18px auto 0; font-size: 1.02rem; color: var(--olive-900); }
.guia .btn { margin-top: 34px; }

/* ============ RSVP ============ */
.rsvp { text-align: center; }
.rsvp h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--olive-700);
}
.rsvp > .section-inner > p {
  max-width: 560px; margin: 18px auto 50px;
  font-size: 1.02rem;
}
.rsvp-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.rsvp-form .field-full { grid-column: 1 / -1; }
.rsvp-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-700);
  margin-bottom: 8px;
}
.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="number"],
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--taupe);
  background: var(--white);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--olive-900);
  border-radius: 2px;
}
.rsvp-form textarea { resize: vertical; min-height: 90px; }
.rsvp-form .radio-group { display: flex; gap: 26px; margin-top: 4px; }
.rsvp-form .radio-group label {
  display: flex; align-items: center; gap: 8px;
  text-transform: none; letter-spacing: 0; font-size: 0.98rem;
  margin-bottom: 0; color: var(--olive-900);
}
.rsvp-form .acompanantes-field { display: none; }
.rsvp-form .acompanantes-field.is-visible { display: block; }
.rsvp-form button[type="submit"] {
  border: none;
}
.rsvp-msg {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border-radius: 2px;
  font-size: 0.95rem;
  display: none;
}
.rsvp-msg.is-visible { display: block; }
.rsvp-msg.success { background: var(--sage-300); color: var(--olive-900); }
.rsvp-msg.error { background: #f3d9d3; color: var(--terracota-900); }

/* ============ Footer ============ */
.footer {
  background: var(--olive-900);
  color: var(--cream);
  text-align: center;
  padding: 56px 24px 40px;
}
.footer__monogram { font-style: italic; font-size: 1.4rem; margin-bottom: 10px; }
.footer p { font-size: 0.8rem; opacity: 0.75; margin: 4px 0; }

/* ============ Modal ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(87,85,53,0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--cream);
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  border-radius: 2px;
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none; background: rgba(255,255,255,0.6);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--olive-900);
  line-height: 1;
}
.modal__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.modal__body { padding: 28px 30px 34px; }
.modal__title {
  letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 1.1rem; color: var(--olive-700); font-weight: 500;
}
.modal__price { font-size: 1.3rem; margin-top: 8px; color: var(--olive-900); }
.modal__desc { margin-top: 14px; font-size: 0.95rem; color: var(--olive-900); }
.modal__bank {
  margin-top: 22px;
  background: var(--card);
  padding: 18px 20px;
  border-radius: 2px;
}
.modal__bank h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-700);
}
.modal__bank-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed rgba(87,85,53,0.2);
  gap: 12px;
}
.modal__bank-row:last-child { border-bottom: none; }
.modal__bank-row span:first-child { color: var(--grey-text); }
.copy-btn {
  border: 1px solid var(--olive-700);
  background: none;
  color: var(--olive-700);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-serif);
  white-space: nowrap;
}
.copy-btn:hover { background: var(--olive-700); color: var(--white); }
.modal__note { margin-top: 16px; font-size: 0.82rem; font-style: italic; color: var(--grey-text); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .itin-item, .itin-item--reverse { grid-template-columns: 1fr; text-align: center; }
  .itin-item--reverse .itin-item__text { order: 2; text-align: center; }
  .itin-item--reverse .itin-item__illustration { order: 1; }
  .no-ninos { grid-template-columns: 1fr; text-align: center; }
  .no-ninos p { margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78vw;
    max-width: 320px;
    background: var(--olive-900);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 26px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  }
  .section { padding: 80px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .familia__names { gap: 30px; flex-direction: column; }
  .rsvp-form { grid-template-columns: 1fr; }
  .dresscode__photos img { width: 100%; max-width: 320px; }
  .registro-card { flex-direction: column; text-align: center; justify-content: center; }
}
