/* =========================================================
   SIVP – landing page styles
   Mobile first: base rules target 375 px, media queries add
   the tablet (40em / 640px) and desktop (64em / 1024px) layouts.
   ========================================================= */

:root {
  /* Brand palette */
  --navy: #163967;        /* Regal Navy: headings, text, hero, dark bands */
  --blue: #266BB8;        /* Ocean Deep: links and labels on white */
  --sky: #5C9BDA;         /* Blue Grey: arrows and lines on navy */
  --green: #277800;       /* Green: status only ("Cliente actual", form sent) */
  --yellow: #E3CA16;      /* Golden Glow: buttons and highlights */
  --red: #D32027;         /* Flag Red: form errors only */
  --black: #130C09;       /* Pitch Black: legal footer */
  --white: #FFFFFF;

  /* Tints derived from the palette */
  --navy-deep: #0F2A4D;
  --yellow-hover: #EDD83F;
  --mist: #F2F7FC;                        /* alternate section background */
  --line: #DCE3EC;                        /* hairlines on white */
  --line-mist: #CCD7E4;                   /* hairlines on mist */
  --line-dark: rgba(255, 255, 255, .18);  /* hairlines on navy */
  --field-border: #7A8DA8;
  --text: var(--navy);
  --text-muted: #48618A;
  --on-dark-muted: rgba(255, 255, 255, .78);

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 76rem;
  --gutter: 1rem;
  --header-h: 4rem;
  --radius: 2px;
}

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
}

@media (min-width: 64em) {
  :root { --gutter: 2rem; --header-h: 4.75rem; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.875rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
h4 { font-size: 1.125rem; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.hero-copy :focus-visible,
.section--navy :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible { outline-color: var(--yellow); }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Bracketed placeholder values filled from CONFIG (see script.js).
   The highlight disappears once a real value replaces the brackets. */
mark.placeholder {
  padding-inline: .125em;
  background: rgba(227, 202, 22, .3);
  border-radius: var(--radius);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */

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

.section { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--white); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.lead {
  margin-top: 1rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.section--navy .lead { color: var(--on-dark-muted); }

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 3px;
  margin-top: .63em; /* centred on the first line */
  background: var(--yellow);
}
.eyebrow--light { color: var(--white); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3rem;
  padding: .75rem 1.375rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-hover); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); }
.btn:disabled { opacity: .6; cursor: wait; }

.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: var(--white); color: var(--navy); }

.btn-lg { min-height: 3.5rem; padding-inline: 1.75rem; font-size: 1.125rem; }
.btn-sm { min-height: 2.75rem; padding: .5rem .875rem; font-size: 1rem; gap: .5rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.text-link:hover { color: var(--navy); }

/* ---------- 1. Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}
.brand img { width: 2.5rem; height: 2.5rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.375rem; font-weight: 600; letter-spacing: .06em; }
.brand-sub {
  display: none;
  margin-top: .3rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav ul { display: flex; gap: .25rem; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .875rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--blue); }

.header-cta { padding-inline: .875rem; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
html:not(.js) .menu-toggle { display: none; }

@media (max-width: 29.99em) {
  /* Header button reads "Cotizar"; screen readers still hear "por WhatsApp". */
  .hide-sm {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 63.99em) {
  /* Without JS the links wrap onto a second row. */
  .header-bar { flex-wrap: wrap; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav ul { flex-wrap: wrap; justify-content: space-between; }

  /* With JS they open as a panel under the header. */
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(22, 57, 103, .14);
  }
  .js .menu-open .site-nav { display: block; }
  .js .site-nav ul { display: block; max-width: var(--container); margin-inline: auto; padding: .25rem var(--gutter) .75rem; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a { min-height: 3.25rem; padding-inline: 0; font-size: 1.125rem; }
}

@media (min-width: 48em) {
  .brand-sub { display: block; }
}

@media (min-width: 64em) {
  .brand img { width: 2.75rem; height: 2.75rem; }
  .site-nav { margin-right: .5rem; }
  .menu-toggle { display: none; }
}

/* ---------- 2. Hero ---------- */

.hero {
  padding-top: clamp(3rem, 2rem + 5vw, 6rem);
  background:
    radial-gradient(70rem 36rem at 90% -10%, rgba(38, 107, 184, .5), transparent 70%),
    var(--navy);
  color: var(--white);
}

.hero-grid { display: grid; gap: 2.5rem; }

.hero-copy { max-width: 42rem; }

.hero h1 {
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero-lead {
  max-width: 36rem;
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero-actions .btn { flex: 1 1 100%; }

.hero-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  font-weight: 500;
}
.hero-note .icon { color: var(--yellow); }

/* Call-back form */
.callback {
  width: 100%;
  max-width: 34rem;
  padding: 1.5rem;
  background: var(--white);
  color: var(--text);
  border-top: 4px solid var(--yellow);
  box-shadow: 0 24px 48px rgba(9, 25, 48, .3);
}
.callback-title { font-size: 1.625rem; }
.callback-intro { margin-top: .375rem; color: var(--text-muted); line-height: 1.45; }

.field { margin-top: 1rem; }
.field label {
  display: block;
  margin-bottom: .375rem;
  font-size: .9375rem;
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: .625rem .875rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 1.0625rem;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23163967' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.25rem;
}
.field select:invalid { color: var(--text-muted); }
.field option { color: var(--text); }
.field input::placeholder { color: var(--text-muted); opacity: 1; }
.field input:focus,
.field select:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 0;
}

.callback .btn-block { margin-top: 1.5rem; }

.callback-hours {
  display: flex;
  gap: .625rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.callback-hours strong { font-weight: 600; color: var(--text); }
.callback-hours .icon { margin-top: .1rem; color: var(--blue); }

.form-status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-left: 3px solid;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.45;
}
.form-status:empty { display: none; }
.form-status.is-ok { border-color: var(--green); background: #EEF6EA; color: var(--green); }
.form-status.is-error { border-color: var(--red); background: #FCEDEE; color: var(--red); }

/* Team photo: half on navy, half on white */
.hero-photo-wrap {
  position: relative;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}
.hero-photo-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 50%;
  background: var(--white);
}
.hero-photo-wrap .container { position: relative; z-index: 1; }

.hero-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(38, 107, 184, .45), transparent 65%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 14px),
    var(--navy-deep);
  color: var(--white);
  font-weight: 500;
}
.photo-placeholder img { width: clamp(4.5rem, 3rem + 6vw, 8rem); }

@media (min-width: 30em) {
  .hero-actions .btn { flex: 0 1 auto; }
}

@media (min-width: 40em) {
  .callback { padding: 2rem; }
  .hero-photo { aspect-ratio: 21 / 9; }
}

@media (min-width: 64em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 26rem);
    align-items: center;
    gap: 4rem;
  }
  .hero-photo { aspect-ratio: 5 / 2; }
}

/* ---------- 3. Proof strip ---------- */

.stats { padding-top: clamp(2.5rem, 2rem + 3vw, 4rem); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.stats-grid li {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.stats-grid li:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.stats-grid li:nth-child(even) { padding-left: 1rem; }

.stat-figure {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat-figure span {
  font-size: .42em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--blue);
}
.stat-label {
  margin-top: .625rem;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (min-width: 64em) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid li,
  .stats-grid li:nth-child(odd),
  .stats-grid li:nth-child(even) { padding: 2rem 1.5rem; border-right: 1px solid var(--line); }
  .stats-grid li:first-child { padding-left: 0; }
  .stats-grid li:last-child { border-right: 0; }
}

/* ---------- 4. Servicios ---------- */

.service-group + .service-group { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }

.service-group-head { margin-bottom: 1.5rem; }
.service-group-head h3 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); }
.service-group-head p { max-width: 40rem; margin-top: .5rem; color: var(--text-muted); }

/* Grid of cells separated by 1px hairlines */
.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  transition: background-color .15s;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.card:hover { background: var(--mist); }
.card:hover::before { transform: scaleX(1); }

.card h4 { font-size: 1.0625rem; }

.card-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .375rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.card-link::after { content: ""; position: absolute; inset: 0; } /* whole card is the tap target */
.card-link .icon { transition: transform .15s; }
.card:hover .card-link .icon { transform: translateX(3px); }

.card--cta { background: var(--navy); color: var(--white); }
.card--cta:hover { background: var(--navy-deep); }
.card--cta .card-link { color: var(--yellow); }
.card--cta .card-link:focus-visible { outline-color: var(--yellow); }

@media (min-width: 40em) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .card {
    flex-direction: column;
    align-items: flex-start;
    min-height: 10rem;
    padding: 1.5rem;
  }
  .card h4 { font-size: 1.125rem; }
  .card-link { margin-bottom: -.5rem; }
}

@media (min-width: 64em) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards--3 .card { min-height: 11rem; }
  .cards--3 .card h4 { font-size: 1.3125rem; }
}

/* ---------- 5. Sectores ---------- */

.sectors {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.sector {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.sector-icon { width: 2rem; height: 2rem; color: var(--yellow); }
.sector-arrow { color: var(--sky); transition: transform .15s, color .15s; }
.sector:hover { background: var(--yellow); color: var(--navy); }
.sector:hover .sector-icon,
.sector:hover .sector-arrow { color: var(--navy); }
.sector:hover .sector-arrow { transform: translateX(3px); }
.sector:focus-visible { outline-offset: -3px; }

@media (min-width: 64em) {
  .sectors { grid-template-columns: repeat(5, 1fr); }
  .sector {
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    align-items: end;
    min-height: 13rem;
    padding: 1.5rem;
    font-size: 1.1875rem;
  }
  .sector-icon { grid-column: 1 / -1; align-self: start; width: 2.25rem; height: 2.25rem; }
}

/* ---------- 6. Cómo trabajamos ---------- */

.steps { display: grid; gap: 2.25rem 1.5rem; }

/* Mobile: number beside the text. Tablet up: number above it. */
.step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: .75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}
.step--free { border-top: 4px solid var(--yellow); padding-top: calc(1.25rem - 2px); }

.step-num {
  grid-row: span 2;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.step h3 { padding-top: .25rem; }
.step h3 .tag { margin-left: .25rem; }
.step p { margin-top: .5rem; color: var(--text-muted); }

.section-cta { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }

@media (min-width: 40em) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { display: block; }
  .step-num { display: block; font-size: 2.5rem; }
  .step h3 { margin-top: 1rem; padding-top: 0; }
}

@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.tag {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: .15em;
}
.tag--yellow { background: var(--yellow); color: var(--navy); }
.tag--green { background: var(--green); color: var(--white); }

/* ---------- 7. Han confiado en nosotros ---------- */

.clients-layout { display: grid; gap: 2.5rem; }

.testimonial {
  align-self: start;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-top: 4px solid var(--yellow);
}
.testimonial blockquote {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  height: 2.75rem;
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--blue);
}
.testimonial figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.client-groups { columns: 2 16rem; column-gap: 2.5rem; }
.client-group { break-inside: avoid; margin-bottom: 2rem; }
.client-group h3 {
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--navy);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.client-group li {
  padding-block: .625rem;
  border-bottom: 1px solid var(--line-mist);
  font-weight: 500;
  line-height: 1.35;
}
.client-group li .tag { margin-left: .375rem; }

@media (min-width: 40em) {
  .testimonial { padding: 2.5rem; }
}

@media (min-width: 64em) {
  .clients-layout { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .testimonial { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- 8. Empresa autorizada ---------- */

.auth-grid { display: grid; gap: 2.5rem; }
.auth-grid .section-head { margin-bottom: 0; }

.licenses { display: grid; gap: 1rem; }
.license {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .04);
}
.license-icon { width: 2.5rem; height: 2.5rem; color: var(--yellow); }
.license-org {
  font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .02em;
}
.license-num { margin-top: .25rem; font-size: 1.25rem; font-weight: 600; color: var(--yellow); }
.license-body { margin-top: .75rem; font-size: .9375rem; line-height: 1.5; color: var(--on-dark-muted); }

.registries-title {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .875rem; }
.chips li {
  padding: .375rem .75rem;
  border: 1px solid var(--line-dark);
  font-size: .9375rem;
  font-weight: 500;
}
.rif { margin-top: 1.5rem; font-weight: 600; letter-spacing: .04em; }

@media (min-width: 64em) {
  .auth-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head licenses"
      "registries licenses";
    gap: 3rem 5rem;
  }
  .auth-grid .section-head { grid-area: head; }
  .licenses { grid-area: licenses; align-self: center; }
  .registries { grid-area: registries; }
}

/* ---------- 9. Nosotros ---------- */

.about-grid { display: grid; gap: 3rem; }

.legal-rep {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--yellow);
}
.legal-rep strong { font-size: 1.125rem; font-weight: 600; }
.legal-rep span { color: var(--text-muted); }
.legal-name { margin-top: 1.5rem; font-size: .9375rem; color: var(--text-muted); }

.about-details { border-top: 1px solid var(--line); }
.about-item {
  display: grid;
  gap: .5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.about-item h3 {
  padding-top: .3rem;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.about-item p { font-size: 1.1875rem; line-height: 1.5; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem 1.5rem; }
.values li { display: flex; align-items: center; gap: .625rem; font-weight: 600; }
.values li::before { content: ""; flex: none; width: .5rem; height: .5rem; background: var(--yellow); }

@media (min-width: 40em) {
  .about-item { grid-template-columns: 8rem 1fr; gap: 1.5rem; }
}

@media (min-width: 64em) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: 5rem; }
}

/* ---------- 10. Preguntas frecuentes ---------- */

.faq-grid { display: grid; }
.faq-more { margin-top: 1.5rem; color: var(--text-muted); }

.faq { border-top: 1px solid var(--line-mist); }
.faq details { border-bottom: 1px solid var(--line-mist); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding-block: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary .icon { color: var(--blue); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq-answer { max-width: 42rem; padding-bottom: 1.25rem; color: var(--text-muted); }

@media (min-width: 64em) {
  .faq-grid { grid-template-columns: 4fr 7fr; gap: 5rem; align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}

/* ---------- 11. Cierre y contacto ---------- */

.closing {
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background:
    radial-gradient(60rem 30rem at 10% 110%, rgba(38, 107, 184, .45), transparent 70%),
    var(--navy);
  color: var(--white);
}

.closing-title {
  max-width: 14ch;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.doors { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }

.door {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .375rem 1rem;
  height: 100%;
  padding: 1.5rem 3.5rem 1.5rem 1.5rem;
  border: 1px solid var(--line-dark);
  color: var(--white);
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.door-icon { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--yellow); }
.door-title { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.door-text { font-size: .9375rem; line-height: 1.45; color: var(--on-dark-muted); }
.door-arrow { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--sky); transition: transform .15s; }
.door:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.door:hover .door-arrow { transform: translateX(3px); }

.door--primary { border-color: var(--yellow); background: var(--yellow); color: var(--navy); }
.door--primary:hover { border-color: var(--yellow-hover); background: var(--yellow-hover); }
.door--primary .door-icon,
.door--primary .door-arrow,
.door--primary .door-text { color: var(--navy); }
.door--primary:focus-visible { outline-color: var(--white); }

.contact-list {
  display: grid;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
}
.contact-list > div { padding-block: 1.125rem; border-bottom: 1px solid var(--line-dark); }
.contact-list dt {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.contact-list dt .icon { width: 1rem; height: 1rem; color: var(--yellow); }
.contact-list dd { margin-top: .375rem; font-weight: 500; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -.5rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: .2em;
}
.contact-list a:hover { color: var(--yellow); }

@media (min-width: 40em) {
  .contact-list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
}

@media (min-width: 64em) {
  .doors { grid-template-columns: repeat(3, 1fr); }
  .contact-list { grid-template-columns: repeat(5, auto); justify-content: space-between; padding-top: 1rem; }
  .contact-list > div { border-bottom: 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem 2rem;
  background: var(--black);
  color: rgba(255, 255, 255, .72);
  font-size: .9375rem;
  line-height: 1.5;
}

.footer-grid { display: grid; gap: 2rem; }

.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-brand img { width: 3rem; height: 3rem; }
.footer-brand p + p { margin-top: .25rem; }
.footer-legal { font-weight: 600; color: var(--white); }

.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--yellow); }

.footer-copy {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .875rem;
}

@media (min-width: 40em) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand,
  .footer-copy { grid-column: 1 / -1; }
}

@media (min-width: 64em) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Motion ---------- */

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