/* ==========================================================================
   Austral Medical SpA — hoja de estilos compartida
   Usada por index.html, tecnovigilancia.html, gracias-tecnovigilancia.html, 404.html
   Mobile-first. Sin frameworks.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Identidad (no cambiar nombres: otras páginas dependen de ellos) */
  --blue: #185FA5;
  --blue-light: #5ba3e0;
  --blue-pale: #E6F1FB;
  --dark: #1a2433;
  --gray: #6b7a8d;
  --gray-light: #f4f6f9;
  --border: #dde3ec;
  --white: #fff;

  /* Complementarios */
  --blue-dark: #124a82;          /* hover de botones */
  --blue-border: #b5d4f4;
  --dark-2: #222f42;             /* superficies sobre fondo oscuro */
  --dark-line: #2e4a65;
  --text: var(--dark);
  --text-muted: #56657a;         /* gris legible (AA sobre blanco y gray-light) */
  --text-on-dark: #c3d2e1;
  --text-on-dark-muted: #a0b4c8;
  --field-border: #8d9aab;       /* borde de campos: contraste >= 3:1 */
  --red: #b42318;
  --red-pale: #fdf0ee;
  --amber: #9a6700;
  --amber-border: #e8b44c;
  --amber-pale: #fdf6e7;
  --green: #3b6d11;
  --green-pale: #eaf3de;
  --focus: var(--blue);

  /* Tipografía */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13px — etiquetas pequeñas */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-2xl: clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem);

  /* Espaciado (escala de 4/8) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --gutter: 16px;
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --nav-h: 64px;
  --shadow-sm: 0 1px 2px rgba(26, 36, 51, .06);
  --shadow-md: 0 6px 20px rgba(26, 36, 51, .08);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --nav-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; color: var(--dark); }
h1 { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--blue); }

p { max-width: 68ch; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---------- Utilidades ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4); top: var(--s-2);
  z-index: 200;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  color: var(--blue);
  font-weight: 500;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform .15s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s-4);
}

.lead { font-size: var(--fs-md); color: var(--text-muted); line-height: 1.7; }
.muted { color: var(--text-muted); }

/* ---------- Botones ---------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue-pale); color: var(--blue-dark); }
.btn-primary:active, .btn-secondary:active { transform: translateY(1px); }
.btn-primary[disabled], .btn-secondary[disabled] { opacity: .65; cursor: progress; }
.btn-primary svg, .btn-secondary svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn-primary:hover svg, .btn-secondary:hover svg { transform: translateX(3px); }
.btn-block { width: 100%; }

/* ---------- Navegación (compartida) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-line);
  --focus: var(--blue-light);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  max-width: calc(var(--container) + 2 * var(--gutter));
  min-height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav-logo { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.nav-logo svg { width: 196px; height: auto; }
@media (min-width: 1024px) { .nav-logo svg { width: 220px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--blue-light); }
.nav-toggle svg { width: 22px; height: 22px; overflow: visible; }
.nav-toggle svg path { transform-box: view-box; transform-origin: 12px 12px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-l1 { transform: rotate(45deg) translateY(5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-l2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-l3 { transform: rotate(-45deg) translateY(-5px); }

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  padding: var(--s-2) var(--gutter) var(--s-5);
  background: var(--dark);
  border-bottom: 1px solid var(--dark-line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
}
.nav-links.is-open { display: flex; }
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s-2);
  color: var(--text-on-dark);
  font-size: var(--fs-base);
  text-decoration: none;
  border-bottom: 1px solid var(--dark-2);
  transition: color .2s var(--ease);
}
.nav-links li:last-child a { border-bottom: 0; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue-light); }

.nav-cta {
  display: none;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.nav-cta:hover { background: #1f6fbf; color: var(--white); }

@media (min-width: 560px) {
  .nav-cta { display: inline-flex; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--s-1);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    margin-right: var(--s-3);
  }
  .nav-links a {
    min-height: 40px;
    padding: 0 var(--s-3);
    font-size: var(--fs-sm);
    border: 0;
    color: var(--text-on-dark-muted);
    border-radius: 6px;
    position: relative;
  }
  .nav-links a:hover { color: var(--white); }
  .nav-links a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--blue-light); border-radius: 0; }
  .nav-logo { margin-right: auto; }
}

/* ---------- Encabezado de páginas interiores ---------- */
.page-hero {
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
  padding-block: var(--s-7) var(--s-6);
}
.page-hero h1 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.page-hero p { color: var(--text-muted); font-size: var(--fs-md); }
@media (min-width: 1024px) {
  .page-hero { padding-block: var(--s-8) var(--s-7); }
  .page-hero h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
}

/* ---------- Secciones genéricas ---------- */
.section { padding-block: var(--s-8); border-bottom: 1px solid var(--border); }
.section--alt { background: var(--gray-light); }
.section-head { margin-bottom: var(--s-6); max-width: 720px; }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--text-muted); font-size: var(--fs-md); }
@media (min-width: 1024px) { .section { padding-block: var(--s-9); } }

/* Contenido de texto largo (páginas interiores) */
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose ol { list-style: decimal; padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s-2); }

/* ---------- Avisos ---------- */
.notice {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  background: var(--blue-pale);
  border: 1px solid var(--blue-border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  color: var(--dark);
  font-size: var(--fs-base);
}
.notice > svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.notice strong { font-weight: 700; }
.notice p { max-width: none; }
.notice p + p { margin-top: var(--s-2); }
.notice--warning {
  background: var(--amber-pale);
  border-color: var(--amber-border);
  border-left-color: var(--amber);
}
.notice--warning > svg { color: var(--amber); }
.notice--danger {
  background: var(--red-pale);
  border-color: #f1b8b0;
  border-left-color: var(--red);
}
.notice--danger > svg { color: var(--red); }

/* ---------- Formularios (genéricos) ---------- */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }

label,
.label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}
.req { color: var(--red); margin-left: 2px; }
.optional { font-weight: 400; color: var(--text-muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-size: var(--fs-base);       /* 16px evita zoom en iOS */
  line-height: 1.4;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: #7b8899; opacity: 1; }
select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23185FA5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  cursor: pointer;
}
textarea { min-height: 140px; resize: vertical; }

input:hover, select:hover, textarea:hover { border-color: var(--dark); }
input:focus, select:focus, textarea:focus { outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, .28);
}

[aria-invalid="true"] {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 1px var(--red);
}
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .25) !important; }

.field-hint { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--red);
  line-height: 1.45;
}
.field-error:empty { display: none; }
.field-error svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }

fieldset { border: 0; min-width: 0; display: grid; gap: var(--s-3); }
legend { font-size: var(--fs-sm); font-weight: 500; color: var(--dark); margin-bottom: var(--s-2); padding: 0; }
.fieldset-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  background: var(--white);
}
.fieldset-box > legend {
  padding: 0 var(--s-2);
  margin-left: calc(-1 * var(--s-2));
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.choice-group { display: grid; gap: var(--s-2); }
.choice-group--inline { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice-group label,
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 0.7rem 0.9rem;
  min-height: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 400;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice-group label:hover, .choice:hover { border-color: var(--field-border); }
.choice-group label:has(input:checked), .choice:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.choice-group input[type="radio"],
.choice-group input[type="checkbox"],
.choice input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}
.choice-group[aria-invalid="true"] { box-shadow: none; border: 0 !important; }
.choice-group[aria-invalid="true"] label { border-color: var(--red); }

.form-error-summary {
  padding: var(--s-4) var(--s-5);
  background: var(--red-pale);
  border: 1px solid #f1b8b0;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  color: var(--dark);
}
.form-error-summary:focus-visible { outline-color: var(--red); }
.form-error-summary h2,
.form-error-summary .form-error-summary-title {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--red);
  margin-bottom: var(--s-2);
}
.form-error-summary ul { list-style: disc; padding-left: 1.25rem; }
.form-error-summary a { color: var(--red); font-weight: 500; }

.form-note { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; max-width: none; }
.form-status { font-size: var(--fs-sm); max-width: none; }
.form-status:empty { margin-top: calc(-1 * var(--s-5)); }  /* sin hueco cuando está vacío; sigue en el árbol de accesibilidad */
.form-status.is-error {
  padding: var(--s-3) var(--s-4);
  background: var(--red-pale);
  border: 1px solid #f1b8b0;
  border-radius: var(--radius);
  color: var(--red);
  font-weight: 500;
}

.form-success { text-align: center; padding: var(--s-7) var(--s-4); }
.form-success:focus { outline: none; }
.form-success-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--s-4);
  display: flex; align-items: center; justify-content: center;
  background: var(--green-pale);
  border-radius: 50%;
  color: var(--green);
}
.form-success h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.form-success p { color: var(--text-muted); margin-inline: auto; }

/* ==========================================================================
   Página de inicio
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--border); }
.hero-inner {
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-8);
  align-items: center;
}
.hero-tag { margin-bottom: var(--s-5); }
.hero-title { margin-bottom: var(--s-5); max-width: 18ch; }
.hero-sub { font-size: var(--fs-md); color: var(--text-muted); line-height: 1.7; max-width: 52ch; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero-panel {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  isolation: isolate;
  --focus: var(--blue-light);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  color: var(--blue-light);
}
.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(26, 36, 51, .35) 0%, rgba(26, 36, 51, .92) 60%);
}
.hero-panel-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: var(--s-4);
}
.hero-lines { counter-reset: line; }
.hero-lines li { border-top: 1px solid rgba(91, 163, 224, .2); }
.hero-lines li:last-child { border-bottom: 1px solid rgba(91, 163, 224, .2); }
.hero-lines a {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding: 0.7rem 0;
  color: var(--white);
  text-decoration: none;
  font-size: var(--fs-base);
  transition: color .2s var(--ease), padding .2s var(--ease);
}
.hero-lines a::before {
  counter-increment: line;
  content: counter(line, decimal-leading-zero);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--blue-light);
  min-width: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.hero-lines a:hover { color: var(--blue-light); padding-left: 4px; }

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-8);
    padding-block: var(--s-9);
    min-height: 560px;
  }
  .hero-panel { padding: var(--s-7) var(--s-6); }
}

/* ---------- Franja de credibilidad ---------- */
.trust-strip { background: var(--gray-light); border-bottom: 1px solid var(--border); }
.trust-list {
  display: grid;
  gap: var(--s-3);
  padding-block: var(--s-5);
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--dark);
}
.trust-list svg { flex: none; width: 20px; height: 20px; color: var(--blue); }
.trust-list a { color: var(--dark); text-decoration: none; }
.trust-list a:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 768px) {
  .trust-list { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .trust-list li + li { padding-left: var(--s-6); border-left: 1px solid var(--border); }
}

/* ---------- Productos ---------- */
.products-grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 640px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.product-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow-md); }
.product-card:focus-within { border-color: var(--blue); }

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--s-4);
  background: var(--blue-pale);
  border-radius: 10px;
  color: var(--blue);
}
.icon-box svg { width: 26px; height: 26px; }

.product-head { display: flex; align-items: flex-start; justify-content: space-between; }
.product-num {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.product-title { font-size: var(--fs-lg); line-height: 1.25; margin-bottom: var(--s-2); }
.product-text { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; margin-bottom: var(--s-5); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: auto;
  min-height: 44px;
  align-self: flex-start;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--blue-dark); text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }

.product-card--cta {
  background: var(--gray-light);
  border-style: dashed;
  border-color: var(--field-border);
}
.product-card--cta .icon-box { background: var(--white); }

.products-note {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: none;
}
.products-note svg { flex: none; width: 20px; height: 20px; color: var(--blue); }

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  gap: var(--s-6);
}
.why-grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 640px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start; }
  .about-grid .section-head { position: sticky; top: calc(var(--nav-h) + var(--s-6)); margin-bottom: 0; }
}
.why-card {
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.why-title { font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 500; margin-bottom: var(--s-2); }
.why-text { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.why-card .link-arrow { margin-top: var(--s-3); }

/* ---------- ChileCompra ---------- */
.licit-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .licit-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; } }
.licit-grid h2 { margin-bottom: var(--s-4); }
.licit-text { color: var(--text-muted); font-size: var(--fs-md); margin-bottom: var(--s-5); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.5rem 0.9rem;
  background: var(--blue-pale);
  border: 1px solid var(--blue-border);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--blue);
}
.badge svg { width: 16px; height: 16px; }

.steps { display: grid; gap: var(--s-3); counter-reset: step; }
.step {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5);
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--blue-border);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.step-title { font-weight: 500; margin-bottom: 2px; }
.step-text { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }

/* ---------- Contacto ---------- */
.contact-section { border-bottom: 0; }
.contact-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.contact-aside {
  padding: var(--s-6) var(--s-5);
  background: var(--dark);
  color: var(--text-on-dark);
  --focus: var(--blue-light);
}
.contact-aside h2 { color: var(--white); margin-bottom: var(--s-4); }
.contact-aside .eyebrow { color: var(--blue-light); }
.contact-aside p { color: var(--text-on-dark); margin-bottom: var(--s-6); }
.contact-details { display: grid; gap: var(--s-5); margin-bottom: var(--s-6); }
.contact-details li { display: flex; gap: var(--s-3); align-items: flex-start; }
.contact-details svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--blue-light); }
.contact-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.contact-details a {
  color: var(--white);
  font-size: var(--fs-md);
  text-decoration: none;
  word-break: break-word;
}
.contact-details a:hover { text-decoration: underline; color: var(--white); }
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.6rem 0.9rem;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  color: var(--blue-light);
}
.contact-badge svg { width: 16px; height: 16px; }

.contact-main { padding: var(--s-6) var(--s-5); background: var(--gray-light); }
.form-required-note { font-size: var(--fs-xs); color: var(--text-muted); max-width: none; }

@media (min-width: 640px) {
  .contact-aside, .contact-main { padding: var(--s-7) var(--s-6); }
}
@media (min-width: 1024px) {
  .contact-aside, .contact-main { padding: var(--s-8) var(--s-7); }
}

/* ---------- Footer (compartido) ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer-inner {
  display: grid;
  gap: var(--s-5);
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--s-7) var(--gutter) var(--s-6);
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { font-family: var(--font-serif); font-size: var(--fs-md); font-weight: 600; color: var(--dark); }
.footer-contact, .footer-links { display: grid; gap: var(--s-1); }
.footer-contact a, .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-contact a:hover, .footer-links a:hover { color: var(--blue); text-decoration: underline; }
.footer-legal {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--s-4) var(--gutter) var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
}
