:root {
  --bg: #f7f3ee;
  --card: #fffdf9;
  --ink: #2b2622;
  --muted: #7a6f66;
  --gold: #a8834f;
  --gold-dark: #8a6a3c;
  --line: #e8dfd4;
  --ok: #4f7a5a;
  --err: #a4483d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.card { width: 100%; max-width: 520px; background: var(--card); min-height: 100vh; }

@media (min-width: 560px) {
  body { padding: 32px 16px; }
  .card { min-height: auto; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(60, 40, 20, .08); }
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  overflow: hidden;
  background: linear-gradient(160deg, #d9c3a5, #b99472 60%, #8f6c50);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 12, 6, .65), rgba(20, 12, 6, 0) 55%);
}
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: #fff; text-align: center; z-index: 1; }
.eyebrow { margin: 0 0 4px; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; opacity: .9; }
h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 42px; line-height: 1.05; margin: 0; }

.body { padding: 24px 20px 32px; }
.welcome { text-align: center; color: var(--muted); margin: 0 0 20px; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* evita el zoom automático de iOS */
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:active { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); margin-top: 16px; }
.btn.disabled { opacity: .45; pointer-events: none; }
#send { margin-top: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

.hint { font-size: 14px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.hint.strong { color: var(--gold-dark); font-weight: 500; }

.list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 20px; }
.meta { flex: 1; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; }
.fname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.rm { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 0 4px; cursor: pointer; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.status { font-size: 12px; color: var(--muted); }
.item.done .bar i { background: var(--ok); }
.item.done .status { color: var(--ok); }
.item.error .status { color: var(--err); }
.item.error .bar { display: none; }

.notice { padding: 16px; border-radius: 12px; background: var(--bg); text-align: center; }
.thanks { text-align: center; padding: 12px 0; }
.thanks-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; margin: 0; }
.ts { display: flex; justify-content: center; margin-top: 12px; }
.legal { font-size: 12px; color: var(--muted); text-align: center; margin: 28px 0 0; }
