/* Tokens — Organic system base + this invitation's accent/font override
   (kept from the original Claude Design project so the look matches). */
@import url('https://fonts.googleapis.com/css2?family=Caprasimo:wght@400&family=Figtree:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  /* Accent overridden to a warm olive/gold (matches the design's hero card) */
  --color-accent: oklch(.58 .09 115);
  --color-accent-100: oklch(.93 .03 115);
  --color-accent-200: oklch(.88 .045 115);
  --color-accent-300: oklch(.8 .06 115);
  --color-accent-400: oklch(.68 .08 115);
  --color-accent-500: oklch(.58 .09 115);
  --color-accent-600: oklch(.5 .085 115);
  --color-accent-700: oklch(.42 .075 115);
  --color-accent-800: oklch(.34 .06 115);
  --color-accent-900: oklch(.27 .05 115);

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;

  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
}
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-600); }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--font-heading); font-weight: 400; margin: 0; }
.washed { filter: saturate(.6) contrast(.85) brightness(1.1) opacity(.94); }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--color-bg); padding-bottom: 84px; }
.hidden { display: none !important; }

/* — top bar — */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-neutral-200);
}
.brand { display: flex; align-items: center; font-family: var(--font-heading); font-size: 22px; color: var(--color-text); }
.brand-logo { width: 38px; height: 38px; }
.lang-switch { display: flex; gap: 4px; background: var(--color-neutral-100); border-radius: 999px; padding: 3px; }
.lang-btn { border: none; cursor: pointer; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; background: transparent; color: var(--color-neutral-700); }
.lang-btn.active { background: var(--color-accent); color: #fff; }

/* — quick nav chips — */
.tabs-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab-chip { flex: none; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--color-accent-100); color: var(--color-accent-800); white-space: nowrap; }

/* — hero — */
.hero { position: relative; padding: 16px 14px 24px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-lg); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: relative; background: #f6f2e6; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px 26px 34px; margin: 44px 10px 48px; text-align: center; }
/* Transparent PNG, so it inherits the card's cream rather than sitting on a
   white square. Width in ch-free units keeps it proportional on small phones. */
.hero-logo { width: min(150px, 42vw); height: auto; margin: 0 auto 18px; }
.kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--color-neutral-800); font-weight: 600; }
/* Cormorant runs much wider than the script face it replaced: "Joaquín & Anna"
   needs ~6.3px of width per px of font-size, against ~275px inside the card on
   a 375px phone. Capped so it stays on one line. */
.hero-title { font-size: clamp(34px, 11vw, 48px); line-height: 1.15; margin: 18px 0 14px; color: var(--color-text); }
.place-line { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-neutral-800); }
.hr-thin { border-top: 1px solid var(--color-neutral-300); width: 72%; margin: 18px auto 16px; }
.date-line { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text); font-weight: 600; }
.invite-line { font-family: var(--font-heading); font-size: 26px; margin: 20px 0 0; color: var(--color-accent-700); }
.intro-text { font-size: 14.5px; line-height: 1.6; color: var(--color-neutral-800); max-width: 320px; margin: 18px auto 0; }
.countdown { margin-top: 16px; font-family: var(--font-heading); font-size: 24px; color: var(--color-accent-700); }
.cta-wrap { margin-top: 20px; }

/* — buttons — */
/* nowrap: the label fits, but Cormorant is wide enough that the flex box was
   breaking "Confirmar asistencia" across two lines inside the pill. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border: 1px solid transparent; border-radius: 999px; font-family: var(--font-heading); font-size: 17px; font-weight: 500; white-space: nowrap; padding: 10px 22px; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-secondary { border-color: var(--color-divider); color: var(--color-text); background: transparent; }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ghost { color: var(--color-accent-700); background: transparent; border: none; }
.btn-block { width: 100%; }

/* — sections — */
section.page-section { padding: 36px 20px; background: var(--color-accent-2-100); }
section.page-section:first-of-type { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
section.page-section:last-of-type { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.section-title { font-size: 30px; margin: 0 0 6px; }
.section-note { margin: 0 0 20px; font-size: 14px; color: var(--color-neutral-700); }

/* — programa — */
.day-list { display: flex; flex-direction: column; gap: 16px; }
.day-card { padding: 20px; border-radius: var(--radius-lg); background: var(--color-surface); }
.day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.day-num { font-family: var(--font-heading); font-size: 26px; color: var(--color-accent); }
.day-name { font-weight: 700; font-size: 17px; }
.day-sub { font-size: 13px; color: var(--color-accent-2-700); font-weight: 600; }
.day-desc { font-size: 14.5px; line-height: 1.55; color: var(--color-neutral-800); margin: 8px 0 12px; }
.day-slots { display: flex; flex-direction: column; gap: 6px; }
.day-slot { display: flex; gap: 10px; font-size: 14px; }
.slot-h { flex: none; width: 52px; font-weight: 700; color: var(--color-accent-800); }
.slot-txt { color: var(--color-neutral-800); }

/* — lugar — */
.place-photo { height: 220px !important; margin-bottom: 16px; border-radius: 24px; overflow: hidden; }
.place-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.map-card { padding: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface); }
.map-frame { width: 100%; height: 240px; border: 0; display: block; }
.map-info { padding: 16px 18px; }
.map-name { font-weight: 700; }
.map-sub { font-size: 14px; color: var(--color-neutral-700); margin: 2px 0 12px; }
.map-note { font-size: 14px; line-height: 1.55; color: var(--color-neutral-800); margin: 0 0 14px; }

/* — dormir — */
.stay-card { padding: 18px 20px; border-radius: var(--radius-lg); margin-bottom: 14px; background: var(--color-surface); }
.stay-bunks { font-size: 13.5px; line-height: 1.55; color: var(--color-accent-2-800); background: var(--color-accent-2-200); padding: 10px 14px; border-radius: var(--radius-lg); margin: 12px 0 0; }
.stay-list { display: flex; flex-direction: column; gap: 12px; }
.stay-item { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--color-surface); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stay-item-name { font-weight: 700; font-size: 15px; }
.stay-item-sub { font-size: 13px; color: var(--color-neutral-700); }

/* — tags — */
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .02em; padding: 3px 10px; border-radius: 12px; }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); flex: none; }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); flex: none; width: 86px; justify-content: center; }

/* — dresscode — */
.dress-list { display: flex; flex-direction: column; gap: 10px; }
.dress-item { display: flex; gap: 12px; align-items: baseline; }
.dress-txt { font-size: 14.5px; line-height: 1.5; color: var(--color-neutral-800); }
.tip-box { font-size: 13.5px; line-height: 1.55; color: var(--color-accent-2-800); margin: 16px 0 0; background: var(--color-accent-2-200); padding: 12px 14px; border-radius: var(--radius-lg); }

/* — playlist — */
.song-form { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.song-input-wrap { position: relative; flex: 1; }
.song-suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10;
  background: var(--color-neutral-100); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); max-height: 260px; overflow-y: auto;
}
.song-suggestion { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; font-size: 13.5px; text-align: left; width: 100%; background: none; border: none; }
.song-suggestion:hover, .song-suggestion:focus-visible { background: var(--color-accent-100); }
.song-suggestion img { width: 32px; height: 32px; border-radius: 6px; flex: none; object-fit: cover; }
.song-suggestion .meta { display: flex; flex-direction: column; overflow: hidden; }
.song-suggestion .meta .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-suggestion .meta .artist { font-size: 12px; color: var(--color-neutral-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.songs-mine-title { font-family: var(--font-body); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-neutral-700); font-weight: 600; margin: 18px 0 10px; }
.song-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.song-item {
  display: flex; gap: 12px; align-items: center; background: var(--color-neutral-100);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  padding: 8px 14px 8px 8px; font-size: 14px;
}
.song-cover {
  width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.song-cover-empty {
  display: grid; place-items: center;
  background: var(--color-accent-100); box-shadow: none;
}
.song-meta { display: flex; flex-direction: column; min-width: 0; }
.song-meta .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-item .artist { color: var(--color-neutral-600); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Spotify's embed brings its own (white) chrome, so it sits in a warm frame
   rather than directly on the cream background, where it looked pasted on. */
.playlist-embed {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: 8px; margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.playlist-embed iframe { display: block; border-radius: 14px; }
.playlist-link { display: block; text-align: center; font-weight: 700; color: var(--color-accent-700); padding: 8px; }

/* — inputs — */
.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--color-neutral-800); }
.input {
  width: 100%; min-height: 40px; padding: 8px 14px; font: inherit; font-size: 14px; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 999px;
}
textarea.input { min-height: 80px; border-radius: var(--radius-lg); resize: vertical; padding: 10px 14px; }
.input:focus-visible { border-color: var(--color-accent); outline: none; }

/* — fotos — */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.gallery-slot { height: 150px; border-radius: 24px; background: var(--color-neutral-200); display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-size: 12.5px; color: var(--color-neutral-600); }
.gallery-photo { height: 150px; border-radius: 24px; overflow: hidden; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-upload-btn { cursor: pointer; }
.gallery-hint { font-size: 13px; color: var(--color-neutral-600); margin-top: 12px; text-align: center; }

/* — footer — */
.site-footer { padding: 30px 20px 44px; text-align: center; }
.footer-names { font-family: var(--font-heading); font-size: 30px; }
.footer-date { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-neutral-600); margin-top: 6px; }

/* — bottom nav — */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 60;
  display: flex; align-items: flex-end; justify-content: space-around;
  background: color-mix(in oklab, var(--color-bg) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-neutral-200); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--color-neutral-700); text-decoration: none; min-width: 56px; background: none; border: none; cursor: pointer; }
.nav-fab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--color-accent-800); text-decoration: none; min-width: 56px; margin-top: -18px; }
.nav-fab-circle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--color-accent); box-shadow: var(--shadow-md); }

/* — RSVP page — */
.rsvp-page { padding: 20px 20px 40px; min-height: 80vh; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; border: none; background: var(--color-neutral-100); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--color-neutral-800); cursor: pointer; margin-bottom: 18px; }
.rsvp-title { font-size: 34px; margin: 0 0 6px; }
.rsvp-note { margin: 0 0 18px; font-size: 14px; color: var(--color-neutral-800); }
.thanks-card { padding: 26px 22px; border-radius: var(--radius-lg); text-align: center; background: var(--color-surface); }
.thanks-title { font-family: var(--font-heading); font-size: 26px; color: var(--color-accent); }
.thanks-body { font-size: 14.5px; line-height: 1.55; color: var(--color-neutral-800); }
.rsvp-form { display: flex; flex-direction: column; gap: 16px; }
.day-toggle-list { display: flex; flex-direction: column; gap: 8px; }
.day-toggle {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; cursor: pointer;
  font-size: 14.5px; padding: 11px 18px; border-radius: 999px; border: 2px solid var(--color-neutral-300);
  background: var(--color-neutral-100); color: var(--color-text);
}
.day-toggle.on { border-color: var(--color-accent); background: var(--color-accent-200); }
.day-toggle .sub { font-size: 12.5px; opacity: .75; }
.row-2 { display: flex; gap: 12px; }
.row-2 > .field { flex: 1; }
.error-box { font-size: 13.5px; color: var(--color-accent-800); background: var(--color-accent-200); padding: 10px 14px; border-radius: 999px; }
.gate-note { font-size: 14px; line-height: 1.55; color: var(--color-neutral-800); background: var(--color-surface); border-radius: var(--radius-lg); padding: 18px 20px; }

@media (min-width: 481px) {
  .app { border-inline: 1px solid var(--color-neutral-200); box-shadow: var(--shadow-md); }
}
