/* Pagina publica de suscripcion a los huevos. Misma paleta que la app (verde campo, caramelo y crema). */
:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --ink: #2f2418;
  --muted: #6b5a45;
  --line: #e8dfd0;
  --green-900: #10301f;
  --green-800: #184733;
  --green: #255f45;
  --green-soft: #e3efe7;
  --caramel: #c5762d;
  --caramel-cta: #a8601e;
  --caramel-soft: #f8eadb;
  --red: #b5402f;
  --font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.hv-hero {
  padding: calc(28px + env(safe-area-inset-top)) 20px 64px;
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #fff8ef;
  text-align: center;
}

.hv-logo {
  width: 92px;
  height: auto;
  padding: 8px;
  border-radius: 22px;
  background: #fffaf1;
}

.hv-kicker {
  margin: 14px 0 4px;
  color: #f0b46e;
  font-weight: 700;
}

.hv-hero h1 {
  margin: 0 auto;
  max-width: 520px;
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.hv-lead {
  margin: 12px auto 0;
  max-width: 460px;
  color: rgba(255, 248, 239, 0.86);
}

.hv-main {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  margin: -40px auto 0;
  padding: 0 16px 32px;
}

.hv-card {
  padding: 22px 18px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(47, 36, 24, 0.04), 0 8px 24px rgba(47, 36, 24, 0.08);
}

.hv-card h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.hv-benefits {
  display: grid;
  gap: 10px;
}

.hv-benefits:empty {
  display: none;
}

.hv-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--caramel-soft);
  font-weight: 700;
}

.hv-benefit[data-tone="green"] {
  background: var(--green-soft);
}

.hv-benefit-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  font-size: 1.4rem;
}

.hv-field {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  font-weight: 700;
}

.hv-field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.hv-field small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hv-field input,
.hv-field textarea {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.hv-field textarea {
  min-height: 80px;
  resize: vertical;
}

.hv-field input:focus,
.hv-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(37, 95, 69, 0.16);
}

.hv-stepper {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  gap: 10px;
  align-items: center;
}

.hv-step {
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green-800);
  font: inherit;
  font-size: 2rem;
  font-weight: 800;
  cursor: pointer;
}

#hv-quantity {
  display: grid;
  place-items: center;
  min-height: 62px;
  border-radius: 18px;
  background: var(--bg);
  font-size: 1.5rem;
  font-weight: 800;
}

.hv-frequency legend {
  margin-bottom: 8px;
  padding: 0;
}

.hv-option {
  position: relative;
  display: block;
}

.hv-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.hv-option span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
}

.hv-option span::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.hv-option input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-800);
}

.hv-option input:checked + span::before {
  border: 7px solid var(--green);
}

.hv-option input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(37, 95, 69, 0.2);
}

.hv-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hv-error {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 700;
}

.hv-error:empty {
  display: none;
}

.hv-submit {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  background: var(--caramel-cta);
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(168, 96, 30, 0.28);
}

.hv-submit:disabled {
  opacity: 0.6;
}

.hv-small {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.hv-done {
  text-align: center;
}

.hv-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
}

#hv-code-status[data-tone="ok"] {
  color: var(--green);
  font-weight: 700;
}

#hv-code-status[data-tone="error"] {
  color: var(--red);
  font-weight: 700;
}

.hv-footer {
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Mi cuenta (clientes) ---------- */
.hv-hero-small {
  padding-bottom: 56px;
}

.hv-hero-small .hv-logo {
  width: 64px;
  border-radius: 16px;
}

.hv-hero-small h1 {
  font-size: 1.9rem;
}

.mc-card {
  display: grid;
  gap: 12px;
}

.mc-card h2 {
  margin: 0;
}

.mc-card p {
  margin: 0;
}

.mc-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 12px 18px;
  border: 0;
  border-radius: 18px;
  background: var(--caramel-cta);
  color: #fff;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mc-button:disabled {
  opacity: 0.6;
}

.mc-secondary {
  background: var(--green-soft);
  color: var(--green-800);
}

.mc-link {
  min-height: 48px;
  background: transparent;
  color: var(--green-800);
  text-decoration: underline;
}

.mc-highlight {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green-800);
}

.mc-paused {
  background: var(--caramel-soft);
  color: #8a4c15;
}

.mc-owe {
  background: #fbe5e0;
  color: var(--red);
}

.mc-big {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.mc-strong {
  font-weight: 800;
}

.mc-good {
  color: var(--green);
}

.mc-muted,
.mc-note {
  color: var(--muted);
}

.mc-note {
  font-size: 0.95rem;
}

.mc-label {
  margin-top: 6px !important;
  font-weight: 800;
}

.mc-choices {
  display: grid;
  gap: 8px;
}

.mc-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 2px dashed var(--caramel);
  border-radius: 18px;
  background: var(--caramel-soft);
}

.mc-code strong {
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.mc-history {
  display: grid;
  gap: 8px;
}

.mc-history p {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg);
}

.mc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: min(520px, calc(100vw - 32px));
  padding: 16px 22px;
  border-radius: 18px;
  background: var(--green-800);
  color: #fff;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.mc-toast[data-tone="error"] {
  background: var(--red);
}

.mc-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hv-showpass {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 18px;
  font-weight: 600;
  color: var(--muted);
}

.hv-showpass input {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
}

.hv-small a {
  color: var(--green-800);
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

/* Boton "Continuar con Google" (segun las pautas de Google: blanco, borde gris y la G de colores) */
.hv-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 12px 18px;
  border: 1.5px solid #dadce0;
  border-radius: 18px;
  background: #fff;
  color: #3c4043;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.hv-google:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 95, 69, 0.2);
}

.hv-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 !important;
  color: var(--muted);
  font-size: 0.95rem;
}

.hv-divider::before,
.hv-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.hv-google-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-800);
  font-weight: 700;
}

/* Casilla del codigo de 6 numeros que llega por mail */
.hv-field input.mc-otp {
  font-size: 1.8rem;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hv-footer a {
  color: inherit;
  text-decoration: underline;
}

.hv-account-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 239, 0.5);
  color: #fff8ef;
  font-weight: 700;
  text-decoration: none;
}

.hv-option em {
  font-style: normal;
  font-weight: 400;
  margin-left: 0.35em;
  color: var(--muted);
}
