/* Madify Invita — tokens de diseño compartidos (landing, registro, pago, cuenta). */
:root {
  --bg: #fbf7f2;
  --bg-2: #f4ece2;
  --card: #ffffff;
  --ink: #2b2118;
  --ink-2: #5d4e41;
  --ink-3: #8a7a6b;
  --line: #eadfd3;
  --accent: #c0673a;
  --accent-2: #9a4f28;
  --accent-soft: #f7e4d6;
  --gold: #c9a45c;
  --ok: #2f7d4f;
  --ok-soft: #e6f3ea;
  --err: #b3261e;
  --err-soft: #fbe9e7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(43, 33, 24, .06), 0 12px 32px -12px rgba(43, 33, 24, .18);
  --shadow-lg: 0 30px 60px -24px rgba(43, 33, 24, .35);
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
  --pad: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1px solid transparent; font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -12px rgba(192, 103, 58, .9); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.btn .icon { font-size: 20px; }

/* Material Symbols */
.icon { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }

/* Formularios */
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .help { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel],
.field input[type=date], .field input[type=time], .field input[type=datetime-local], .field input[type=number], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font: 400 16px/1.4 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--err); font-size: .88rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--err-soft); color: var(--err); }
.alert-info { background: var(--accent-soft); color: var(--accent-2); }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }

/* Banner de cookies */
.consent { position: fixed; inset: auto 12px 12px 12px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--ink); color: #f5ede4;
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-lg); display: grid; gap: 12px; font-size: .92rem; }
.consent a { color: #f3c7a6; }
.consent .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { min-height: 40px; padding: 0 1.1em; font-size: .9rem; }
.consent .btn-ghost { color: #f5ede4; border-color: rgba(255,255,255,.3); }
