/* =========================================================
   RETTIZ Ingeniería y Soluciones E.I.R.L. — estilos
   Colores tomados del logotipo y del brochure.
   ========================================================= */

:root {
  /* Marca */
  --ink: #00231f;          /* verde noche del logo: texto principal y fondos oscuros */
  --brand: #004813;        /* verde del surtidor: botones y acentos principales */
  --brand-hover: #0a5c22;
  --mint: #2f8f68;         /* verde menta del brochure: íconos y detalles */
  --mint-ink: #1d6a4b;     /* menta oscuro: etiquetas sobre fondo claro */
  --mint-soft: #e6f2ec;    /* menta claro: fondos de sección */
  --asphalt: #2d343e;      /* gris asfalto del logo: solo la carretera del proceso */

  /* Neutros */
  --paper: #ffffff;
  --canvas: #f4f7f5;
  --line: #d6e0da;
  --text: #1f2a27;
  --muted: #55625d;
  --on-dark: #e9f2ee;
  --on-dark-muted: #a9c2b8;

  /* Tipografía */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Espaciado y forma */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 6px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--header-h); }

.wrap {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--lg { width: 28px; height: 28px; stroke-width: 1.6; }

/* contenedor oculto de los íconos SVG (sin estilos en línea, por la política de seguridad) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

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

/* ---------- Tipografía ---------- */
/* Titulares anchos y en mayúsculas, como el logotipo "RETTIZ". */
.h2, .hero__title {
  font-stretch: 125%;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--ink);
}
.h2 { font-size: clamp(30px, 4.6vw, 54px); }
.h2--light { color: #fff; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-ink);
  margin-bottom: 18px;
}
.eyebrow--light { color: #9fe0c0; }

.lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--ink); text-wrap: pretty; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mint-soft); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-stretch: 125%; font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.brand__sub { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 12px; font-size: 15px; font-weight: 600;
  text-decoration: none; color: var(--text);
  border-radius: var(--radius);
}
.nav a:hover { color: var(--brand); }
.nav a.is-active { color: var(--brand); }
.nav a.is-active:not(.nav__cta)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--brand);
}
.nav .nav__cta { margin-left: 10px; background: var(--brand); color: #fff; padding: 10px 18px; }
.nav .nav__cta:hover, .nav .nav__cta.is-active { background: var(--brand-hover); color: #fff; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 32px rgba(0,35,31,.12);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.is-active:not(.nav__cta)::after { display: none; }
  .nav .nav__cta { margin: 16px 0 0; text-align: center; border-radius: var(--radius); border-bottom: 0; }
}
@media (max-width: 400px) {
  .brand__sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 820px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,35,31,.92) 0%, rgba(0,35,31,.72) 42%, rgba(0,35,31,.15) 75%),
    linear-gradient(0deg, rgba(0,35,31,.85) 0%, rgba(0,35,31,0) 45%);
}
.hero__inner { padding-top: 72px; padding-bottom: 48px; }
.hero__title { color: #fff; font-size: clamp(36px, 5.6vw, 76px); max-width: 14ch; }
.hero__lead { margin-top: 24px; max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__stats { border-top: 1px solid rgba(255,255,255,.18); background: rgba(0,35,31,.55); backdrop-filter: blur(4px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 22px 0; }
.stats > div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.stats dd { font-stretch: 125%; font-weight: 850; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }
.stats dt { margin-top: 8px; font-size: 14px; color: var(--on-dark-muted); max-width: 22ch; }

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero__inner { padding-top: 120px; padding-bottom: 40px; }
  .hero__title { font-stretch: 108%; font-size: 9vw; }
  .hero__shade { background: linear-gradient(0deg, rgba(0,35,31,.95) 10%, rgba(0,35,31,.6) 70%, rgba(0,35,31,.45) 100%); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .stats > div { padding: 18px 0; }
  .stats > div + div { padding-left: 14px; }
  .stats dt { font-size: 12.5px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head__text { margin-top: 20px; color: var(--muted); font-size: 18px; text-wrap: pretty; max-width: 60ch; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.section-head--split .section-head__text { margin-top: 0; }
@media (max-width: 800px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__intro .lead { margin-top: 28px; }
.about__intro > p:not(.eyebrow):not(.lead) { margin-top: 16px; color: var(--muted); }
.pillars { margin-top: 36px; border-top: 1px solid var(--line); }
.pillars li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-stretch: 112%; font-weight: 750; font-size: 18px; color: var(--ink);
}
.pillars .ic { color: #fff; background: var(--brand); border-radius: 50%; padding: 5px; width: 28px; height: 28px; stroke-width: 3; }

.about__photo { position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.about__photo figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--on-dark);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 0 var(--radius) 0 var(--radius);
}

.mission {
  margin-top: clamp(64px, 9vw, 112px);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0;
  border-top: 2px solid var(--ink);
}
.mission > div { padding: 28px 28px 0 0; }
.mission > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.mission__label { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-ink); margin-bottom: 12px; }
.mission__statement p { font-stretch: 112%; font-weight: 750; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; color: var(--ink); text-wrap: balance; }
.mission__point h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.mission__point p { color: var(--muted); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo img { aspect-ratio: 4 / 3; }
  .mission { grid-template-columns: 1fr; }
  .mission > div, .mission > div + div { padding: 24px 0; border-left: 0; }
  .mission > div + div { border-top: 1px solid var(--line); }
}

/* ---------- Servicios ---------- */
.services { background: var(--canvas); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; border-top: 1px solid var(--line); }
.service-list li {
  display: grid; grid-template-columns: 40px 36px 1fr; gap: 16px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.service-list__num { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 4px; }
.service-list .ic { color: var(--mint); }
.service-list h3 { font-stretch: 112%; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.service-list p { margin-top: 6px; color: var(--muted); font-size: 16px; }

@media (max-width: 860px) {
  .service-list { grid-template-columns: 1fr; }
  .service-list li { grid-template-columns: 30px 32px 1fr; gap: 12px; padding: 22px 0; }
}

/* ---------- Proceso (carretera del logo) ---------- */
.process { position: relative; overflow: hidden; }
/* los marcadores 01–05 quedan centrados sobre la pista */
.road { position: relative; height: 56px; background: var(--asphalt); margin-bottom: -56px; }
.road__line {
  position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #fff 0 36px, transparent 36px 64px);
  opacity: .85;
}

.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step { display: flex; flex-direction: column; }
.step img { order: 2; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin: 18px 0 18px; }
.step__num {
  order: 1;
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #fff;
  border: 4px solid #fff;
  font-family: var(--mono); font-weight: 500; font-size: 16px;
}
.step h3 { order: 3; font-stretch: 112%; font-weight: 800; font-size: 19px; line-height: 1.2; color: var(--ink); }
.step p { order: 4; margin-top: 8px; font-size: 15.5px; color: var(--muted); }

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
}
@media (max-width: 760px) {
  .road { display: none; }
  .steps { grid-template-columns: 1fr; row-gap: 0; padding-left: calc(var(--gutter) + 28px); }
  .steps::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: var(--gutter); width: 28px;
    background:
      linear-gradient(var(--asphalt), var(--asphalt)) center / 28px 100% no-repeat;
  }
  .steps::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 12px); width: 4px;
    background: repeating-linear-gradient(180deg, #fff 0 22px, transparent 22px 40px); opacity: .85;
  }
  .step { position: relative; padding: 0 0 40px 24px; }
  .step__num { position: absolute; left: -42px; top: 0; width: 44px; height: 44px; font-size: 14px; z-index: 1; }
  .step img { order: 3; margin: 12px 0 0; }
  .step h3 { order: 1; padding-top: 8px; }
  .step p { order: 2; }
}

/* ---------- Proyectos en campo ---------- */
.field { background: var(--mint-soft); }
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item:nth-child(1) { grid-row: span 2; }
.gallery__open { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__open:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 32px 16px 14px;
  background: linear-gradient(0deg, rgba(0,35,31,.88), rgba(0,35,31,0));
  color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.35;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item:nth-child(1) { grid-row: span 1; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery__item--wide, .gallery__item--tall { grid-column: auto; grid-row: auto; }
  .gallery__item--tall { grid-row: span 2; }
}

/* ---------- Clientes / resoluciones ---------- */
.tally { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tally > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 0; }
.tally > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.tally dd { font-stretch: 125%; font-weight: 850; font-size: clamp(28px, 3.4vw, 40px); line-height: 1; color: var(--brand); }
.tally dt { margin-top: 6px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) {
  .tally { grid-template-columns: repeat(2, 1fr); }
  .tally > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tally > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.ledger { counter-reset: row; }
.ledger__row {
  counter-increment: row;
  display: grid; grid-template-columns: 48px minmax(220px, 1fr) 1.6fr; gap: 12px 24px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.ledger__row::before { content: counter(row, decimal-leading-zero); font-family: var(--mono); font-size: 14px; color: var(--muted); }
.ledger__who strong { display: block; font-weight: 750; font-size: 17px; color: var(--ink); line-height: 1.3; }
.ledger__who span { display: block; font-size: 14.5px; color: var(--muted); }
.ledger__docs { display: flex; flex-wrap: wrap; gap: 8px; }
.ledger.is-collapsed .ledger__row:nth-child(n+7) { display: none; }

.res {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 10px; border-radius: 4px;
  background: var(--mint-soft); color: var(--ink);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.35;
}
.res b { font-family: var(--font); font-weight: 800; font-size: 12px; letter-spacing: .06em; color: var(--brand); }
.res--pending { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.res--pending b { color: var(--muted); }

.ledger__more { margin-top: 28px; }
.ledger__more[aria-expanded="true"] .ic { transform: rotate(180deg); }

@media (max-width: 760px) {
  .ledger__row { grid-template-columns: 34px 1fr; align-items: start; }
  .ledger__row::before { padding-top: 2px; }
  .ledger__docs { grid-column: 2; }
}

.partners { margin-top: clamp(56px, 8vw, 88px); display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px 64px; }
.partners__label { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-ink); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.partners__list { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.partners__list li { font-weight: 700; font-size: 17px; color: var(--ink); }
.partners__list--entities { gap: 12px 32px; }
.partners__list--entities li { font-stretch: 125%; font-weight: 850; font-size: clamp(20px, 2vw, 26px); }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: var(--on-dark); padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 88px; align-items: start; }
.contact__lead { margin-top: 24px; font-size: 18px; color: var(--on-dark-muted); max-width: 46ch; }
.contact__list { border-top: 1px solid rgba(255,255,255,.16); }
.contact__row {
  display: grid; grid-template-columns: 24px 1fr 24px; gap: 18px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid rgba(255,255,255,.16);
  text-decoration: none; color: #fff; font-size: clamp(18px, 1.8vw, 21px); font-weight: 700;
  transition: background-color .2s, padding .2s;
}
.contact__row small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 2px; }
.contact__row .ic { color: #9fe0c0; }
a.contact__row:hover { background: rgba(255,255,255,.05); padding-inline: 12px; }
.contact__go { transition: transform .2s; }
a.contact__row:hover .contact__go { transform: translateX(4px); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Pie de página ---------- */
.site-footer { background: #001815; color: var(--on-dark-muted); padding: 56px 0 28px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 32px 56px; align-items: start; }
.site-footer__grid img { width: 140px; height: auto; }
.site-footer__legal div + div { margin-top: 10px; }
.site-footer__legal dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer__legal dd { color: #fff; font-weight: 600; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.site-footer__nav a { text-decoration: none; color: var(--on-dark); }
.site-footer__nav a:hover { color: #9fe0c0; }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }
.site-footer__base a { color: var(--on-dark); text-decoration: none; }
.site-footer__legal-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer__legal-links > a:not(.claims) { color: var(--on-dark); text-decoration: none; }
.site-footer__legal-links > a:not(.claims):hover { color: #9fe0c0; }

/* Enlace al Libro de Reclamaciones (Indecopi) */
.claims {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px; border-radius: var(--radius);
  background: #fff; color: var(--ink); text-decoration: none;
  transition: background-color .2s;
}
.claims:hover { background: var(--mint-soft); }
.claims .ic { width: 26px; height: 26px; color: var(--brand); }
.claims strong { display: block; font-size: 15px; line-height: 1.2; }
.claims small { display: block; font-size: 12.5px; color: var(--muted); }

@media (max-width: 980px) { .site-footer__grid { grid-template-columns: auto 1fr auto; } .site-footer__legal-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 28px; } }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__legal-links { flex-direction: column; align-items: flex-start; } }

/* ---------- Página 404 ---------- */
.not-found { padding-top: clamp(72px, 12vw, 140px); }
.not-found__inner { max-width: 760px; margin-bottom: clamp(64px, 10vw, 120px); }
.not-found .lead { margin-top: 24px; color: var(--muted); }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.not-found .road { margin-bottom: 0; }
@media (max-width: 760px) { .not-found .road { display: block; } }

/* ---------- Página legal (política de privacidad) ---------- */
.legal { padding-block: clamp(56px, 8vw, 96px); }
.legal__inner { max-width: 760px; }
.legal__meta { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.legal__intro { margin-top: 28px; }
.legal h2 {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-stretch: 112%; font-weight: 800; font-size: 21px; line-height: 1.3; color: var(--ink);
}
.legal h2 + p, .legal h2 + ul { margin-top: 12px; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal p, .legal li { color: var(--text); text-wrap: pretty; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal a:not(.btn) { color: var(--brand); font-weight: 600; }

/* Índice de la política de privacidad */
.legal h2[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__toc { margin-top: 36px; padding: 22px 24px; border-radius: var(--radius); background: var(--canvas); border: 1px solid var(--line); }
.legal__toc-title { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-ink); margin-bottom: 12px; }
.legal .legal__toc ol { list-style: decimal; padding-left: 22px; display: block; columns: 2; column-gap: 40px; }
.legal .legal__toc li { break-inside: avoid; margin-bottom: 6px; }
.legal .legal__toc a { font-weight: 500; text-decoration: none; }
.legal .legal__toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .legal .legal__toc ol { columns: 1; } }

/* Libro de Reclamaciones */
.notice {
  display: flex; align-items: flex-start; gap: 16px;
  margin-top: 28px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--ink); color: var(--on-dark);
}
.notice .ic { width: 32px; height: 32px; color: #9fe0c0; stroke-width: 1.6; }
.legal .notice p { color: var(--on-dark); font-size: 18px; font-weight: 600; line-height: 1.45; }
.claim-steps { counter-reset: step; display: grid; gap: 0; margin-top: 8px; }
.claim-steps li {
  counter-increment: step; position: relative;
  padding: 20px 0 20px 56px; border-bottom: 1px solid var(--line);
}
.claim-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 18px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--mono); font-size: 15px;
}
.claim-steps h3 { font-size: 18px; font-weight: 800; color: var(--ink); }
.claim-steps p { margin-top: 4px; }
.claim-steps .btn { margin-top: 14px; }
.legal__data--terms dt { color: var(--brand); font-weight: 500; }
.legal .legal__note { margin-top: 28px; font-size: 15px; color: var(--muted); }
.legal .legal__note + .legal__note { margin-top: 8px; }
.legal__data { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin-top: 14px; }
.legal__data dt { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.legal__data dd { font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .legal__data { grid-template-columns: 1fr; gap: 2px; } .legal__data dd { margin-bottom: 10px; } }
/* deja espacio para el botón flotante en celular */
@media (max-width: 640px) { .site-footer { padding-bottom: 96px; } }

/* ---------- Botón flotante: Nuestros asesores ---------- */
.advisors { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.advisors__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 18px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 28px rgba(0,35,31,.35);
  transition: background-color .2s;
}
.advisors__toggle:hover { background: var(--brand-hover); }
.advisors__toggle > .ic:first-child { width: 24px; height: 24px; }
.advisors__chev { transform: rotate(180deg); transition: transform .2s; }
.advisors__toggle[aria-expanded="true"] .advisors__chev { transform: rotate(0deg); }

.advisors__panel {
  width: min(300px, calc(100vw - 40px));
  background: #fff; color: var(--text);
  border-radius: 12px; padding: 18px;
  box-shadow: 0 18px 48px rgba(0,35,31,.28);
  border: 1px solid var(--line);
}
.advisors__title { font-stretch: 112%; font-weight: 850; font-size: 18px; color: var(--ink); }
.advisors__hint { font-size: 14px; color: var(--muted); margin: 2px 0 12px; }
.advisors__link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; margin-top: 8px; border-radius: 8px;
  background: var(--mint-soft); color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 17px;
  transition: background-color .2s;
}
.advisors__link .ic:first-child { color: var(--brand); width: 22px; height: 22px; }
.advisors__link:hover { background: #d4eadf; }
.advisors__go { margin-left: auto; color: var(--mint-ink); }

@media (prefers-reduced-motion: no-preference) {
  .advisors__panel:not([hidden]) { animation: pop .18s ease-out; }
  @keyframes pop { from { opacity: 0; transform: translateY(8px); } }
}
@media (max-width: 480px) {
  .advisors { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .advisors__toggle { min-height: 52px; font-size: 15px; }
}

/* ---------- Visor de fotos ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(0,24,21,.9); }
.lightbox img { max-width: 100%; max-height: 82vh; margin-inline: auto; border-radius: var(--radius); }
.lightbox__caption { color: #fff; text-align: center; margin-top: 12px; font-weight: 600; }
.lightbox__close {
  position: fixed; top: 16px; right: 16px;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); display: grid; place-items: center;
}
