/* =================================================================
   REDESIGN — Lista prioritaria Kit Digital
   Estilo: minimalista, blanco y negro, tonos de gris.
   Sin degradados, sin colores llamativos.
   Editable: variables en :root controlan color y espaciado.
   ================================================================= */

:root {
  --black: #111111;
  --ink: #1a1a1a;
  --gray-900: #2b2b2b;
  --gray-700: #555555;
  --gray-500: #767676;      /* contraste AA sobre blanco */
  --gray-300: #cfcfcf;
  --gray-200: #e2e2e2;
  --gray-100: #f2f2f2;
  --gray-50:  #f8f8f8;
  --white: #ffffff;

  --error: #8a1f1f;          /* rojo oscuro, alto contraste */
  --error-bg: #f7ecec;

  --border: #d4d4d4;
  --border-strong: #111111;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);

  --maxw: 1120px;
  --space: 24px;

  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gray-700); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space); }

/* -------- Enlace de salto -------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------- Cabecera -------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.logo { text-decoration: none; display: inline-flex; align-items: center; }
.logo-img { display: block; height: 32px; width: auto; }

/* -------- Layout principal -------- */
main { padding-block: clamp(40px, 7vw, 88px); }
.layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* -------- Columna de información -------- */
.eyebrow {
  margin: 0 0 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-700);
  display: inline-block;
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--black);
  text-wrap: balance;
}
.lead {
  margin: 0 0 32px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gray-700);
  max-width: 46ch;
  text-wrap: pretty;
}
.benefits { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.benefits li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.benefit-mark {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border: 1.5px solid var(--black);
  border-radius: 3px;
  position: relative;
}
.benefit-mark::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--black);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.limited-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--gray-700);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: var(--radius);
  background: var(--gray-50);
}
.limited-note .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--black); flex: none;
}

/* -------- Tarjeta del formulario -------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.card-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--black); letter-spacing: -.01em; }
.card-sub { margin: 0 0 24px; font-size: 15px; color: var(--gray-700); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.req { color: var(--gray-700); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

input:hover, select:hover, textarea:hover { border-color: var(--gray-500); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17,17,17,.14);
}

/* Campo con error */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: var(--error-bg);
}
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(138,31,31,.18);
}

.hint { margin: 0; font-size: 13px; color: var(--gray-500); }
.counter { text-align: right; }

.error {
  margin: 0;
  font-size: 13px;
  color: var(--error);
  font-weight: 600;
  min-height: 0;
  display: none;
}
.field.has-error .error { display: flex; align-items: center; gap: 6px; }
/* No depender solo del color: icono textual */
.field.has-error .error::before { content: "⚠"; font-weight: 700; }

/* -------- Checkboxes -------- */
.field-check { gap: 8px; }
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 400;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
}
.check input[type="checkbox"] {
  appearance: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid var(--gray-700);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  flex: none;
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}
.check input[type="checkbox"]:checked {
  background: var(--black);
  border-color: var(--black);
}
.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,17,17,.2);
}
.field.has-error .check input[type="checkbox"] { border-color: var(--error); }

/* -------- Botón -------- */
.btn {
  position: relative;
  margin-top: 4px;
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--gray-900); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(17,17,17,.28); }
.btn:disabled { cursor: not-allowed; opacity: .75; }

.btn-spinner { display: none; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading .btn-spinner {
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.disclaimer { margin: 4px 0 0; font-size: 13px; color: var(--gray-500); text-align: center; text-wrap: pretty; }

/* -------- Estado del envío -------- */
.form-status {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0;
  border: 0;
}
.form-status.is-success,
.form-status.is-error {
  padding: 14px 16px;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-status.is-success {
  color: var(--black);
  background: var(--gray-100);
  border: 1px solid var(--border-strong);
}
.form-status.is-error {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error);
}
.form-status.is-success::before { content: "✓"; font-weight: 700; }
.form-status.is-error::before { content: "⚠"; font-weight: 700; }

/* -------- Honeypot (invisible pero accesible) -------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* -------- Pie de página -------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--white);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
}
.footer-brand { margin: 0; font-weight: 700; letter-spacing: .2em; font-size: 14px; text-transform: uppercase; }
.footer-logo { display: block; height: 26px; width: auto; }
.footer-kit { display: block; width: 100%; max-width: 460px; height: auto; margin-top: 4px; }
.kit-band { border-top: 1px solid var(--border); padding: clamp(32px, 5vw, 52px) var(--space); display: flex; justify-content: center; margin-top: clamp(48px, 8vw, 96px); }
.kit-band-logo { display: block; width: 100%; max-width: 1100px; height: auto; }
.site-footer { margin-top: 0 !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { font-size: 14px; color: var(--gray-700); text-decoration: none; }
.footer-links a:hover { color: var(--black); text-decoration: underline; }
.footer-legal { margin: 0; width: 100%; font-size: 12.5px; color: var(--gray-500); }

/* -------- Páginas legales -------- */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal .legal-inner { max-width: 760px; }
.legal .back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; color: var(--gray-700); text-decoration: none; }
.legal .back-link:hover { color: var(--black); text-decoration: underline; }
.legal h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.legal .updated { margin: 0 0 32px; font-size: 14px; color: var(--gray-500); }
.legal h2 { margin: 40px 0 12px; font-size: 20px; color: var(--black); letter-spacing: -.01em; }
.legal h3 { margin: 24px 0 8px; font-size: 16px; color: var(--black); }
.legal p, .legal li { color: var(--gray-900); font-size: 16px; text-wrap: pretty; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0; }
.legal .placeholder { background: var(--gray-100); border: 1px dashed var(--gray-300); border-radius: 4px; padding: 1px 6px; font-family: monospace; font-size: 13.5px; color: var(--gray-700); }

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
  /* En móvil: información primero, formulario después (ya es el orden del DOM) */
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-link { padding: 7px 11px; font-size: 13px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* -------- Movimiento reducido -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
