/* Bridal Shower de Sophia — estética crema/papel + tinta rojo vino.
   Mobile-first. Diseño y line-art ORIGINALES (no copiados de plantillas). */

:root {
  --paper:   #f6efe1;   /* crema tipo papel */
  --paper-2: #fbf6ec;   /* hoja interior, un punto más clara */
  --wine:    #6e1f2b;   /* tinta rojo vino */
  --wine-2:  #59121d;   /* vino profundo */
  --ink:     #4a352b;   /* texto cálido */
  --thread:  #b08d4f;   /* hilo dorado tenue del borde */
  --line:    #d9c9a8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, #fff7ea 0%, rgba(255,247,234,0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.5;
  padding: 20px 14px calc(28px + env(safe-area-inset-bottom));
}

.sheet {
  max-width: 540px;
  margin: 0 auto;
}

/* borde "tipo hilo": doble filete dorado con respiración interior */
.thread {
  background: var(--paper-2);
  border: 1px solid var(--thread);
  outline: 1px solid var(--thread);
  outline-offset: 5px;
  border-radius: 3px;
  padding: 34px 22px 26px;
  box-shadow: 0 10px 30px rgba(89,18,29,0.10);
}

/* ---------- Encabezado ---------- */
.hero { text-align: center; color: var(--wine); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .8;
}

.title {
  margin: 0;
  font-weight: 600;
  font-size: 38px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-indent: .22em; /* compensa el letter-spacing para centrar */
  color: var(--wine);
}

.of {
  margin: 4px 0 0;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}

.script-name {
  margin: 2px 0 6px;
  font-family: "Great Vibes", "Cormorant Garamond", cursive;
  font-size: 70px;
  line-height: 1.05;
  color: var(--wine-2);
}

/* ---------- Line-art ---------- */
.motif { color: var(--wine); display: block; margin: 0 auto; }
.motif.toast { width: 150px; height: auto; }
.motif.toast.small { width: 110px; opacity: .9; }
.gift-icon { width: 20px; height: 50px; display: inline-block; vertical-align: -16px; margin-right: 4px; }

/* ---------- Separadores ---------- */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 22px 0; color: var(--thread);
}
.rule span { height: 1px; width: 64px; background: var(--thread); opacity: .8; }
.rule em { font-style: normal; color: var(--wine); opacity: .7; }

/* ---------- Detalles ---------- */
.details { text-align: center; color: var(--ink); }
.when-day { margin: 0; font-size: 24px; color: var(--wine-2); font-weight: 600; }
.when-time { margin: 2px 0 14px; font-size: 19px; letter-spacing: .05em; }
.venue { margin: 0; font-size: 22px; font-weight: 600; color: var(--wine-2); }
.addr { margin: 4px 0 14px; font-size: 17px; opacity: .9; }

.maps {
  display: inline-block;
  border: 1px solid var(--wine);
  color: var(--wine);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: .03em;
  transition: background .15s, color .15s;
}
.maps:hover, .maps:active { background: var(--wine); color: #fff; }

.gift { margin: 20px 0 0; font-size: 18px; }
.gift strong { color: var(--wine-2); }

/* ---------- Formulario ---------- */
.rsvp-title, .thanks h2 { text-align: center; }
.rsvp-title {
  color: var(--wine);
  font-size: 27px;
  letter-spacing: .04em;
  margin: 0 0 18px;
}

.field { display: block; margin: 0 0 16px; }
.field > span, legend {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: .02em;
}
.field i { color: var(--wine); font-style: normal; }
.field small { color: #8a7a6a; font-size: 14px; }

input[type=text], input[type=tel], input[type=number], textarea {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(110,31,43,0.12);
}
textarea { resize: vertical; }

.choice { border: 0; padding: 0; margin: 0 0 16px; }
.choice legend { padding: 0; }
.pills { display: flex; gap: 10px; }
.pill {
  flex: 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 8px;
  background: #fffdf8;
  cursor: pointer;
  text-align: center;
  font-size: 17px;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { color: var(--ink); }
.pill:has(input:checked) {
  background: var(--wine);
  border-color: var(--wine);
}
.pill:has(input:checked) span { color: #fff; }
.pill:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(110,31,43,0.18); }

.err {
  color: #8a1420;
  background: #f7e3e0;
  border: 1px solid #e3b8b3;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  margin: 0 0 14px;
}

button[type=submit] {
  width: 100%;
  font-family: inherit;
  font-size: 20px;
  letter-spacing: .05em;
  color: #fff;
  background: var(--wine);
  border: 0;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: background .15s;
}
button[type=submit]:hover { background: var(--wine-2); }
button[type=submit]:disabled { opacity: .65; cursor: default; }

/* honeypot oculto, accesible para bots pero no para humanos */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Gracias ---------- */
.thanks { text-align: center; padding: 8px 0 4px; }
.thanks .script-name { font-size: 62px; margin: 6px 0 8px; }
.thanks p { margin: 4px 0; font-size: 20px; color: var(--ink); }
.thanks-sub { color: var(--wine-2); font-style: italic; }

/* ---------- Pie ---------- */
.foot {
  text-align: center;
  margin: 26px 0 0;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--wine);
  opacity: .8;
}

@media (max-width: 380px) {
  body { font-size: 18px; }
  .title { font-size: 31px; letter-spacing: .16em; text-indent: .16em; }
  .script-name { font-size: 58px; }
  .thread { padding: 26px 16px 22px; }
}
