/* ============================================================
   Pinturas EBC — Landing page
   Mobile-first · Sistema: navy profundo / arena / naranja de acento
   Escala tipográfica 1.25 · Espaciado base 8 · Radio único 6px
   ============================================================ */

:root {
  /* ---- Color ---- */
  --navy-900: #0E1729;
  --navy-800: #16213E;
  --navy-700: #1E2D52;
  --navy-100: #E3E8F2;

  /* Neutros cálidos: el gris azulado leía "software", no "obra" */
  --sand-50: #F7F6F3;
  --sand-100: #EFEDE8;
  --line: #E2E0DA;

  --gray-300: #BFC5D0;
  --gray-500: #5B6577; /* AA sobre blanco desde 0.875rem */
  --gray-700: #39424F;

  /* El naranja es acento: CTA primario y un solo acento por sección.
     orange-500 solo sirve como FONDO, o como texto sobre navy (5.88:1).
     Sobre blanco da 3.05:1 y no pasa AA — para texto sobre claro va orange-ink. */
  --orange-500: #F26B1D;
  --orange-600: #D95B0F;
  --orange-ink: #B54A0A;  /* 5.32:1 sobre blanco · 4.92:1 sobre sand-50 */
  --orange-100: #FBE7D8;

  --wa-green: #25D366;
  --wa-green-dark: #1EBE5A;

  --white: #FFFFFF;

  /* ---- Tipografía ---- */
  --font-head: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --t-hero: clamp(1.875rem, 4.6vw + 0.6rem, 3.5rem);
  --t-h2:   clamp(1.5rem, 2.8vw + 0.5rem, 2.5rem);
  --t-h3:   1.25rem;
  --t-lead: 1.125rem;
  --t-body: 1.0625rem;
  --t-sm:   0.875rem;
  --t-xs:   0.75rem;

  /* ---- Espaciado base 8 ---- */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;
  --s-14: 112px;

  /* Una sola medida de lectura: antes había cuatro anchos para el mismo rol */
  --measure: 640px;
  --measure-text: 60ch;

  /* ---- Forma ---- */
  --radius: 6px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(14, 23, 41, 0.06), 0 8px 24px rgba(14, 23, 41, 0.08);

  --container: 1180px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-1);
}

p { margin: 0 0 var(--s-2); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--orange-ink); }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Oculto hasta recibir foco por teclado: un skip link permanentemente
   invisible no le sirve a nadie. */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-2);
  z-index: 300;
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--s-2); }

/* ---------- Botones ---------- */
/* Radio 6px, no pill: el pill naranja con sombra de color leía "template" */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 26px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary { background: var(--orange-500); color: var(--navy-900); }
.btn--primary:hover { background: #FF7A2E; }

.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--navy-900); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--navy-800);
}
.btn--outline:hover { background: var(--navy-800); color: var(--white); }

.btn--sm { padding: 10px 18px; font-size: var(--t-sm); }
.btn--lg { padding: 16px 30px; font-size: 1.0625rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(14, 23, 41, 0.9);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease;
}
.header.is-scrolled { background: var(--navy-900); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}

/* Wordmark tipográfico: el logo cuadrado naranja con ícono genérico leía clipart */
.header__brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  line-height: 1.05;
}
.header__brand-top {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.header__brand-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
}

.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-2) var(--s-3) var(--s-3);
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-140%);
  transition: transform 0.3s ease;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav.is-open { transform: translateY(0); }

.nav__link {
  color: var(--navy-100);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--t-sm);
  padding: 12px 8px;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__link:hover { color: var(--white); background: var(--navy-700); }
.nav__link[aria-current="true"] { color: var(--white); }

.nav__cta { margin-top: var(--s-1); align-self: flex-start; }

.header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    background: transparent;
    border: 0;
    transform: none;
    transition: none;
    max-height: none;
    overflow: visible;
  }
  .nav__link { padding: 8px 12px; }
  .nav__cta { margin: 0 0 0 var(--s-1); align-self: auto; }
  .header__toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(760px, 100svh);
  padding: calc(var(--header-h) + var(--s-8)) 0 var(--s-8);
  color: var(--white);
  overflow: hidden;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; }
.hero__media { background: var(--navy-900); }

/* Overlay más liviano: el anterior (0.72/0.55/0.8) lavaba la foto */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 23, 41, 0.88) 0%, rgba(14, 23, 41, 0.6) 55%, rgba(14, 23, 41, 0.42) 100%),
    linear-gradient(180deg, rgba(14, 23, 41, 0.45) 0%, transparent 35%, rgba(14, 23, 41, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__title {
  color: var(--white);
  font-size: var(--t-hero);
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: var(--s-3);
}
.hero__title em {
  font-style: normal;
  color: var(--orange-500);
}

.hero__subtitle {
  font-size: var(--t-lead);
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
  margin-bottom: var(--s-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* Barra de credenciales: dato duro, no checks autoafirmados */
.trustbar {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--s-3) 0;
  color: var(--white);
}
/* flex-wrap y no grid fijo: tres columnas rígidas desbordaban a 360px
   y generaban scroll horizontal en toda la página. */
.trustbar__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
}
@media (min-width: 720px) { .trustbar__grid { gap: var(--s-2) var(--s-8); } }

.trustbar__item { display: flex; flex-direction: column; gap: 2px; }
.trustbar__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.125rem);
  color: var(--orange-500);
  line-height: 1.1;
}
.trustbar__label {
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Secciones genéricas ---------- */
/* Tres alturas, no una: las secciones que cargan el peso del argumento
   respiran más que las de apoyo. */
.section { padding: var(--s-6) 0; }
@media (min-width: 900px) { .section { padding: var(--s-8) 0; } }

.section--major { padding: var(--s-8) 0; }
@media (min-width: 900px) { .section--major { padding: var(--s-14) 0; } }

.section--alt { background: var(--sand-50); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, 0.82); }
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section__head {
  max-width: var(--measure);
  margin: 0 0 var(--s-6);
}
.section__head--center { margin-inline: auto; text-align: center; }

.section__eyebrow {
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: var(--s-1);
}

.section__title {
  font-size: var(--t-h2);
  font-weight: 700;
}

.section__lead {
  color: var(--gray-500);
  font-size: var(--t-lead);
  max-width: var(--measure-text);
  margin: 0;
}
.section--dark .section__lead { color: rgba(255, 255, 255, 0.72); }
/* Sobre navy el naranja vivo sí pasa AA (5.88:1) */
.section--dark .section__eyebrow { color: var(--orange-500); }

.section__cta {
  margin: var(--s-6) 0 0;
  font-weight: 500;
  color: var(--gray-500);
}
.section__cta a {
  color: var(--orange-ink);
  font-weight: 600;
  text-decoration: none;
}
.section__cta a:hover { text-decoration: underline; }

/* ---------- OBRAS: proyecto destacado ---------- */
.project-lead {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
  margin-bottom: var(--s-6);
}
/* A 1100px y no 900: entre medio la foto (16/10) era más baja que el panel
   de ficha y quedaba una banda navy vacía debajo. */
@media (min-width: 1100px) {
  .project-lead { grid-template-columns: minmax(0, 1fr) 340px; }
  /* La foto llena la celda en vez de imponer su propia altura */
  .project-lead .compare { aspect-ratio: auto; height: 100%; min-height: 380px; }
}


.project-lead__spec {
  padding: var(--s-4);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.project-lead__spec h3 {
  color: var(--white);
  font-size: var(--t-h3);
  margin: 0;
}

.spec-list { display: grid; gap: var(--s-2); list-style: none; }
.spec-list dt,
.spec-list__label {
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.spec-list dd,
.spec-list__value {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

/* ---------- Caso: comparador antes/después ----------
   La brecha de mercado: ningún competidor paraguayo relevado muestra
   antes/después ni métricas de obra. Cuesta 2 fotos y 3 números. */
/* Los tabs NO son pills: los filtros de obras ya usan esa forma y son otra
   cosa. Misma forma + función distinta = el usuario aprende mal el patrón. */
.cases__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.cases__tab {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-500);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 10px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.cases__tab:hover { color: var(--navy-800); }
.cases__tab[aria-selected="true"] {
  color: var(--navy-800);
  border-bottom-color: var(--navy-800);
}

.case[hidden] { display: none; }

.compare {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-800);
  touch-action: pan-y;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sin JS no hay control para mover el corte: se muestra el "después" entero. */
.compare__before { display: none; }
.js .compare__before {
  display: block;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: ew-resize;
  z-index: 3;
}
.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy-800);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: ew-resize;
}
.compare__range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy-800);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: ew-resize;
}
.compare__range::-moz-range-track { background: transparent; border: 0; }
.compare__range:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; }

.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  /* El thumb viaja de 22px a ancho-22px; la línea debe seguir ese recorrido
     o se desalinean hasta 22px en los extremos. */
  left: calc(22px + (100% - 44px) * var(--pos-n, 0.5));
  width: 2px;
  background: var(--white);
  transform: translateX(-1px);
  z-index: 2;
  pointer-events: none;
}
html:not(.js) .compare__line,
html:not(.js) .compare__range,
html:not(.js) .compare__tag--before { display: none; }

.compare__tag {
  position: absolute;
  top: var(--s-2);
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(14, 23, 41, 0.72);
  padding: 4px 10px;
  border-radius: var(--radius);
  pointer-events: none;
}
.compare__tag--before { left: var(--s-2); }
.compare__tag--after { right: var(--s-2); }

/* Métricas del caso: los tres números que decide un jefe de obra */
.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: var(--s-3);
  list-style: none;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.case__metric b {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--white);
}
.case__metric span {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.case__story {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.case__story strong { color: var(--white); font-weight: 600; }

/* Chip "Antes" en las obras de la grilla: solo aparece si hay foto previa */
.project__toggle {
  position: absolute;
  top: var(--s-1);
  left: var(--s-1);
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: var(--radius);
  padding: 5px 10px;
  cursor: pointer;
}
.project__toggle[aria-pressed="true"] { background: var(--navy-800); color: var(--white); }

/* ---------- OBRAS: grilla ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin-bottom: var(--s-4);
}

.chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--gray-700);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.chip:hover { border-color: var(--navy-800); color: var(--navy-800); }
/* Los filtros usan aria-pressed y los tabs de casos aria-selected:
   el estado activo se ve igual en los dos. */
.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

/* Grilla estricta, ratio fijo: el masonry desperdiciaba el activo */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4) var(--s-3);
  list-style: none;
}
@media (min-width: 620px)  { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .projects { grid-template-columns: repeat(3, 1fr); } }

.project { margin: 0; }
.project.is-hidden { display: none; }

.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-100);
  margin-bottom: var(--s-2);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; }

/* Caption fuera de la foto: se lee como ficha técnica, no como sticker */
.project__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-800);
  margin: 0;
}
.project__meta {
  font-size: var(--t-sm);
  color: var(--gray-500);
  margin: 2px 0 0;
}

/* Franja de clientes */
.clients {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.clients__label {
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: var(--s-3);
}
.clients__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  list-style: none;
  align-items: center;
}
.clients__list li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--gray-500);
}
.clients__list img { height: 32px; width: auto; filter: grayscale(1); opacity: 0.7; }

/* ---------- Servicios: lista editorial ---------- */
.services { display: grid; gap: 0; list-style: none; }

.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 800px) {
  .service { grid-template-columns: 300px 1fr; gap: var(--s-6); }
}

.service__title {
  font-size: var(--t-h3);
  font-weight: 700;
  margin: 0;
}
/* Regla dura: naranja = botón primario + eyebrow. Nada más. */
.service__for {
  font-size: var(--t-sm);
  color: var(--gray-500);
  font-weight: 600;
  margin: 4px 0 0;
}
.service__body p { margin: 0 0 var(--s-2); color: var(--gray-500); }
.service__includes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  list-style: none;
}
.service__includes li {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--navy-800);
  background: var(--sand-100);
  border-radius: var(--radius);
  padding: 4px 12px;
}
.section--alt .service__includes li { background: var(--white); border: 1px solid var(--line); }

/* ---------- Empresas / B2B ---------- */
/* A dos columnas recién a 1080px: por debajo, el formulario de 460px dejaba
   la columna del argumento en 405px y las credenciales se apilaban de a una. */
.b2b { display: grid; gap: var(--s-8); }
@media (min-width: 1080px) {
  .b2b {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: var(--s-8);
    align-items: start;
  }
}

.capability { display: grid; gap: var(--s-4); }
@media (min-width: 620px) { .capability { grid-template-columns: repeat(2, 1fr); } }

.capability__item { display: grid; gap: 4px; }
.capability__item h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.capability__item p { margin: 0; font-size: var(--t-sm); color: rgba(255, 255, 255, 0.7); }

.credentials {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  list-style: none;
}
.credentials li {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.credentials li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
  flex: none;
}

/* Evidencia de capacidad: estas fotos no son obras, son prueba de cómo
   trabajamos — por eso viven acá y no en la grilla de Obras. */
.capability-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  list-style: none;
  margin-bottom: var(--s-6);
}
.capability-shots figure { margin: 0; }
.capability-shots .shot__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-700);
  margin-bottom: var(--s-1);
}
.capability-shots img { width: 100%; height: 100%; object-fit: cover; }
.capability-shots figcaption {
  font-size: var(--t-xs);
  color: var(--gray-300);
}
.capability-shots .img-missing::before {
  background: var(--navy-700);
  color: var(--gray-300);
}

/* ---------- Formulario ---------- */
/* Ningún competidor paraguayo relevado tiene formulario propio. */
/* Sobre navy-900 una sombra no se ve: lo que separa la tarjeta es el borde. */
.form-card {
  background: var(--sand-50);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: var(--s-4);
}
@media (min-width: 620px) { .form-card { padding: var(--s-6); } }

/* color explícito: la tarjeta es clara pero vive dentro de .section--dark.
   Tamaño 1.75rem: es el destino de cuatro CTAs, no un sidebar. */
.form-card h3 { font-size: 1.75rem; color: var(--navy-800); margin-bottom: 4px; }
.form-card__note { font-size: var(--t-sm); color: var(--gray-500); margin-bottom: var(--s-3); }

.field { display: grid; gap: 6px; margin-bottom: var(--s-2); }
.field > span {
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--navy-800);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-700);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  width: 100%;
}
/* Un solo anillo: el borde navy + el outline naranja global daban dos colores,
   dos grosores y 3px de aire entre ellos. */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--navy-800);
  outline-offset: 0;
  border-color: var(--navy-800);
}

/* Estado de error nativo, sin JS de validación */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: #B42318; }
.field input:user-invalid + .field__error,
.field select:user-invalid + .field__error,
.field textarea:user-invalid + .field__error { display: block; }
.field__error {
  display: none;
  font-size: var(--t-sm);
  font-weight: 500;
  color: #B42318;
}
.field textarea { resize: vertical; min-height: 110px; }
.field--row { display: grid; gap: var(--s-2); }
@media (min-width: 520px) { .field--row { grid-template-columns: 1fr 1fr; } }

.form-card .btn { width: 100%; margin-top: var(--s-1); }
.form-card__alt {
  margin: var(--s-3) 0 0;
  font-size: var(--t-sm);
  color: var(--gray-500);
  text-align: center;
}

/* ---------- Proceso: línea horizontal ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-3);
    position: relative;
  }
  /* La línea que conecta los pasos */
  .steps::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--line);
  }
}

.step { position: relative; }

.step__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--t-sm);
  margin-bottom: var(--s-2);
  position: relative;
  z-index: 1;
}
.section--alt .step__num { box-shadow: 0 0 0 6px var(--sand-50); }

.step h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.step p { color: var(--gray-500); font-size: var(--t-sm); margin: 0; }

.steps__cta { margin-top: var(--s-6); }

/* ---------- Testimonio destacado ---------- */
.quote {
  max-width: 62ch;
  margin: 0;
}
.quote p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  margin: 0 0 var(--s-3);
}
.quote footer { font-size: var(--t-sm); color: var(--gray-500); }
.quote footer strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy-800);
}

/* Cita B2B dentro de la franja oscura de Empresas */
.quote-b2b {
  margin: var(--s-6) 0 0;
  padding-left: var(--s-3);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}
.quote-b2b p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--white);
  margin: 0 0 var(--s-1);
}
.quote-b2b footer { font-size: var(--t-sm); color: var(--gray-300); }
.quote-b2b footer strong { display: block; color: var(--white); font-family: var(--font-head); }

.quote-grid { display: grid; gap: var(--s-4); margin-top: var(--s-8); }
@media (min-width: 800px) { .quote-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }

.quote-sm { margin: 0; padding-left: var(--s-3); border-left: 3px solid var(--line); }
.quote-sm p { color: var(--gray-700); margin: 0 0 var(--s-1); }
.quote-sm footer { font-size: var(--t-sm); color: var(--gray-500); }
.quote-sm footer strong { color: var(--navy-800); }

/* ---------- Zonas de cobertura ---------- */
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  list-style: none;
}
.zones li {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
}

/* ---------- FAQ ---------- */
/* Dos columnas en desktop: un acordeón de 640px solo, con media pantalla
   vacía al lado, leía como sección sin terminar. */
.faq-layout { display: grid; gap: var(--s-4); }
@media (min-width: 1000px) {
  .faq-layout { grid-template-columns: 340px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .faq-layout .section__head { position: sticky; top: calc(var(--header-h) + var(--s-4)); margin-bottom: 0; }
}

.faq { max-width: var(--measure); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  cursor: pointer;
  list-style: none;
  padding: var(--s-3) 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy-800);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--navy-800);
  border-bottom: 2px solid var(--navy-800);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__item summary:hover { color: var(--orange-600); }

.faq__answer {
  padding: 0 0 var(--s-3);
  max-width: var(--measure-text);
}
.faq__answer p { color: var(--gray-500); margin: 0 0 var(--s-1); }
.faq__answer p:last-child { margin: 0; }

/* ---------- CTA final ---------- */
.cta-final { padding: var(--s-8) 0; background: var(--sand-50); }
@media (min-width: 900px) { .cta-final { padding: 80px 0; } }

.cta-final__inner {
  display: grid;
  gap: var(--s-4);
  align-items: center;
}
@media (min-width: 900px) { .cta-final__inner { grid-template-columns: 1fr auto; gap: var(--s-8); } }

.cta-final h2 { font-size: var(--t-h2); font-weight: 700; margin-bottom: var(--s-1); }
.cta-final p { color: var(--gray-500); font-size: var(--t-lead); margin: 0; max-width: 46ch; }

/* Las zonas ya no son una sección propia: 12 chips no justificaban 96px y un h2.
   Siguen en el JSON-LD (areaServed) y en la respuesta del FAQ, que es lo que indexa Google. */
.cta-final__zones {
  font-size: var(--t-sm) !important;
  max-width: 62ch !important;
  margin-top: var(--s-1) !important;
}

.cta-final__actions { display: grid; gap: var(--s-2); }
.cta-final__contacts {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--gray-500);
}
.cta-final__contacts a { color: var(--navy-800); font-weight: 600; text-decoration: none; }
.cta-final__contacts a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: var(--navy-100);
  padding: var(--s-8) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
}
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer__brand {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}
.footer__slogan {
  color: var(--orange-500);
  font-weight: 600;
  font-size: var(--t-sm);
  margin-bottom: var(--s-2);
}
.footer__desc { color: var(--gray-300); font-size: var(--t-sm); max-width: 42ch; }

.footer__col h3 {
  color: var(--white);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}

.footer__col ul { list-style: none; display: grid; gap: var(--s-1); }
.footer__col a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: var(--t-sm);
  transition: color 0.15s ease;
}
.footer__col a:hover { color: var(--orange-500); }
.footer__col li { color: var(--gray-300); font-size: var(--t-sm); }

/* gray-500 sobre navy-900 da 3.05:1 y no pasa AA; este gris da 5.08:1
   y mantiene el texto legal en segundo plano. */
.footer__legal {
  margin-top: var(--s-3);
  font-size: var(--t-xs);
  color: #808999;
}

.footer__social { display: flex; gap: var(--s-1); margin-top: var(--s-2); }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--navy-700);
  color: var(--white);
  transition: background 0.18s ease;
}
.footer__social a:hover { background: var(--orange-500); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--s-2) var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  justify-content: space-between;
  font-size: var(--t-xs);
  color: #808999;
}
.footer__bottom p { margin: 0; }

/* ---------- Botón flotante WhatsApp ---------- */
/* 52px, sin pulso, sin sombra de color: era el elemento más gritón del sitio */
.wa-float {
  position: fixed;
  right: var(--s-2);
  bottom: var(--s-2);
  z-index: 200;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, opacity 0.25s ease, transform 0.25s ease;
}
.wa-float:hover { background: var(--wa-green-dark); }

/* Se oculta mientras el hero está en viewport: ahí ya hay dos CTAs */
.wa-float.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
}

@media (min-width: 900px) {
  .wa-float { right: var(--s-3); bottom: var(--s-3); }
}

/* ---------- Placeholder cuando falta la foto ---------- */
.img-missing img { visibility: hidden; }

.img-missing::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--s-2);
  text-align: center;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--sand-100);
  z-index: 1;
}

/* En zonas oscuras el fallback no puede ser claro: hay texto blanco encima */
.hero__media.img-missing::before,
.compare.img-missing::before {
  content: "";
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  z-index: 0;
}

/* ---------- Animaciones de aparición ----------
   Solo se ocultan elementos si <html> tiene la clase "js":
   sin JavaScript el contenido queda siempre visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Solo se desactivan animaciones y apariciones: los hover de botones y chips
   son feedback de estado, no decoración, y deben seguir funcionando. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { transition: background 0.2s ease; }
}

/* ---------- Página de gracias ---------- */
.thanks {
  min-height: 78svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + var(--s-8)) 0 var(--s-8);
}
.thanks__inner { max-width: var(--measure); }
.thanks h1 { font-size: var(--t-h2); font-weight: 700; margin-bottom: var(--s-2); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 var(--s-3); }
.thanks__meta { font-size: var(--t-sm); color: var(--gray-500); margin: 0; }
.thanks__meta a { color: var(--navy-800); font-weight: 600; text-decoration: none; }
.thanks__meta a:hover { text-decoration: underline; }
