/* Jadimsky · Brand Book 2026
   Base común de la web y del panel: tipografías, colores y componentes de la marca.
   Fuentes: Branding2026 (secciones Color, Tipografía, UI). Móvil primero. */

/* ---------- Tipografías ----------
   Inter desde Google Fonts (como en la web actual). Raleway solo en el wordmark (logo). */
:root {
  /* Color · paleta principal y de apoyo (guía § Color) */
  --bg: #F9F9F9;           /* 60 % · aire / fondo */
  --surface: #FFFFFF;      /* superficies y tarjetas */
  --ink: #1A1C1E;          /* 30 % · tinta / CTAs oscuros */
  --text: #2D2D2D;         /* cuerpo de texto */
  --dim: #6B6B66;          /* secundario / etiquetas tenues */
  --gold: #B59A5D;         /* 10 % · acento / acción */
  --gold-soft: #F3EEE0;    /* apoyo · avisos y fondos suaves */
  --line: #E3E0D8;         /* filetes */
  --dark: #1E2022;         /* secciones oscuras */
  --border: rgba(26, 28, 30, .1);
  --error: #A3412F;        /* errores (guía UI) */

  --font: 'Inter', Arial, sans-serif;

  --gutter: 20px;
  --radius: 2px;
  --tap: 48px;
  --shadow-btn: 0 10px 30px rgba(181, 154, 93, .25);
  --shadow-card: 0 30px 60px -15px rgba(0, 0, 0, .05);
  --shadow-lift: 0 18px 40px rgba(26, 28, 30, .08);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; color: var(--ink); margin: 0 0 .4em; line-height: 1.05; }
h1 { font-size: clamp(34px, 7vw, 60px); letter-spacing: -2px; }
h2 { font-size: clamp(28px, 4.5vw, 45px); letter-spacing: -1.5px; }
h3 { font-size: clamp(22px, 3vw, 26px); font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
h4 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(17px, 2.2vw, 19px); font-weight: 300; line-height: 1.6; max-width: 36em; }
.muted { color: var(--dim); }
.small { font-size: 14px; line-height: 1.55; }

/* Etiqueta · Inter 600 · mayúsculas · tracking 3 px · oro (guía Tipografía) */
.label {
  font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); line-height: 1.4;
}

/* Numeración editorial */
.num { display: flex; align-items: center; gap: 14px; }
.num b { font-family: var(--font); font-weight: 800; font-size: 22px; line-height: 1; color: var(--gold); letter-spacing: -1px; }
.num .label { line-height: 1; }
.num::after { content: ''; flex: 0 0 48px; height: 1px; background: var(--gold); order: 1; }
.num .label { order: 2; }

/* Cita */
.quote { font-family: var(--font); font-weight: 300; font-style: italic; font-size: clamp(22px, 3.5vw, 28px); line-height: 1.35; color: var(--ink); margin: 0; }
.quote-mark { font-family: var(--font); color: var(--gold); font-size: 56px; font-weight: 800; line-height: .6; display: block; }

/* ---------- Botones (guía UI · radius 2 px, primario en oro) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 16px 36px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; font-family: var(--font); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--primary { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(26, 28, 30, .25); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.btn--light:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.btn--ghost.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost.btn--light:hover { background: #fff; color: var(--ink); }
.btn--small { min-height: 40px; padding: 10px 20px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--danger { background: transparent; color: var(--error); border-color: var(--error); }
.btn--danger:hover { background: var(--error); color: #fff; border-color: var(--error); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--dim); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], select, textarea {
  width: 100%; min-height: var(--tap); padding: 14px 16px; border: 1px solid rgba(26, 28, 30, .2); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-family: var(--font); font-size: 16px; font-weight: 300;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 5px 15px rgba(0, 0, 0, .05); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; min-height: var(--tap); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
input.code { font-family: var(--font); font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 400; }

/* Formulario por pasos */
.steps-progress { height: 3px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin: 10px 0 24px; }
.steps-progress span { display: block; height: 100%; background: var(--gold); }
.w-25 { width: 25%; } .w-50 { width: 50%; } .w-75 { width: 75%; } .w-100 { width: 100%; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 60px; padding: 16px 20px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-family: var(--font); font-size: 16px; font-weight: 300; text-align: left; cursor: pointer;
}
.option::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--dim); flex: none; }
.option:hover, .option[aria-pressed=true] { border-color: var(--ink); }
.option[aria-pressed=true]::after { background: var(--gold); box-shadow: inset 0 0 0 3px var(--surface); }

/* ---------- Avisos ---------- */
.notice { padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--surface); margin-bottom: 20px; font-size: 15px; }
.notice--error { border-color: var(--error); color: var(--error); }
.notice--ok { border-color: var(--gold); }
.notice--aviso { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- Tarjetas y tablas ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .card { padding: 32px; } }
.card--stone { background: var(--bg); border-color: var(--border); box-shadow: none; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); padding: 0 12px 12px; border-bottom: 1px solid var(--border); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius); font-size: 12px; letter-spacing: .06em; background: var(--gold-soft); color: var(--text); white-space: nowrap; }
.tag--ok { background: #E8EEE4; color: var(--ink); }
.tag--off { background: #F5E4E0; color: var(--error); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
