/* ============================================================
   Javi & Ana — Editorial Wedding Site
   Palette: cream / beige / ivory / ink
   Type:    Cormorant Garamond (display) + Playfair Display (accents)
            + Inter (UI / micro)
   ============================================================ */

:root {
  --cream:   #F5EFE6;
  --beige:   #E8DCC4;
  --beige-deep: #D9CAB0;
  --ivory:   #FFFFFF;
  --paper:   #FAF6EF;
  --ink:     #1A1A1A;
  --ink-soft:#2B2520;
  --muted:   #6F665B;
  --line:    #C9BCA4;
  --line-soft:#E4D9C2;

  --serif:   "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --ui:      "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); color: var(--ink); }
body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ============================================================
   Top navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  background: linear-gradient(to bottom, rgba(245,239,230,0.85), rgba(245,239,230,0));
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 246, 239, 0.96);
  border-bottom: 1px solid var(--line-soft);
}
.nav-mono {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-links {
  display: flex; gap: 32px;
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--cream); color: var(--ink); }

@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.hero image-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  color: var(--cream);
  z-index: 2;
  padding: 0 40px;
}
.hero-eyebrow {
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 18px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: ''; width: 36px; height: 1px; background: currentColor; opacity: 0.6;
}
.hero-names {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
}
.hero-names .amp {
  font-style: italic;
  font-weight: 400;
  font-family: var(--display);
  margin: 0 0.05em;
  display: inline-block;
  transform: translateY(-0.04em);
}
.hero-meta {
  margin-top: 40px;
  display: flex; gap: 48px; align-items: center;
  font-family: var(--ui);
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
}
.hero-meta .dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; opacity: 0.7; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-family: var(--ui);
  font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--cream); opacity: 0.85;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll .line {
  width: 1px; height: 36px; background: var(--cream); opacity: 0.6;
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 700px) {
  .hero-meta { gap: 18px; font-size: 10px; flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   Section primitives
   ============================================================ */
.section {
  padding: 140px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.section.dark {
  background: var(--ink); color: var(--cream);
  max-width: none; margin: 0;
}
.section.dark .label { color: var(--beige); }
.section.dark .rule  { background: var(--cream); opacity: 0.4; }

.section.beige {
  background: var(--beige);
  max-width: none; margin: 0;
}

.section-inner { max-width: var(--maxw); margin: 0 auto; }

.label {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
}
.label .roman {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.section.dark .label .roman { color: var(--cream); }

.h-display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 24px 0 0 0;
}
.h-display em {
  font-style: italic;
  font-family: var(--display);
}
.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 28px 0 0 0;
}
.section.dark .lede { color: var(--beige); }

.rule {
  width: 60px; height: 1px; background: var(--ink); opacity: 0.6;
  margin: 28px 0;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 56px 40px;
  max-width: none; margin: 0;
}
.countdown-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.countdown-label {
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted);
}
.countdown-label .date {
  display: block; margin-top: 6px;
  font-family: var(--display); font-style: italic; font-size: 22px;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}
.countdown-cells {
  display: flex; gap: 48px;
}
.cd-cell {
  text-align: center;
  min-width: 90px;
}
.cd-num {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  font-weight: 400;
}
.cd-unit {
  font-family: var(--ui);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  margin-top: 8px; color: var(--muted);
}
@media (max-width: 720px) {
  .countdown-cells { gap: 18px; }
  .cd-cell { min-width: 60px; }
}

/* ============================================================
   STORY (Nuestra historia) — asymmetric editorial grid
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 80px;
}
.story-img-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.story-img-stack image-slot:nth-child(1) { aspect-ratio: 3/4; grid-row: span 2; align-self: start; }
.story-img-stack image-slot:nth-child(2) { aspect-ratio: 1/1; margin-top: 60px; }
.story-img-stack image-slot:nth-child(3) { aspect-ratio: 4/5; }

.story-body p {
  font-size: 19px; line-height: 1.7;
  margin: 0 0 22px 0;
  color: var(--ink-soft);
}
.story-body p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 5em;
  float: left;
  line-height: 0.85;
  padding: 8px 14px 0 0;
  font-weight: 400;
  color: var(--ink);
}
.story-signature {
  margin-top: 40px;
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule-list {
  margin-top: 70px;
  display: flex; flex-direction: column;
}
.schedule-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 40px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}
.schedule-row:last-child { border-bottom: 1px solid var(--line-soft); }
.schedule-time {
  font-family: var(--display);
  font-size: 32px;
  font-style: italic;
}
.schedule-title {
  font-family: var(--display);
  font-size: 26px;
}
.schedule-desc {
  font-size: 16px; color: var(--muted); margin-top: 6px;
}
.schedule-icon {
  font-family: var(--display); font-style: italic;
  color: var(--muted); font-size: 18px;
}
@media (max-width: 700px) {
  .schedule-row { grid-template-columns: 90px 1fr; gap: 18px; }
  .schedule-icon { display: none; }
  .schedule-time { font-size: 22px; }
  .schedule-title { font-size: 20px; }
}

/* ============================================================
   VENUE / FINCA
   ============================================================ */
.venue-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  margin-top: 70px;
  align-items: center;
}
.venue-img {
  aspect-ratio: 4/5;
  position: relative;
}
.venue-img image-slot { width: 100%; height: 100%; }
.venue-info h3 {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  margin: 0;
}
.venue-info .addr {
  margin-top: 12px;
  font-style: italic;
  color: var(--muted);
}
.venue-info p { color: var(--ink-soft); }
.venue-actions {
  display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap;
}
.btn-line {
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  text-decoration: none; display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-filled {
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  text-decoration: none; display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-filled:hover { background: transparent; color: var(--ink); }

@media (max-width: 900px) { .venue-grid { grid-template-columns: 1fr; } }

/* Map placeholder */
.map-strip {
  margin-top: 60px;
  height: 360px;
  background: var(--beige);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.map-strip iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(0.95); }

/* ============================================================
   MENU
   ============================================================ */
.menu-card {
  background: var(--paper);
  padding: 80px 60px;
  margin-top: 60px;
  border: 1px solid var(--line-soft);
  text-align: center;
}
.menu-eyebrow {
  font-family: var(--display); font-style: italic;
  color: var(--muted); font-size: 22px;
}
.menu-title {
  font-family: var(--display);
  font-size: 56px;
  margin: 8px 0 40px 0;
}
.menu-section { margin: 32px 0; }
.menu-section h4 {
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px 0;
}
.menu-section p {
  font-family: var(--display);
  font-size: 24px; font-style: italic;
  margin: 6px 0;
}
.menu-divider {
  width: 40px; height: 1px; background: var(--ink); opacity: 0.5;
  margin: 32px auto;
}
@media (max-width: 700px) {
  .menu-card { padding: 50px 24px; }
  .menu-title { font-size: 38px; }
  .menu-section p { font-size: 19px; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 70px;
}
.gallery-grid image-slot {
  width: 100%;
  display: block;
}
.gallery-grid image-slot.g1 { grid-column: span 5; aspect-ratio: 4/5; }
.gallery-grid image-slot.g2 { grid-column: span 7; aspect-ratio: 4/3; }
.gallery-grid image-slot.g3 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-grid image-slot.g4 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-grid image-slot.g5 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-grid image-slot.g6 { grid-column: span 7; aspect-ratio: 4/3; }
.gallery-grid image-slot.g7 { grid-column: span 5; aspect-ratio: 4/5; }
@media (max-width: 800px) {
  .gallery-grid image-slot { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

/* ============================================================
   DRESS CODE
   ============================================================ */
.dress-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  margin-top: 70px;
  align-items: center;
}
.dress-swatches {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.swatch { aspect-ratio: 1; }
.swatch-label {
  grid-column: 1 / -1;
  font-family: var(--ui);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px;
}
.dress-rules {
  list-style: none; padding: 0; margin: 30px 0 0 0;
}
.dress-rules li {
  padding: 16px 0; border-top: 1px solid var(--line-soft);
  display: flex; gap: 18px;
}
.dress-rules li:last-child { border-bottom: 1px solid var(--line-soft); }
.dress-rules .yn {
  font-family: var(--display); font-style: italic;
  width: 32px; flex-shrink: 0;
}
.dress-rules .yn.yes { color: var(--ink); }
.dress-rules .yn.no  { color: #a16060; }
@media (max-width: 900px) { .dress-grid { grid-template-columns: 1fr; } }

/* ============================================================
   MUSIC / PLAYLIST
   ============================================================ */
.music-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px;
  margin-top: 70px;
}
.music-intro p { color: var(--beige); }
.music-form {
  display: flex; flex-direction: column; gap: 16px; margin-top: 20px;
}
.music-form input {
  background: transparent; border: 0; border-bottom: 1px solid var(--cream);
  color: var(--cream); padding: 10px 0; font-family: var(--serif);
  font-size: 18px; outline: none;
}
.music-form input::placeholder { color: var(--beige); opacity: 0.7; }
.music-form button {
  align-self: start;
  margin-top: 8px;
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid var(--cream);
  background: transparent; color: var(--cream);
  transition: background 0.2s, color 0.2s;
}
.music-form button:hover { background: var(--cream); color: var(--ink); }

.playlist {
  max-height: 520px; overflow-y: auto;
  padding-right: 10px;
}
.playlist::-webkit-scrollbar { width: 4px; }
.playlist::-webkit-scrollbar-thumb { background: var(--beige); }
.track {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 16px;
  padding: 18px 0; border-top: 1px solid rgba(245,239,230,0.15);
  align-items: center;
}
.track-num {
  font-family: var(--display); font-style: italic; color: var(--beige);
  font-size: 18px;
}
.track-title { font-family: var(--display); font-size: 22px; }
.track-artist { font-size: 14px; color: var(--beige); opacity: 0.75; margin-top: 2px; }
.track-by { font-size: 12px; color: var(--beige); opacity: 0.55; font-style: italic; }
.track .star {
  font-size: 14px; color: var(--beige); opacity: 0.6;
}
.track .star.fav { color: gold; opacity: 1; }

@media (max-width: 900px) { .music-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ACCOMMODATION
   ============================================================ */
.stays-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 70px;
}
.stay-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 0;
  display: flex; flex-direction: column;
}
.stay-card image-slot { aspect-ratio: 4/3; width: 100%; }
.stay-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.stay-tag {
  font-family: var(--ui);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.stay-name {
  font-family: var(--display);
  font-size: 28px;
  margin: 8px 0;
}
.stay-meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.stay-desc { font-size: 16px; color: var(--ink-soft); flex: 1; }
.stay-price {
  margin-top: 18px; font-family: var(--display); font-style: italic; font-size: 18px;
}
@media (max-width: 900px) { .stays-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TRANSPORT
   ============================================================ */
.transport-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 70px;
}
.transport-card {
  padding: 36px 32px; background: var(--paper); border: 1px solid var(--line-soft);
}
.transport-num {
  font-family: var(--display); font-style: italic; font-size: 28px;
  color: var(--muted); margin-bottom: 12px;
}
.transport-card h4 {
  font-family: var(--display); font-size: 26px; margin: 0 0 14px 0; font-weight: 400;
}
.transport-card p { font-size: 16px; color: var(--ink-soft); }
@media (max-width: 900px) { .transport-grid { grid-template-columns: 1fr; } }

/* ============================================================
   GIFTS
   ============================================================ */
.gifts-box {
  margin-top: 60px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 64px;
  text-align: center;
}
.gifts-iban {
  font-family: "Courier New", monospace;
  font-size: 22px; letter-spacing: 0.08em;
  margin: 20px 0;
  padding: 16px 24px;
  background: var(--cream);
  display: inline-block;
  border: 1px dashed var(--line);
  cursor: pointer;
}
.gifts-note {
  font-family: var(--display); font-style: italic; font-size: 22px; color: var(--muted);
  margin-top: 16px;
}
@media (max-width: 700px) { .gifts-box { padding: 36px 24px; } .gifts-iban { font-size: 16px; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 50px; }
.faq-item {
  border-top: 1px solid var(--line-soft);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
}
.faq-toggle {
  font-family: var(--display); font-style: italic; font-size: 28px;
  color: var(--muted); flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, margin 0.4s ease;
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
}
.faq-item.open .faq-a { max-height: 400px; margin-top: 16px; }
@media (max-width: 700px) { .faq-q { font-size: 19px; } }

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 80px;
  margin-top: 60px;
}
.rsvp-card h3 {
  font-family: var(--display); font-size: 48px; font-weight: 400;
  margin: 0 0 12px 0;
}
.rsvp-card .lede { margin-top: 0; }
.rsvp-form { margin-top: 50px; }
.rsvp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px;
}
.rsvp-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--ui);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
}
.field textarea { min-height: 80px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231A1A1A' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

/* radio cards */
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-card {
  flex: 1; min-width: 140px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  font-family: var(--display);
  font-size: 20px;
  text-align: center;
  transition: all 0.2s;
}
.radio-card.selected {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.radio-card:hover { border-color: var(--ink); }

.rsvp-submit {
  margin-top: 50px;
  display: flex; gap: 16px; align-items: center;
}
.rsvp-submit button {
  font-family: var(--ui);
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 18px 36px;
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--ink);
  transition: all 0.2s;
}
.rsvp-submit button:hover { background: var(--cream); color: var(--ink); }
.rsvp-deadline {
  font-family: var(--display); font-style: italic; color: var(--muted); font-size: 16px;
}

@media (max-width: 800px) {
  .rsvp-card { padding: 40px 24px; }
  .rsvp-grid { grid-template-columns: 1fr; }
  .rsvp-card h3 { font-size: 32px; }
}

/* RSVP success */
.rsvp-success {
  text-align: center; padding: 60px 0;
}
.rsvp-success .mark {
  font-family: var(--display); font-style: italic; font-size: 80px;
  margin-bottom: 20px;
}
.rsvp-success h3 { font-family: var(--display); font-size: 56px; margin: 0; font-weight: 400; }
.rsvp-success p { font-size: 20px; color: var(--ink-soft); margin-top: 16px; }
.rsvp-success button {
  margin-top: 30px;
  font-family: var(--ui); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 12px 24px; background: transparent; border: 1px solid var(--ink); color: var(--ink);
}

/* ============================================================
   GUESTBOOK
   ============================================================ */
.guestbook-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-top: 60px;
}
.guestbook-form {
  background: var(--paper); border: 1px solid var(--line-soft); padding: 40px;
}
.guestbook-form h4 {
  font-family: var(--display); font-size: 28px; margin: 0 0 20px 0; font-weight: 400;
}
.guestbook-feed {
  max-height: 620px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px;
}
.gb-msg {
  border-top: 1px solid var(--line-soft);
  padding: 24px 0;
}
.gb-msg:first-child { border-top: none; padding-top: 0; }
.gb-msg .quote {
  font-family: var(--display); font-style: italic; font-size: 22px;
  line-height: 1.4;
}
.gb-msg .author {
  margin-top: 14px;
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) { .guestbook-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink); color: var(--cream);
  padding: 100px 40px 40px;
  text-align: center;
}
.footer-names {
  font-family: var(--display);
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 400;
  margin: 0;
}
.footer-names em { font-style: italic; }
.footer-date {
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  margin-top: 20px; opacity: 0.7;
}
.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(245,239,230,0.15);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ui); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.6;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom a { text-decoration: none; }

/* ============================================================
   ADMIN — login + dashboard
   ============================================================ */
.admin-root {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  font-family: var(--ui);
  color: var(--ink);
  overflow-y: auto;
}
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.admin-login-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 60px;
  max-width: 440px; width: 100%;
}
.admin-login-card .mono {
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
}
.admin-login-card h2 {
  font-family: var(--display); font-weight: 400;
  font-size: 40px; margin: 12px 0 30px 0;
}
.admin-login-card .field { margin-bottom: 20px; }
.admin-login-card button {
  width: 100%;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 16px;
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink);
  margin-top: 12px;
}
.admin-login-card .err {
  background: #f5dada; color: #8a2a2a;
  padding: 12px; font-size: 12px; margin-top: 12px;
}
.admin-login-card .hint {
  font-size: 11px; color: var(--muted); margin-top: 18px; text-align: center;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: var(--ink); color: var(--cream);
  padding: 30px 0;
  display: flex; flex-direction: column;
}
.admin-brand {
  padding: 0 30px 30px;
  border-bottom: 1px solid rgba(245,239,230,0.15);
}
.admin-brand .b1 { font-family: var(--display); font-size: 22px; }
.admin-brand .b2 {
  font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--beige); margin-top: 4px;
}
.admin-nav { padding: 20px 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.admin-nav button {
  background: transparent; border: 0; color: var(--cream);
  text-align: left; padding: 14px 30px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-family: var(--ui);
  display: flex; align-items: center; gap: 14px;
  opacity: 0.7;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.admin-nav button:hover { opacity: 1; background: rgba(245,239,230,0.05); }
.admin-nav button.active {
  opacity: 1; background: rgba(245,239,230,0.08);
  border-left-color: var(--cream);
}
.admin-nav .roman {
  font-family: var(--display); font-style: italic; font-size: 13px;
  letter-spacing: 0; text-transform: none; color: var(--beige); width: 24px;
}
.admin-side .foot {
  padding: 20px 30px;
  border-top: 1px solid rgba(245,239,230,0.15);
  display: flex; flex-direction: column; gap: 12px;
}
.admin-side .foot button {
  background: transparent; border: 1px solid rgba(245,239,230,0.3);
  color: var(--cream); padding: 10px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
}
.admin-side .foot a {
  color: var(--beige); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none; text-align: center;
}

.admin-main {
  padding: 40px 50px;
  overflow-x: auto;
}
.admin-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.admin-header h1 {
  font-family: var(--display); font-weight: 400;
  font-size: 40px; margin: 0;
}
.admin-header .sub {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}

/* Stat cards */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--ivory); border: 1px solid var(--line-soft);
  padding: 24px;
}
.stat-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.stat-num {
  font-family: var(--display); font-size: 56px; font-weight: 400; line-height: 1;
  margin-top: 8px;
}
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Tables */
.table-wrap {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  overflow-x: auto;
}
table.adm {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
table.adm th {
  text-align: left; padding: 14px 16px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  white-space: nowrap;
}
table.adm td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.adm tr:last-child td { border-bottom: none; }
table.adm tr:hover td { background: var(--paper); }
table.adm .pill {
  display: inline-block; padding: 3px 10px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 100px;
}
table.adm .pill.yes { background: #d4e4d8; color: #2a5a3a; }
table.adm .pill.no  { background: #f0d0d0; color: #7a2a2a; }

.admin-toolbar {
  display: flex; gap: 12px; align-items: center; margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-toolbar input[type=search] {
  flex: 1; min-width: 200px;
  padding: 10px 14px; border: 1px solid var(--line);
  background: var(--ivory); font-family: var(--ui); font-size: 13px;
  outline: none;
}
.admin-btn {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 10px 18px;
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink);
  font-family: var(--ui);
  cursor: pointer;
  transition: all 0.15s;
}
.admin-btn:hover { background: transparent; color: var(--ink); }
.admin-btn.ghost { background: transparent; color: var(--ink); }
.admin-btn.ghost:hover { background: var(--ink); color: var(--cream); }
.admin-btn.danger { background: #8a2a2a; border-color: #8a2a2a; }
.admin-btn.sm { padding: 6px 12px; font-size: 9px; }

/* Edit form blocks (Contenido tab) */
.edit-block {
  background: var(--ivory); border: 1px solid var(--line-soft);
  padding: 30px; margin-bottom: 24px;
}
.edit-block h3 {
  font-family: var(--display); font-size: 24px; font-weight: 400; margin: 0 0 4px 0;
}
.edit-block .blk-sub {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.edit-block .row {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px;
  padding: 14px 0; border-top: 1px solid var(--line-soft);
  align-items: start;
}
.edit-block .row:first-of-type { border-top: 0; }
.edit-block label {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
  padding-top: 12px;
}
.edit-block input[type=text],
.edit-block input[type=date],
.edit-block input[type=time],
.edit-block input[type=password],
.edit-block textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--ui); font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.edit-block textarea { min-height: 100px; resize: vertical; font-family: var(--serif); font-size: 16px; }
.edit-block input:focus, .edit-block textarea:focus { border-color: var(--ink); background: var(--ivory); }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-top: 1px solid var(--line-soft);
}
.toggle-row:first-child { border-top: none; }
.toggle-row .t-name { font-family: var(--display); font-size: 20px; }
.toggle-row .t-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.toggle {
  width: 50px; height: 28px; background: var(--line);
  border-radius: 100px; position: relative; cursor: pointer;
  transition: background 0.2s;
}
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; background: var(--cream); border-radius: 50%;
  transition: left 0.2s;
}
.toggle.on { background: var(--ink); }
.toggle.on::after { left: 25px; }

.list-editor { display: flex; flex-direction: column; gap: 10px; }
.list-row {
  display: grid; grid-template-columns: 80px 1fr 1fr 40px; gap: 10px; align-items: center;
}
.list-row input {
  padding: 10px 12px; border: 1px solid var(--line);
  font-family: var(--ui); font-size: 13px; background: var(--paper); outline: none;
}
.icon-btn {
  background: transparent; border: 1px solid var(--line);
  width: 36px; height: 36px;
  font-size: 16px; color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.admin-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  padding: 14px 28px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  z-index: 10000;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } }

/* Modal */
.adm-modal-bg {
  position: fixed; inset: 0; background: rgba(26,26,26,0.5);
  z-index: 10001; display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.adm-modal {
  background: var(--ivory); border: 1px solid var(--line);
  max-width: 760px; width: 100%;
  max-height: 86vh; overflow-y: auto;
  padding: 40px;
}
.adm-modal h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 24px 0; }
.adm-modal .kv {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.adm-modal .kv:first-of-type { border-top: none; }
.adm-modal .kv .k {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
.adm-modal .kv .v { color: var(--ink); }
.adm-modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 30px; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    flex-direction: row; padding: 16px 20px; overflow-x: auto;
  }
  .admin-brand, .admin-nav, .admin-side .foot { padding: 0; border: 0; }
  .admin-nav { flex-direction: row; gap: 4px; }
  .admin-nav button { padding: 8px 14px; border-left: 0; border-bottom: 2px solid transparent; }
  .admin-nav button.active { border-left: 0; border-bottom-color: var(--cream); }
  .admin-main { padding: 24px; }
  .edit-block .row { grid-template-columns: 1fr; }
}

/* Decorative SVG flourishes */
.flourish {
  display: block; margin: 0 auto;
  color: var(--muted);
}

/* In-page edit indicator */
.editable-marker {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--ink); color: var(--cream);
  padding: 14px 22px;
  font-family: var(--ui);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  z-index: 100;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s, background 0.2s;
}
.editable-marker:hover { transform: translateY(-2px); background: var(--ink-soft); }
.editable-marker .dot { width: 6px; height: 6px; background: var(--cream); border-radius: 50%; }

/* ============================================================
   Server-side photo slots
   ============================================================ */
.photo-slot {
  width: 100%; height: 100%;
  background: var(--beige);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.photo-slot.empty {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(0,0,0,0.025) 16px, rgba(0,0,0,0.025) 17px),
    var(--beige);
}
.photo-slot .ph-label {
  font-family: var(--display); font-style: italic;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 14px;
  letter-spacing: 0.04em;
}
.hero .photo-slot { width: 100%; height: 100%; position: absolute; inset: 0; }
.hero .photo-slot.empty { background: linear-gradient(135deg, #2B2520 0%, #3C2E25 100%); }
.hero .photo-slot.empty .ph-label { color: rgba(245,239,230,0.5); font-size: 16px; }

/* Gallery placement classes (used to be on image-slot) */
.gallery-grid .photo-slot.g1 { grid-column: span 5; aspect-ratio: 4/5; }
.gallery-grid .photo-slot.g2 { grid-column: span 7; aspect-ratio: 4/3; }
.gallery-grid .photo-slot.g3 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-grid .photo-slot.g4 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-grid .photo-slot.g5 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-grid .photo-slot.g6 { grid-column: span 7; aspect-ratio: 4/3; }
.gallery-grid .photo-slot.g7 { grid-column: span 5; aspect-ratio: 4/5; }
@media (max-width: 800px) {
  .gallery-grid .photo-slot { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

.story-img-stack .photo-slot:nth-child(1) { aspect-ratio: 3/4; grid-row: span 2; align-self: start; }
.story-img-stack .photo-slot:nth-child(2) { aspect-ratio: 1/1; margin-top: 60px; }
.story-img-stack .photo-slot:nth-child(3) { aspect-ratio: 4/5; }

.stay-card .photo-slot { aspect-ratio: 4/3; }

/* ============================================================
   Songs picker (in RSVP form)
   ============================================================ */
.songs-picker { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.songs-picker .song-row {
  display: grid; grid-template-columns: 1.4fr 1fr 36px; gap: 8px; align-items: center;
}
.songs-picker .song-row input {
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0;
  font-family: var(--serif); font-size: 17px;
  outline: none;
}
.songs-picker .song-row input:focus { border-color: var(--ink); }
.songs-picker .song-remove {
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  width: 30px; height: 30px; color: var(--muted); font-size: 18px; line-height: 1;
  transition: all 0.15s;
}
.songs-picker .song-remove:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.songs-picker .song-add {
  align-self: flex-start;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  padding: 10px 16px;
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  cursor: pointer;
  margin-top: 4px;
}
.songs-picker .song-add:hover { background: var(--paper); border-color: var(--ink); }
.songs-hint {
  margin-top: 8px; font-size: 13px; font-style: italic; color: var(--muted);
}

/* ============================================================
   Admin — Photo manager tab
   ============================================================ */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.photo-tile {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  position: relative;
}
.photo-tile .pt-frame {
  aspect-ratio: 4/3;
  background: var(--paper);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
}
.photo-tile .pt-frame.empty {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(0,0,0,0.03) 12px, rgba(0,0,0,0.03) 13px),
    var(--paper);
}
.photo-tile .pt-frame.empty::before {
  content: '+ Subir foto';
  font-family: var(--ui);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.photo-tile .pt-frame.loading {
  background: var(--paper);
}
.photo-tile .pt-frame.loading::before {
  content: 'Subiendo…';
  font-family: var(--display); font-style: italic; color: var(--ink); font-size: 18px;
}
.photo-tile .pt-meta {
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.photo-tile .pt-name {
  font-family: var(--ui);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}
.photo-tile .pt-actions { display: flex; gap: 6px; }
.photo-tile button {
  background: transparent; border: 1px solid var(--line);
  font-family: var(--ui);
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--ink-soft);
}
.photo-tile button:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.photo-group { margin-bottom: 30px; }
.photo-group h4 {
  font-family: var(--display); font-size: 22px; font-weight: 400;
  margin: 0 0 14px 0;
}
