/* =========================================================================
   ADRI Y LULI — design tokens
   Palette: whitewashed finca cream, Ibiza sunset terracotta, pine green,
   Mediterranean blue, and a citrus accent for the festive moments.
   Type: Fraunces (warm, slightly wonky display serif) + Manrope (clean body).
   Signature motif: hydraulic-tile-inspired scallop dividers + an arched
   "finca doorway" frame around the hero, echoing Ibiza architecture.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500;1,9..144,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #f6efdd;
  --cream-deep: #efe3c6;
  --ink: #2b2118;
  --terracotta: #c1512d;
  --terracotta-deep: #9c3e21;
  --pine: #3f6c51;
  --pine-deep: #2c4d39;
  --azul: #2c6e8e;
  --azul-deep: #1f5069;
  --sun: #e8a33d;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-soft: 0 12px 32px -12px rgba(43, 33, 24, 0.25);
  --container: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}

a { color: var(--azul-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* ---------- top language switcher (always visible, small, unobtrusive) ---- */
.lang-switch {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  display: flex;
  background: rgba(246, 239, 221, 0.92);
  border: 1px solid rgba(43,33,24,0.15);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-soft);
}
.lang-switch button {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--terracotta);
  color: var(--cream);
}

/* ---------- sticky nav ---------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 221, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43,33,24,0.1);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.site-nav.is-visible { transform: translateY(0); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 10px 8px;
  overflow-x: auto;
  max-width: var(--container);
  margin-inline: auto;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.site-nav a:hover { background: var(--cream-deep); }

/* ---------- scallop divider (signature motif) ------------------------------ */
.scallop {
  width: 100%;
  height: 26px;
  display: block;
  line-height: 0;
}
.scallop svg { width: 100%; height: 100%; display: block; }

/* ---------- hero ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 78px 20px 56px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 8%, rgba(232,163,61,0.35), transparent 42%),
    radial-gradient(circle at 84% 4%, rgba(44,110,142,0.28), transparent 40%),
    var(--cream);
  overflow: hidden;
}
.hero .arch {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 28px 40px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-bottom: none;
  border-radius: 220px 220px 18px 18px;
  box-shadow: var(--shadow-soft);
}
.hero .eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--pine-deep);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.1rem);
  color: var(--terracotta-deep);
  font-style: italic;
  font-variation-settings: 'SOFT' 60, 'opsz' 90;
}
.hero .venue {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.hero .date-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 20px;
  background: var(--terracotta);
  color: var(--cream);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--terracotta-deep);
}

.countdown {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.countdown .unit {
  background: var(--pine);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  min-width: 64px;
}
.countdown .unit strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}
.countdown .unit span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.countdown-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--azul-deep);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 5px 0 var(--terracotta-deep);
}
.btn-secondary {
  background: var(--azul);
  color: var(--cream);
  box-shadow: 0 5px 0 var(--azul-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--pine-deep);
  border: 2px solid var(--pine);
  box-shadow: none;
}

.hero .cta-row { margin-top: 28px; }

/* ---------- sections --------------------------------------------------------- */
section { padding: 56px 20px; }
.section-fiesta { background: var(--pine); color: var(--cream); }
.section-fiesta a { color: var(--sun); }
.section-rsvp { background: var(--cream); }
.section-alojamiento { background: var(--azul); color: var(--cream); }
.section-contacto { background: var(--cream-deep); }

.eyebrow-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.12);
  margin-bottom: 14px;
}
.section-rsvp .eyebrow-tag,
.section-contacto .eyebrow-tag { background: rgba(43,33,24,0.08); color: var(--terracotta-deep); }

section h2 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.notice-box {
  margin-top: 22px;
  padding: 18px 20px;
  background: rgba(246,239,221,0.14);
  border: 1px solid rgba(246,239,221,0.35);
  border-radius: var(--radius-md);
  font-size: 14.5px;
}
.section-rsvp .notice-box,
.section-contacto .notice-box {
  background: rgba(43,33,24,0.05);
  border-color: rgba(43,33,24,0.12);
}

/* ---------- card (rsvp form container) --------------------------------------- */
.card {
  background: #fffdf7;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(43,33,24,0.08);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 7px;
}
.field .hint { font-size: 12.5px; color: #6b5f4f; margin-top: 5px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(43,33,24,0.18);
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 80px; }

.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-group label, .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid rgba(43,33,24,0.14);
  cursor: pointer;
}
.radio-group input, .checkbox-group input { width: 18px; height: 18px; flex-shrink: 0; }

.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute;
  z-index: 10;
  left: 0; right: 0; top: calc(100% + 4px);
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(43,33,24,0.15);
  box-shadow: var(--shadow-soft);
  max-height: 220px;
  overflow-y: auto;
}
.autocomplete-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
}
.autocomplete-list button:hover,
.autocomplete-list button:focus-visible { background: var(--cream-deep); }

.form-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.form-msg.error { background: #fbe2da; color: var(--terracotta-deep); }
.form-msg.success { background: #e3ede5; color: var(--pine-deep); }

.confirmation {
  text-align: center;
  padding: 20px 0 4px;
}
.confirmation h3 { font-size: 1.5rem; color: var(--pine-deep); margin-bottom: 10px; }

/* ---------- accommodation map placeholder ------------------------------------ */
.map-box {
  margin-top: 22px;
  border-radius: var(--radius-md);
  border: 3px dashed rgba(246,239,221,0.5);
  padding: 30px 20px;
  text-align: center;
  background: rgba(0,0,0,0.08);
}
.map-box svg { max-width: 220px; margin: 0 auto 14px; display: block; }

/* ---------- footer ------------------------------------------------------------ */
footer {
  text-align: center;
  padding: 34px 20px 44px;
  font-size: 12.5px;
  color: #7a6d5a;
}
footer a { color: #7a6d5a; }

/* ---------- extra sections (admin-added) --------------------------------------- */
.extra-section { background: var(--cream); }
.extra-section img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-top: 16px;
  display: block;
}

@media (min-width: 640px) {
  .hero .arch { padding: 68px 44px 48px; }
  section { padding: 76px 20px; }
}
