/* Coberio Broker — sistema visual
   Fuente: Home.dc.html (Claude Design). Los tokens replican las props del
   diseño ya resueltas a sus valores por defecto:
     headingFont = Newsreader · paperTone = Hueso · bodySize = 17px */

:root {
  --paper: #FAF8F5;
  --white: #FFFFFF;
  --ink: #1A1D21;
  --navy: #12335C;
  --navy-dark: #0D2848;
  --line: #E4E1DC;
  --muted: #5C6169;
  --soft: #6E7379;
  --accent: #1A5A8C;
  --text: #3A3F45;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --body: 17px;

  --measure: 1180px;
  --gutter: 40px;
}

/* ---------- Reset y base ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent); }

table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
::selection { background: #DCE4EE; }

/* ---------- Utilidades de composición ---------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Rótulo de sección: versalitas espaciadas, sin peso visual */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  padding: 12px 18px;
  border: 1px solid var(--navy);
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
}

/* ---------- Botones ---------- */

.btn {
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

.btn--outline {
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 10px 18px;
  font-size: 14.5px;
}
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--solid {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #fff;
  padding: 14px 26px;
  font-size: 15.5px;
}
.btn--solid:hover { background: var(--navy-dark); color: #fff; }

/* ---------- Cabecera ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.brand__name {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--navy);
}
.brand__meta {
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 320px;
  min-width: 0;
  font-size: 14.5px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
}
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Secciones aún no publicadas: presentes, sin enlace */
.site-nav__pending { color: var(--soft); }

.site-header__aside {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--soft);
}
.lang__current { color: var(--ink); font-weight: 500; }

/* ---------- Franja de credenciales bajo la cabecera ----------
   Corresponde a la prop `credentialsUnderHeader` (por defecto: false).
   Para mostrarla, añade la clase `is-visible` al elemento. */

.creds-strip {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.creds-strip.is-visible { display: block; }
.creds-strip p {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Portada ---------- */

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  padding-top: 92px;
  padding-bottom: 84px;
}
.hero .eyebrow {
  display: block;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 21ch;
}
.hero__lede {
  margin-top: 30px;
  max-width: 66ch;
  font-size: 19px;
  line-height: 1.62;
  color: var(--text);
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Tres líneas de colaboración ---------- */

.lines__inner {
  padding-top: 72px;
  padding-bottom: 76px;
}
.lines__grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
}
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}
.card p { color: var(--text); max-width: 38ch; }
/* El enlace queda alineado al pie de la tarjeta, sea cual sea el alto del texto */
.card__action {
  margin-top: auto;
  padding-top: 18px;
  max-width: none;
}
.card__action a { font-size: 15px; }

/* ---------- Registro y credenciales ---------- */

.creds {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.creds__inner {
  padding-top: 44px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.creds__inner .eyebrow { padding-top: 3px; }
.creds__body {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 88ch;
}
.creds__body strong { color: var(--ink); font-weight: 500; }

/* ---------- Por qué no somos su competencia ---------- */

.stance__inner {
  padding-top: 80px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: start;
}
.stance__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.stance__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 70ch;
  color: var(--text);
}
.stance__pull {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
}
.stance__note { font-size: 15px; color: var(--muted); }

/* ---------- Pie ---------- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.site-footer__cols {
  padding-top: 56px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__col--brand { gap: 10px; }
.site-footer__brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
}
.site-footer__col--brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.site-footer__heading {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
}
.site-footer__list a {
  color: var(--ink);
  text-decoration: none;
}
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__list li.is-pending { color: var(--soft); }

.site-footer__contact p { font-size: 14.5px; color: var(--text); line-height: 1.7; }

.site-footer__legal { border-top: 1px solid var(--line); }
.site-footer__legal p {
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.site-footer__policies { border-top: 1px solid var(--line); }
.site-footer__policies-inner {
  padding-top: 20px;
  padding-bottom: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--soft);
}

/* ==========================================================================
   Página de Corredurías
   ========================================================================== */

/* Página actual en el menú */
.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}
.site-nav a[aria-current="page"]:hover { text-decoration: none; }

/* Portada de página interior: algo más contenida que la de la home */
.hero--page .hero__inner { padding-top: 80px; padding-bottom: 72px; }
.hero--page .eyebrow { margin-bottom: 26px; }
.hero--page .hero__title { max-width: 24ch; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.13; }

.hero__stack {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 70ch;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text);
}
.hero__stack .is-emphatic { color: var(--ink); }

/* ---------- Los tres peldaños ---------- */

.steps__inner {
  padding-top: 72px;
  padding-bottom: 40px;
}

.steps__head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.steps__head p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 56ch;
}

.step {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}
.step:first-of-type { margin-top: 40px; }

.step__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 30px 34px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.step__id {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.step__num {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--navy);
}
.step__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
}
.step__badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 10px;
  background: var(--white);
  white-space: nowrap;
}

/* Ficha de peldaño: los cuatro campos siempre en el mismo orden */
.step__fields {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
}
.step__fields dt {
  padding: 22px 24px 22px 34px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.step__fields dd {
  padding: 22px 34px 22px 0;
  border-bottom: 1px solid var(--line);
  max-width: 74ch;
  color: var(--text);
}
.step__fields dt:last-of-type,
.step__fields dd:last-of-type { border-bottom: 0; }
.step__fields strong { color: var(--ink); font-weight: 500; }

/* ---------- Quién hace qué ---------- */

.roles__inner {
  padding-top: 56px;
  padding-bottom: 80px;
}
.roles__intro {
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.roles__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.roles__intro p { color: var(--text); }
.roles__cite {
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant: small-caps;
}

/* El envoltorio permite desplazar la tabla en pantallas estrechas
   sin que la página entera se desplace en horizontal */
.roles__table {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  overflow-x: auto;
}
.roles__table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.roles__table thead tr { background: var(--paper); }
.roles__table th,
.roles__table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.roles__table thead th:first-child {
  width: 38%;
  padding: 20px 24px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.roles__table thead th + th {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-left: 1px solid var(--line);
}
.roles__table tbody { font-size: 15.5px; }
.roles__table tbody th {
  font-weight: 400;
  padding: 16px 24px;
  color: var(--text);
}
.roles__table tbody td {
  padding: 16px 24px;
  border-left: 1px solid var(--line);
  color: var(--text);
}
.roles__table tbody tr:last-child th,
.roles__table tbody tr:last-child td { border-bottom: 0; }
/* Parte que asume cada correduría */
.roles__table .is-you { color: var(--navy); font-weight: 500; }
.roles__table .is-us { color: var(--muted); }

.roles__note {
  margin-top: 20px;
  max-width: 82ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}
/* Descarga aún no publicada: se anuncia sin enlazar a un 404 */
.roles__note .is-pending { color: var(--soft); }

/* ---------- Banda de cierre ---------- */

.cta-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band__inner {
  padding-top: 60px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.cta-band__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 62ch;
}
.cta-band__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
}
.cta-band__text p { color: var(--text); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn--ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 14px 26px;
  font-size: 15.5px;
}
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

/* ==========================================================================
   Páginas legales
   ========================================================================== */

.legal__inner {
  padding-top: 64px;
  padding-bottom: 88px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.legal__lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--text);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal section { margin-top: 44px; }

.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 14px;
}
.legal h3 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 26px;
  margin-bottom: 10px;
}

.legal p { margin-bottom: 14px; max-width: 72ch; }
.legal p:last-child { margin-bottom: 0; }

.legal ul {
  list-style: none;
  margin-bottom: 14px;
  max-width: 72ch;
}
.legal ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
}
/* Guion en lugar de bola: encaja con el tono de documento institucional */
.legal ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--soft);
}

/* Ficha de identificación de la sociedad */
.legal__id {
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  font-size: 15.5px;
}
.legal__id dt {
  padding: 14px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__id dd {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.legal__id dt:last-of-type,
.legal__id dd:last-of-type { border-bottom: 0; }

/* Aviso destacado dentro del texto legal */
.legal__callout {
  border-left: 2px solid var(--navy);
  background: var(--paper);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.legal__callout p { margin-bottom: 0; }

.legal__updated {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* Enlaces legales del pie, ya con destino */
.site-footer__policies-inner a {
  color: var(--soft);
  text-decoration: none;
}
.site-footer__policies-inner a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.site-footer__policies-inner a[aria-current="page"] {
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .hero__inner { padding-top: 64px; padding-bottom: 60px; }
  .creds__inner,
  .stance__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .stance__inner { padding-top: 60px; padding-bottom: 64px; }
  .lines__inner { padding-top: 56px; padding-bottom: 60px; }
  .site-nav { justify-content: flex-start; }

  /* Corredurías */
  .hero--page .hero__inner { padding-top: 56px; padding-bottom: 52px; }
  .steps__inner { padding-top: 52px; }
  .roles__inner { padding-top: 44px; padding-bottom: 60px; }

  /* El número y la etiqueta del peldaño se apilan sobre el título */
  .step__bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 24px 22px 22px;
  }
  .step__badge { justify-self: start; }
  .step__title { font-size: 24px; }

  /* La ficha pasa a una columna: etiqueta encima, contenido debajo */
  .step__fields { grid-template-columns: minmax(0, 1fr); }
  .step__fields dt {
    padding: 20px 22px 6px;
    border-bottom: 0;
  }
  .step__fields dd { padding: 0 22px 20px; }
  .step__fields dt:last-of-type { border-bottom: 0; }

  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 48px;
    padding-bottom: 48px;
  }

  /* Páginas legales */
  .legal__inner { padding-top: 44px; padding-bottom: 60px; }
  .legal section { margin-top: 36px; }
  /* La ficha de identificación pasa a una columna */
  .legal__id { grid-template-columns: minmax(0, 1fr); }
  .legal__id dt { padding: 14px 18px 4px; border-bottom: 0; background: none; }
  .legal__id dd { padding: 0 18px 14px; }
  .legal__id dt:last-of-type { border-bottom: 0; }
}

/* La tabla de roles necesita más ancho que el móvil: se desplaza dentro
   de su propio marco en lugar de comprimir las columnas */
@media (max-width: 720px) {
  .roles__table { border-radius: 5px; }
  .roles__table table { min-width: 620px; }
}

/* ---------- Impresión ---------- */

@media print {
  .site-header nav,
  [data-print-hide] { display: none !important; }
  body { font-size: 11pt; background: #fff; }
}
