:root {
  --bg: #f3f0e8;
  --paper: #ffffff;
  --ink: #0e0e0e;
  --muted: #6b6860;
  --faint: #a5a299;
  --line: #dedad0;
  --lime: #c6ff3d;
  --lime-deep: #a8e61c;
  --violet: #6b4dff;
  --pink: #ff5fa2;
  --danger: #e0322b;
  --ok: #17803d;
  --radius: 14px;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--ink); }

h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

a { color: inherit; }

label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 7px; }

input[type="text"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], select {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
input:hover, select:hover { border-color: #bcb8ad; }
input:focus, select:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); }
input::placeholder { color: var(--faint); font-weight: 400; }
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }

select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230e0e0e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--lime-deep); }
.btn:active:not(:disabled) { transform: none; box-shadow: none; }
.btn:disabled { cursor: progress; background: #2a2a2a; }
.btn.block { width: 100%; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover:not(:disabled) .arrow { transform: translateX(4px); }
.btn.ghost {
  height: 40px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
}
.btn.ghost:hover:not(:disabled) { background: var(--ink); color: var(--lime); transform: none; box-shadow: none; }

/* Cinta animada */
.ticker { background: var(--ink); color: var(--lime); overflow: hidden; white-space: nowrap; padding: 9px 0; }
.ticker div {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  animation: ticker 28s linear infinite;
}
.ticker span { margin: 0 14px; }
.ticker i { font-style: normal; color: var(--pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

.error-msg { color: var(--danger); font-size: 0.875rem; font-weight: 500; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-20deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
