/* ═══════════════════════════════════════
   stylesbaby.css · Baby Shower 2025
═══════════════════════════════════════ */
@keyframes fadeInBtn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #fdf8f5;
  --p1:     #f7d6e0;
  --p2:     #d4eadf;
  --p3:     #d6e4f7;
  --p4:     #f5e6c8;
  --p5:     #e8d6f5;
  --accent: #c4879a;
  --a2:     #7aad90;
  --text:   #3d2b35;
  --muted:  #8e7480;
  --white:  #fffcfa;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  overflow-x: hidden;
}

/* ── CANVAS ── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.z1 { position: relative; z-index: 1; }

/* ══════════════════════════
   SCREENS
══════════════════════════ */
.screen { display: none; }
.screen.active { display: block; }

/* ══════════════════════════
   PANTALLA FAMILIA
══════════════════════════ */
#screen-family {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.family-wrap { max-width: 720px; width: 100%; text-align: center; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: block;
}

.family-title {
  font-family: 'Gilda Display', serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1rem;
}

.family-title .script {
  font-family: 'Pinyon Script', cursive;
  font-size: 1.25em;
  color: var(--accent);
  display: block;
}

.family-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}




.select-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto 1.8rem;
}

.familia-select {
  width: 100%;
  padding: 1rem 3rem 1rem 1.4rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid rgba(196,135,154,.3);
  border-radius: 2px;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}

.familia-select:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(196,135,154,.15);
}

.select-arrow {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1rem;
  pointer-events: none;
}




/* ── FORM ERROR ── */
.form-error {
  color: #c0576a;
  font-size: .85rem;
  font-style: italic;
  margin-bottom: 1rem;
}

/* ── BTN ── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 1.1rem 3rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s ease;
}

.btn:hover {
  background: #b57489;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(196,135,154,.3);
}

/* ══════════════════════════
   HERO
══════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.hero-title {
  font-family: 'Gilda Display', serif;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 1.05;
  color: var(--text);
  animation: up 1.2s ease .3s both;
}

.hero-title .script {
  font-family: 'Pinyon Script', cursive;
  font-size: 1.3em;
  color: var(--accent);
  display: block;
  font-weight: 600;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--muted);
  font-style: italic;
  animation: up 1s ease .6s both;
  line-height: 1.7;
}

#hero-greeting {
  animation: up 1s ease .1s both;
  font-weight: 600;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  animation: fadeIn 1s ease 1.5s both;
}

.scroll-cue span {
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--a2);
}

.scroll-cue .line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--a2), transparent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ══════════════════════════
   CHAPTERS
══════════════════════════ */
.chapter {
  padding: 5.5rem 2rem;
  position: relative;
  z-index: 1;
}

.ch-inner { max-width: 820px; margin: 0 auto; }

.ch-tag {
  font-size: .65rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--a2);
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
}

.ch-tag::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--a2);
  opacity: .4;
}

h2.ch-title {
  font-family: 'Gilda Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 1.2rem;
}

h2.ch-title em { font-style: italic; color: var(--accent); }

.ch-body {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.85;
  max-width: 540px;
}

/* ── BANDS ── */
.band-blush  { background: var(--p1); }
.band-mint   { background: var(--p2); }
.band-sky    { background: var(--p3); }
.band-butter { background: var(--p4); }
.band-lilac  { background: var(--p5); }

/* ── SPLIT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split.rev { direction: rtl; }
.split.rev > * { direction: ltr; }

/* ── MYSTERY BOX ── */
.mbox {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 40px rgba(196,135,154,.12);
}

.mbox::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(196,135,154,.25);
  pointer-events: none;
}

.mbox-glyph {
  font-family: 'Pinyon Script', cursive;
  font-size: 5rem;
  color: var(--accent);
  opacity: .2;
  line-height: 1;
  filter: blur(2px);
  margin-bottom: .4rem;
}

.mbox-lbl {
  font-size: .68rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
  display: block;
}

.mbox-text {
  font-family: 'Gilda Display', serif;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text);
}

/* ── Q GRID ── */
.q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.q-card {
  background: var(--white);
  padding: 1.8rem 1.4rem;
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 20px rgba(122,173,144,.08);
}

.q-card:nth-child(2) { border-color: var(--a2); }
.q-card:nth-child(3) { border-color: #a8b8d8; }
.q-card:nth-child(4) { border-color: #c9a84c; }

.q-icon { font-size: 1.6rem; display: block; margin-bottom: .7rem; }
.q-text { font-family: 'Gilda Display', serif; font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.q-hint { font-size: .8rem; color: var(--muted); font-style: italic; margin-top: .5rem; display: block; }

/* ── DETAILS ── */
.details-wrap {
  max-width: 860px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.d-tile {
  background: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.d-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p1), var(--p5));
}

.d-icon { font-size: 1.8rem; display: block; margin-bottom: .7rem; }
.d-lbl { font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .4rem; }
.d-val { font-family: 'Gilda Display', serif; font-size: 1.1rem; color: var(--text); }
.d-sub { font-size: .8rem; color: var(--accent); font-style: italic; display: block; margin-top: .2rem; }

/* ── COUNTDOWN ── */
.cd-wrap {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.cd-unit { text-align: center; }

.cd-num {
  font-family: 'Gilda Display', serif;
  font-size: 3rem;
  color: var(--text);
  line-height: 1;
}

.cd-lbl {
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .4rem;
  display: block;
}

/* ── QUOTE STRIP ── */
.q-strip {
  background: linear-gradient(135deg, var(--p5) 0%, var(--p1) 60%, var(--p2) 100%);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.q-strip blockquote {
  font-family: 'Gilda Display', serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--text);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
  font-style: italic;
}

.q-strip cite {
  display: block;
  margin-top: 1.5rem;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ══════════════════════════
   RSVP
══════════════════════════ */
.rsvp {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.rsvp-sub {
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
  margin: 1rem auto 1.5rem;
  max-width: 420px;
  line-height: 1.7;
}

/* COUNTER */
.counter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.counter-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-btn:hover {
  background: var(--p1);
  transform: scale(1.1);
}

.counter-num {
  font-family: 'Gilda Display', serif;
  font-size: 4rem;
  color: var(--text);
  min-width: 80px;
  text-align: center;
  line-height: 1;
}

.counter-label {
  font-size: .75rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
}

/* SUCCESS */
.rsvp-success { padding: 2rem; }
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-title {
  font-family: 'Gilda Display', serif;
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: .8rem;
}
.success-msg { font-size: 1.1rem; color: var(--muted); font-style: italic; line-height: 1.7; }

/* ── ORN ── */
.orn {
  text-align: center;
  color: var(--accent);
  opacity: .35;
  font-size: 1.2rem;
  letter-spacing: .5em;
  padding: .5rem 0;
  position: relative;
  z-index: 1;
}

/* ── MUSIC BTN ── */
#musicBtn {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 999;
  background: var(--white);
  border: 1px solid rgba(196,135,154,.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(196,135,154,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}

#musicBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(196,135,154,.35);
}




/* ── BANK CARD ── */
.bank-card {
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid rgba(196,135,154,.2);
  padding: 2.5rem 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  animation: up .8s ease forwards;
}

.bank-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(196,135,154,.2);
  pointer-events: none;
}

.bank-intro {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.bank-intro em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.bank-divider {
  text-align: center;
  color: var(--accent);
  opacity: .4;
  letter-spacing: .4em;
  margin: 1rem 0;
}

.bank-optional {
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bank-details {
  background: var(--p1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(196,135,154,.15);
  gap: 1rem;
}

.bank-row:last-child { border-bottom: none; }

.bank-lbl {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.bank-val {
  font-family: 'Gilda Display', serif;
  font-size: 1rem;
  color: var(--text);
  text-align: right;
}

.bank-thanks {
  font-size: .9rem;
  color: var(--accent);
  font-style: italic;
}

/* ── FOOTER ── */
footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(196,135,154,.15);
  position: relative;
  z-index: 1;
}

/* ── MBOX CON IMAGEN DE FONDO ── */
/* ── MBOX CON IMAGEN DE FONDO ── */
.mbox-img {
  padding: 0;
  overflow: hidden;
  min-height: 260px;
  height: 100%;
}

.mbox-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.75;
}

.mbox-overlay {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.45)
  );
  min-height: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* En móvil limitar altura para que no crezca */
@media(max-width: 620px){
  .mbox-img,
  .mbox-overlay {
    min-height: 200px;
    max-height: 200px;
  }
}

.mbox-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
}

.mbox-overlay {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.45)
  );
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


footer p { font-family: 'Pinyon Script', cursive; font-size: 2rem; color: var(--accent); }
footer small { display: block; margin-top: .5rem; font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* ══════════════════════════
   SCROLL REVEAL
══════════════════════════ */
.sr { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.sr.in { opacity: 1; transform: none; }
.sr.d1 { transition-delay: .1s; }
.sr.d2 { transition-delay: .2s; }
.sr.d3 { transition-delay: .3s; }

/* ══════════════════════════
   ANIMATIONS
══════════════════════════ */
@keyframes up { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:none} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media(max-width:620px){
  .split, .split.rev { grid-template-columns: 1fr; direction: ltr; }
  .radio-grid { grid-template-columns: 1fr 1fr; }
}

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