:root {
  --navy: #14213D;
  --ink2: #3B4A68;
  --muted: #55627E;
  --bg: #EEF4FF;
  --line: #DCE4F2;
  --yellow: #FFC93C;
  --yellow-d: #C98E00;
  --blue: #A9CCFF;
  --blue-d: #5A87D6;
  --blue-ink: #2449B8;
  --orange: #FFC48A;
  --orange-d: #D9822B;
  --green: #A8E6BC;
  --green-d: #4CA56A;
  --red: #C2410C;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--navy); font: 18px/1.5 'Nunito Sans', system-ui, sans-serif; min-height: 100vh; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
a { color: var(--blue-ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px 72px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
[hidden] { display: none !important; }

/* Encabezado */
.bar { background: #fff; box-shadow: 0 1px 0 var(--line); }
.bar-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 800 26px 'Bricolage Grotesque', sans-serif; letter-spacing: -0.02em; }
.ck { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-d); font-size: 22px; }
.bar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 16px; }
.pill svg { flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 16px; border: 0;
  cursor: pointer; font: 800 18px 'Bricolage Grotesque', sans-serif; color: var(--navy); text-decoration: none; background: var(--yellow);
  box-shadow: 0 5px 0 var(--yellow-d); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background-color 160ms ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-d); }
.btn.big { min-height: 60px; font-size: 22px; padding: 0 30px; }
.btn.soft { background: #fff; box-shadow: inset 0 0 0 2px #C9D3E6; }
.btn.soft:active { transform: scale(0.97); box-shadow: inset 0 0 0 2px #C9D3E6; }
.btn.navy { background: var(--navy); color: #fff; box-shadow: 0 5px 0 #000; }
.btn.small { min-height: 40px; font-size: 15px; padding: 0 14px; border-radius: 12px; box-shadow: 0 3px 0 var(--yellow-d); }
.btn.small.soft { box-shadow: inset 0 0 0 2px #C9D3E6; }
.btn.danger { background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px #F3B8A6; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
.link { background: none; border: 0; padding: 6px 2px; font: 800 16px 'Nunito Sans', sans-serif; color: var(--blue-ink); cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #FFD666; }
  .btn.soft:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
  .btn.navy:hover { background: #1F3260; }
}

.card { background: #fff; border-radius: 28px; padding: 28px; box-shadow: 0 1px 0 var(--line), 0 20px 40px rgba(20, 33, 61, 0.08); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 10px 16px; border: 2px solid #D5DCEA; border-radius: 14px; background: #fff; color: var(--navy);
  font: 700 18px 'Nunito Sans', sans-serif; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(36, 73, 184, 0.18); }
.err { color: var(--red); font-weight: 800; min-height: 1.5em; margin: 0; }
.ok-msg { color: #1E7A3E; font-weight: 800; }

.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: var(--navy); flex: none; }

.rise { animation: rise 520ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.shake { animation: shake 240ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .rise, .shake { animation: none; } .btn:active { transform: none; } }

.demo-strip { background: #FFF6DB; border-bottom: 1px solid #F1D68E; text-align: center; padding: 8px 16px; font-size: 15px; font-weight: 700; }
