/* ============================================================
   INVITACIÓN BABY SHOWER · LUNEXA INVITÉ
   Hoja de estilos. Cambia aquí los colores, las letras y las
   medidas. Todo lo que se repite está arriba, en :root.
   ============================================================ */

:root {
  /* --- Colores --- */
  --background: #FBFEFC;          /* fondo general            */
  --foreground: #2B4336;          /* texto normal             */
  --card: #FFFFFF;                /* fondo de campos          */
  --primary: #3E614D;             /* verde de la marca        */
  --primary-foreground: #FCFDF5;  /* texto sobre el verde     */
  --secondary: #DDF2E6;           /* verde clarito (sección 02) */
  --muted: #E9F3E7;               /* gris verdoso suave       */
  --muted-foreground: #5D7065;    /* texto secundario         */
  --accent: #EFBC81;              /* dorado / mostaza         */
  --accent-foreground: #814F29;   /* marrón del texto dorado  */
  --whatsapp: #49C46F;            /* botón flotante           */
  --whatsapp-foreground: #FFFFFF;
  --border: #E3E9F1;              /* líneas divisorias        */
  --input: #E3E9F1;               /* borde de los campos      */
  --footer: #26252C;              /* fondo del pie de página  */
  --footer-primary: #D1BCF0;      /* lila del eslogan         */
  --footer-foreground: #F5F5F9;   /* texto del pie            */
  --footer-muted: #B4B3C1;

  /* --- Letras --- */
  --font-display: "Itim", cursive;      /* títulos   */
  --font-sans: "Quicksand", sans-serif; /* textos    */

  /* --- Otros --- */
  --radius: 16px;
  --shadow-soft: 0 12px 30px -12px rgba(90, 110, 95, 0.35);
}

/* ------------------- Base ------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
img { max-width: 100%; display: block; }
svg { display: inline-block; vertical-align: middle; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.center { text-align: center; margin-top: 24px; }

/* ------------------- Portada ------------------- */
.invitation-hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  height: min(780px, 90svh);
  display: flex;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.hero-copy { position: relative; padding: 85px 20px 60px; }
.eyebrow {
  font-size: 10px;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.hero-intro { margin-top: 28px; font-size: 14px; color: var(--muted-foreground); }
.party-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.05;
  color: var(--primary);
  text-shadow: 2px 3px 0 rgba(239, 188, 129, 0.45);
}
.hero-de { display: block; margin-top: 12px; font-family: var(--font-sans); font-size: 14px; color: var(--muted-foreground); }
.baby-name { display: block; margin-top: 12px; font-size: 42px; line-height: 1.15; }
.hero-date {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px auto 0;
  width: fit-content;
  padding: 12px 22px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-foreground);
}
.mini-heart { width: 12px; height: 12px; }
.hero-date-city { display: none; }
.hero-message { margin: 20px auto 0; max-width: 320px; font-size: 14px; line-height: 28px; color: var(--muted-foreground); }
.hero-tiger { width: 190px; height: 195px; object-fit: contain; margin: 20px auto 0; }
.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary);
  padding: 12px;
}
.hero-scroll svg { width: 20px; height: 20px; }

/* ------------------- Secciones ------------------- */
.invitation-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 22px;
  border-bottom: 1px solid var(--border);
}
.section-heading { text-align: center; margin-bottom: 36px; }
.section-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: 10px;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 50%;
  margin-bottom: 12px;
}
.section-title { font-family: var(--font-display); font-size: 36px; line-height: 1.15; color: var(--primary); }
.section-flourish { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--accent-foreground); margin-top: 20px; }
.section-flourish svg { width: 12px; height: 12px; }
.section-flourish span { width: 45px; height: 1px; background: var(--accent); }

/* ------------------- 01 · Datos del evento ------------------- */
.event-details { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.event-details > div + div { border-left: 1px solid var(--border); }
.detail-icon { width: 22px; height: 22px; margin: 0 auto 14px; color: var(--primary); }
.detail-label { font-size: 10px; color: var(--muted-foreground); margin-bottom: 8px; }
.detail-value { font-size: 12px; font-weight: 600; }

/* ------------------- 02 · Cuenta regresiva ------------------- */
.countdown-section { background: var(--secondary); max-width: none; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 576px; margin: 0 auto; }
.countdown-item {
  text-align: center;
  padding: 20px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  box-shadow: var(--shadow-soft);
}
.countdown-value { font-family: var(--font-display); font-size: 36px; color: var(--primary); }
.countdown-label { margin-top: 8px; font-size: 12px; color: var(--muted-foreground); }

/* ------------------- 03 · Ubicación ------------------- */
.place-name { text-align: center; font-size: 18px; font-weight: 600; }
.place-detail { margin: 8px 0 28px; text-align: center; font-size: 14px; color: var(--muted-foreground); }
.map-frame { width: 100%; height: 256px; border: 1px solid var(--border); border-radius: 12px; }

/* ------------------- Botones ------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: #345240; }
.btn-outline {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--input);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.btn-outline:hover { background: var(--muted); }
.btn-block { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------- 04 · Formulario ------------------- */
.form-wrap { max-width: 512px; margin: 0 auto; }
.form-stack > * + * { margin-top: 20px; }
.field-label { display: block; font-size: 12px; font-weight: 600; }
.invitation-field {
  display: block;
  margin-top: 9px;
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 6px;
  background: var(--card);
  padding: 13px 14px;
  font-size: 14px;
  font-family: inherit;
  color: inherit;
  outline: none;
}
.invitation-field:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(62, 97, 77, 0.15); }
textarea.invitation-field { resize: vertical; }

.rsvp-done { padding: 32px 0; text-align: center; }
.rsvp-done > svg { width: 32px; height: 32px; margin: 0 auto 16px; color: var(--primary); }
.rsvp-title { font-size: 18px; }
.rsvp-text { margin-top: 8px; color: var(--muted-foreground); }

/* ------------------- 05 · Mesa de regalos ------------------- */
.gift-intro { margin-bottom: 28px; text-align: center; font-size: 14px; line-height: 28px; color: var(--muted-foreground); }
.gift-wrap { max-width: 512px; margin: 0 auto; }
.gift-list { margin: 20px 0 0; padding: 0; list-style: none; }
.gift-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
}
.gift-list li + li { border-top: 1px solid var(--border); }
.gift-name { display: flex; align-items: center; gap: 12px; }
.gift-name svg { width: 16px; height: 16px; color: var(--primary); }
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover { background: var(--muted); }
.icon-btn svg { width: 16px; height: 16px; }
.gift-confirm { margin-top: 20px; }
.gift-done { margin-top: 20px; text-align: center; font-size: 14px; line-height: 24px; color: var(--primary); }

/* ------------------- Pie de página ------------------- */
.lunexa-footer {
  background: var(--footer);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 38px 24px 64px;
}
.footer-logo { width: 160px; height: 160px; object-fit: contain; margin: 0 auto; }
.footer-credit { margin-top: 12px; font-size: 14px; color: var(--footer-muted); }
.footer-credit strong { font-weight: 600; color: var(--footer-primary); }
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--footer-foreground);
  text-decoration: none;
}
.footer-cta svg { width: 14px; height: 14px; flex: none; }
.footer-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-slogan {
  display: block;
  max-width: 384px;
  margin: 32px auto 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.35;
  color: var(--footer-primary);
  text-decoration: none;
}

/* ------------------- Botón flotante de WhatsApp ------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 20;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--whatsapp-foreground);
  box-shadow: var(--shadow-soft);
}
.whatsapp-fab:hover { background: #3FB565; }
.whatsapp-fab svg { width: 24px; height: 24px; }

/* ------------------- Escritorio ------------------- */
@media (min-width: 601px) {
  .invitation-hero { min-height: 700px; }
  .hero-copy { padding: 85px 20px 60px; }
  .party-title { font-size: 60px; }
  .baby-name { font-size: 72px; }
  .hero-tiger { width: 210px; height: 215px; }
  .hero-date-city { display: inline; }
  .invitation-section { padding: 64px 28px; }
  .section-title { font-size: 48px; }
  .event-details { gap: 20px; }
  .detail-value { font-size: 15px; }
  .countdown-grid { gap: 24px; }
  .countdown-value { font-size: 60px; }
  .map-frame { height: 320px; }
}

/* ------------------- Móvil ------------------- */
@media (max-width: 600px) {
  .invitation-hero { min-height: 680px; height: 90svh; max-height: 780px; }
  .hero-art { object-fit: fill; object-position: center; }
  .hero-copy { padding-top: 80px; }
}

/* ------------------- Animaciones ------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: invitation-in 1s ease-out; }
  @keyframes invitation-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
