/* ==========================================================================
   TuDepaOK · prototipo 3 (base: prototipo 1 + secciones del 2)
   Mobile-first. Cortes: 640px (tablet), 1100px (escritorio con menú completo)
   ========================================================================== */

/* ==========================================================================
   1. Header / navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(20, 22, 26, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  flex: none;
}

.brand img {
  width: auto;
  height: 34px;
}

/* Botón hamburguesa (móvil y tablet) */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: -10px;
  color: var(--c-ink);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Panel de navegación: en móvil es un panel lateral */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 auto;
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem var(--gutter) 2rem;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  box-shadow: -8px 0 24px rgba(20, 22, 26, 0.08);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

.site-nav.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}

.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: -1;
  background: rgba(20, 22, 26, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

body.nav-open {
  overflow: hidden;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list > li {
  border-bottom: 1px solid var(--c-line);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-current {
  color: var(--c-brand);
}

.nav-link .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.has-sub.is-open .chevron {
  transform: rotate(180deg);
}

/* Submenú de Servicios: acordeón en móvil */
.sub-menu {
  display: none;
  padding: 0 0 0.75rem 0.75rem;
}

.has-sub.is-open .sub-menu {
  display: block;
}

.sub-menu a {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.sub-menu a small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-muted);
}

.sub-menu a:hover,
.sub-menu a[aria-current="page"] {
  background: var(--c-brand-soft);
  color: var(--c-brand-text);
}

/* Redes sociales */
.social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--c-ink);
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social a:hover {
  color: var(--c-brand-text);
  transform: translateY(-2px);
}

.social .icon {
  width: 26px;
  height: 26px;
}

/* ---------- Escritorio: menú horizontal ---------- */
@media (min-width: 1100px) {
  .brand img {
    height: 46px;
  }

  .nav-toggle,
  .nav-backdrop {
    display: none;
  }

  .site-nav {
    position: static;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2vw, 2.25rem);
    margin-inline: auto;
  }

  .nav-list > li {
    position: relative;
    border: 0;
  }

  .nav-link {
    gap: 0.35rem;
    min-height: var(--header-h);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
  }

  /* Raya naranja bajo el link activo */
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(50% - 1.05rem);
    height: 3px;
    background: var(--c-brand);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }

  .nav-link[aria-current="page"]::after,
  .nav-link.is-current::after,
  .nav-link:hover::after {
    transform: scaleX(1);
  }

  .has-sub > .nav-link::after {
    right: 1.2rem;
  }

  /* Submenú desplegable */
  .sub-menu {
    position: absolute;
    top: calc(100% - 12px);
    left: 50%;
    display: block;
    min-width: 290px;
    padding: 0.5rem;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu,
  .has-sub.is-open .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .has-sub:hover .chevron,
  .has-sub:focus-within .chevron {
    transform: rotate(180deg);
  }

  .social {
    padding-left: clamp(1rem, 2vw, 2rem);
    border-left: 1px solid var(--c-line);
    min-height: 56px;
  }
}

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero {
  background: var(--c-bg);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Imagen: arriba y a todo el ancho en móvil; a la derecha, dentro del
   contenedor, en escritorio */
.hero__media {
  position: relative;
  order: -1;
  aspect-ratio: 4 / 3;
  max-height: 46vh;
  /* Sale del padding del contenedor para llegar de borde a borde */
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  margin-inline: calc(-1 * var(--gutter));
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

/* Fundido hacia blanco por abajo (móvil) */
.hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.hero__content {
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
  padding-bottom: 1.75rem;
}

.hero__title {
  font-weight: 800;
  color: var(--c-ink);
}

.hero__title .eyebrow {
  margin-bottom: 0.9rem;
}

/* Raya naranja bajo el eyebrow */
.hero__title .eyebrow::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.9rem;
  background: var(--c-brand);
  border-radius: 2px;
}

.hero__headline {
  display: block;
  font-size: clamp(2.1rem, 1.2rem + 4.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Bajada bajo el titular (páginas de servicio) */
.hero__lead {
  max-width: 34ch;
  margin-top: 1rem;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--c-text);
}

@media (min-width: 640px) {
  .hero__media {
    aspect-ratio: 16 / 9;
    max-height: 52vh;
  }
}

@media (min-width: 900px) {
  /* Alto del banner según el mockup: ~27 % del ancho de pantalla, con
     tope de 420 px. Así la foto (2:1) se ve casi entera, sin recorte */
  .hero__inner {
    justify-content: center;
    min-height: clamp(360px, 27vw, 420px);
  }

  /* La foto ocupa el 62 % derecho del contenedor y termina en su borde,
     igual que la tarjeta "Edificio" y las redes del header */
  .hero__media {
    position: absolute;
    top: 0;
    bottom: 0;
    right: var(--gutter);
    order: 0;
    width: calc((100% - 2 * var(--gutter)) * 0.64);
    max-height: none;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0 var(--radius) var(--radius) 0;
    overflow: hidden;
  }

  .hero__media img {
    object-position: 55% 20%;
  }

  /* Fundido hacia blanco por la izquierda (escritorio) */
  .hero__media::after {
    inset: 0 auto 0 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(
      to right,
      #fff 0%,
      rgba(255, 255, 255, 0.85) 30%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .hero__content {
    margin-top: 0;
    padding-block: clamp(2rem, 3.5vw, 3rem);
  }

  .hero__title {
    max-width: 56%;
  }

  .hero__lead {
    max-width: min(56%, 36ch);
  }

  /* El titular escala con el ancho para no pisar la foto entre 900 y 1440 */
  .hero__headline {
    font-size: clamp(2.75rem, 5vw, 4.6rem);
  }

  /* Titulares con una línea larga ("nuestro compromiso"): un punto menos
     para que no entren en la foto */
  .hero__headline--long {
    font-size: clamp(2.5rem, 4.1vw, 3.9rem);
  }
}

/* ==========================================================================
   3. Tarjetas de servicio (debajo del hero)
   ========================================================================== */
.services-entry {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* Subtítulo sobre las tarjetas: guía al usuario a elegir */
.services-entry__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.5rem 0 0.875rem;
  font-size: clamp(1.05rem, 0.85rem + 0.9vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--c-ink);
}

/* Marca dorada a la izquierda, como las rayas de los títulos */
.services-entry__title::before {
  content: "";
  flex: none;
  width: 6px;
  height: 1.15em;
  border-radius: 2px;
  background: var(--c-brand);
}

.services-entry__grid {
  display: grid;
  gap: 0.875rem;
}

.svc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.1rem;
  background: var(--c-bg-alt);
  border: 1px solid #ececea;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.svc-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--shadow);
}

.svc-card__icon {
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 1rem;
  border-right: 1px solid #d8d8d6;
  color: var(--c-brand);
}

/* El icono es una máscara: la forma sale del PNG/WebP y el color de
   --c-brand, así sigue al color de marca sin editar la imagen */
.svc-card__shape {
  display: block;
  height: 44px;
  aspect-ratio: var(--ratio, 1);
  background: var(--c-brand);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.svc-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.svc-card__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.svc-card__title {
  font-size: clamp(1.15rem, 0.8rem + 1.3vw, 2.05rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.svc-card__meta {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--c-muted);
}

.svc-card__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  box-shadow: 0 4px 12px var(--c-brand-shadow);
  transition: transform 0.25s ease;
}

.svc-card__arrow svg {
  width: 45%;
  height: 45%;
}

.svc-card:hover .svc-card__arrow {
  transform: translateX(4px);
}

@media (min-width: 1024px) {
  .services-entry__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .svc-card {
    gap: clamp(1.25rem, 2vw, 2rem);
    padding: 1.25rem clamp(1.25rem, 2.2vw, 2.25rem);
    border-radius: var(--radius);
  }

  .svc-card__icon {
    padding-right: clamp(1.25rem, 2vw, 2rem);
  }

  .svc-card__shape {
    height: clamp(56px, 5.5vw, 80px);
  }

  .svc-card__kicker {
    font-size: clamp(0.8rem, 0.6rem + 0.4vw, 1rem);
  }

  .svc-card__meta {
    font-size: clamp(0.9rem, 0.7rem + 0.4vw, 1.1rem);
  }

  .svc-card__arrow {
    width: clamp(52px, 4.5vw, 64px);
    height: clamp(52px, 4.5vw, 64px);
  }
}

/* ==========================================================================
   4. Secciones genéricas
   ========================================================================== */
.section {
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

/* Raya naranja bajo el título */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.75rem;
  background: var(--c-brand);
  border-radius: 2px;
}

.section__lead {
  margin-top: 1rem;
  font-size: var(--fs-lg);
  color: var(--c-text);
}

/* ==========================================================================
   5. Tabla comparativa de planes
   ========================================================================== */
.plans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.plans-table th,
.plans-table td {
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--c-line);
  text-align: center;
  vertical-align: middle;
}

.plans-table thead th {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--c-line);
  vertical-align: bottom;
}

/* Columna "Aspecto" */
.plans-table th[scope="row"],
.plans-table thead th:first-child {
  padding-left: 0.25rem;
  text-align: left;
  font-weight: 500;
  color: var(--c-ink);
}

.plans-table thead th:first-child {
  font-weight: 700;
}

.plans-table__plan {
  width: 22%;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-ink);
}

/* Raya naranja bajo el nombre del plan */
.plans-table__plan::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: var(--c-brand);
  border-radius: 2px;
}

/* Check: el círculo usa currentColor (= --c-brand) */
.check {
  color: var(--c-brand);
}

.plans-table .check {
  width: 22px;
  height: 22px;
  margin-inline: auto;
}

.plans-table .no {
  color: var(--c-muted);
}

.plans-table__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--c-muted);
}

@media (min-width: 640px) {
  .plans-table {
    font-size: 1rem;
  }

  .plans-table th,
  .plans-table td {
    padding: 0.85rem 0.5rem;
  }

  .plans-table th[scope="row"],
  .plans-table thead th:first-child {
    padding-left: 0.5rem;
  }

  .plans-table__plan {
    width: 18%;
    font-size: 1.15rem;
  }

  .plans-table .check {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   6. Beneficios (tarjetas compactas: icono a la izquierda en todas las pantallas)
   ========================================================================== */
.benefits {
  display: grid;
  gap: 0.75rem;
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 0.875rem;
  row-gap: 0.15rem;
  align-items: start;
  /* Títulos alineados entre tarjetas de distinta altura */
  align-content: start;
  padding: 0.95rem 1.1rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.benefit:hover {
  transform: translateY(-3px);
  border-color: var(--c-brand);
  box-shadow: var(--shadow);
}

.benefit__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-brand-soft);
  color: var(--c-brand-text);
  transition: background 0.25s ease, color 0.25s ease;
}

.benefit:hover .benefit__icon {
  background: var(--c-brand);
  color: var(--c-ink);
}

.benefit__icon svg {
  width: 26px;
  height: 26px;
}

.benefit__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
}

.benefit__text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--c-text);
}

@media (min-width: 640px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .benefit {
    padding: 1.1rem 1.25rem;
  }

  .benefit__icon {
    width: 52px;
    height: 52px;
  }

  .benefit__icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   7. Equipo
   ========================================================================== */
/* Grilla en todas las pantallas: se ven todos sin deslizar.
   Móvil 2 columnas, tablet 3, escritorio 5 (Departamento tiene 5 personas;
   Edificio, 3, alineadas a la izquierda) */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.875rem;
}

.team-card {
  text-align: center;
}

/* Móvil (2 columnas): si el último queda solo en su fila, va centrado */
@media (max-width: 639px) {
  .team-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.4375rem);
  }
}

/* Fotos verticales 3:4 (images/equipo/3x4/): se ve más cuerpo */
.team-card__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-bg-alt);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

.team-card__role {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-brand-text);
}

@media (min-width: 640px) {
  .team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .team {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* ==========================================================================
   8. Checklist (¿Qué revisamos en tu edificio?)
   ========================================================================== */
.checklist {
  padding: 1.25rem 1.1rem;
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-block: 0.55rem;
  font-size: 0.975rem;
  line-height: 1.45;
  color: var(--c-ink);
  break-inside: avoid;
}

.checklist .check {
  flex: none;
  width: 24px;
  height: 24px;
}

@media (min-width: 900px) {
  /* Dos columnas con línea divisoria, como en el mockup */
  .checklist {
    columns: 2;
    column-gap: clamp(2.5rem, 6vw, 5rem);
    column-rule: 1px solid var(--c-line);
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3rem);
  }

  .checklist li {
    font-size: 1.05rem;
  }

  /* Igual que el mockup: 8 ítems a la izquierda y 6 a la derecha */
  .checklist li:nth-child(9) {
    break-before: column;
  }

  .checklist .check {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   9. Sección con línea divisoria + cifra destacada
   ========================================================================== */
/* Línea de 1 px dibujada como fondo: ocupa solo el ancho del contenido,
   sin pisar el margen lateral del contenedor */
.section--divided {
  padding-top: 0;
}

.section--divided > .container {
  padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
  background: linear-gradient(var(--c-line), var(--c-line)) top center /
    calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(1rem, 4vw, 3rem);
  text-align: center;
  color: var(--c-ink);
}

/* Jerarquía como el mockup: el número manda; "Más de" y la etiqueta van
   al mismo tamaño, más chico */
.stat__value {
  display: flex;
  align-items: baseline;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__prefix,
.stat__label {
  font-size: clamp(1.6rem, 0.9rem + 3vw, 2.9rem);
}

.stat__prefix {
  margin-right: 0.28em;
}

/* ~1,35 veces "Más de", como en el mockup */
.stat__number {
  font-size: clamp(2.15rem, 1.2rem + 4vw, 3.9rem);
}

.stat__label {
  margin-top: 0.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   10. Sección con fondo alterno
   ========================================================================== */
.section--alt {
  background: var(--c-bg-alt);
}

/* ==========================================================================
   11. Nosotros
   ========================================================================== */
.about {
  display: grid;
  gap: 2rem;
}

.about__text p {
  max-width: 62ch;
  font-size: var(--fs-lg);
  line-height: 1.65;
}

.about__text p + p,
.about__more p {
  margin-top: 1rem;
}

.about__lead {
  font-weight: 600;
  color: var(--c-ink);
}

/* En móvil el texto extra se pliega tras "Leer más" */
.about__more {
  display: none;
}

.about__more.is-open {
  display: block;
}

.read-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--c-brand-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Marco de celular para el video (como pginspecciones.pe) */
.phone {
  justify-self: center;
  width: min(100%, 270px);
  margin: 0;
}

.phone__screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 10px solid #1d1d1f;
  border-radius: 40px;
  background: #000;
  box-shadow: 0 0 0 2px #3a3a3c, 0 24px 48px rgba(20, 22, 26, 0.28);
}

/* Isla superior del celular */
.phone__screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 34%;
  height: 22px;
  border-radius: 999px;
  background: #1d1d1f;
  transform: translateX(-50%);
  pointer-events: none;
}

.phone__poster,
.phone__screen video,
.phone__screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.phone__poster {
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.85;
}

.phone__screen video {
  object-fit: cover;
}

.phone__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}

.phone__play svg {
  width: 72px;
  height: 72px;
  padding: 18px 16px 18px 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 3px solid #fff;
  color: #fff;
  backdrop-filter: blur(2px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.phone__play:hover svg {
  transform: scale(1.08);
  background: var(--c-brand);
}

.phone__caption {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--c-muted);
}

@media (min-width: 1024px) {
  .phone {
    width: 300px;
  }
}

@media (min-width: 640px) {
  .about__more {
    display: block;
  }

  .read-more {
    display: none;
  }
}

@media (min-width: 1024px) {
  .about {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
  }
}

/* ==========================================================================
   12. Testimonios
   ========================================================================== */
/* Móvil: carrusel deslizable. Escritorio: grilla de 3 */
.testimonials {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 1rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.25rem var(--gutter) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.testimonials::-webkit-scrollbar {
  display: none;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.testimonial__stars {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--c-brand);
}

.testimonial__quote {
  flex: 1;
  margin: 0;
}

.testimonial__quote p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
}

.testimonial__author img {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.testimonial__author figcaption {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.testimonial__author strong {
  font-weight: 700;
  color: var(--c-ink);
}

.testimonial__author span {
  font-size: 0.85rem;
  color: var(--c-muted);
}

@media (min-width: 640px) {
  .testimonials {
    grid-auto-columns: 46%;
  }
}

@media (min-width: 1024px) {
  .testimonials {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

/* Encabezado de Clientes con la tarjeta de Google a la derecha */
.reviews-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

/* Tarjeta de calificación: lleva a las reseñas de Google Maps */
.google-rating {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.15rem 0.85rem 0.95rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--c-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.google-rating:hover {
  transform: translateY(-3px);
  border-color: var(--c-brand);
  box-shadow: var(--shadow);
}

.google-rating__score {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.google-rating__body {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.google-rating__stars {
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--c-brand);
}

.google-rating__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
}

.google-rating__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-brand-text);
}

.google-rating__cta svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.2s ease;
}

.google-rating:hover .google-rating__cta svg {
  transform: translate(2px, -2px);
}

/* Cierre de la sección: invitación a leer más reseñas */
.reviews-more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
}

.reviews-more__text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-text);
}

.reviews-more__text strong {
  color: var(--c-ink);
}

/* Botón a Google Maps: blanco con el logo a color, como una tarjeta
   (misma flecha en círculo dorado que las tarjetas de servicio) */
.google-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 60px;
  padding: 0.6rem 0.7rem 0.6rem 0.75rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--c-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.google-btn:hover {
  transform: translateY(-2px);
  border-color: var(--c-brand);
  box-shadow: var(--shadow);
}

.google-btn__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-bg-alt);
}

.google-btn__logo svg {
  width: 22px;
  height: 22px;
}

.google-btn__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.25;
}

.google-btn__text strong {
  font-size: 1rem;
  font-weight: 800;
}

.google-btn__text span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-muted);
}

.google-btn__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-ink);
  box-shadow: 0 4px 12px var(--c-brand-shadow);
  transition: transform 0.25s ease;
}

.google-btn__arrow svg {
  width: 18px;
  height: 18px;
}

.google-btn:hover .google-btn__arrow {
  transform: translate(2px, -2px);
}

@media (min-width: 640px) {
  .reviews-more {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
  }

  .google-btn {
    width: auto;
    flex: none;
    padding-right: 0.8rem;
  }

  .google-btn__text {
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .reviews-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .google-rating {
    flex: none;
  }
}

/* ==========================================================================
   13. Botón principal
   ========================================================================== */
/* Texto oscuro sobre el primario (contraste AA) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--c-brand);
  color: var(--c-ink);
  box-shadow: 0 4px 14px var(--c-brand-shadow);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   14. Footer (también es la sección #contacto)
   ========================================================================== */
.site-footer {
  /* Espacio abajo para que el botón flotante no tape el copyright */
  padding: 2.5rem 0 calc(2rem + 84px);
  /* Blanco: el logo PNG tiene fondo blanco */
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}

/* Las redes del footer no llevan la línea divisoria del header */
.site-footer .social {
  padding-left: 0;
  border-left: 0;
  min-height: 0;
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.site-footer__bottom {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-line);
}

.site-footer .brand img {
  height: 36px;
}

.site-footer__contact p {
  display: flex;
  flex-direction: column;
}

.site-footer__contact span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.site-footer__contact a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer__claims {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid #bdbdbb;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-footer__claims svg {
  width: 18px;
  height: 18px;
}

.site-footer__claims:hover {
  border-color: var(--c-brand);
  color: var(--c-brand-text);
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--c-muted);
}

@media (min-width: 900px) {
  .site-footer {
    padding-bottom: 2rem;
  }

  .site-footer__top,
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* El copyright deja libre la esquina del botón flotante */
  .site-footer__bottom {
    padding-right: 240px;
  }
}

/* ==========================================================================
   15. Botón flotante de WhatsApp
   ========================================================================== */
/* Verde oficial y logo grande: el usuario lo reconoce al instante */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.wa-float__btn svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

/* Onda de pulso para llamar la atención */
.wa-float__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2.4s ease-out infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.wa-float:hover .wa-float__btn {
  transform: scale(1.08);
}

/* Etiqueta solo en escritorio */
.wa-float__label {
  display: none;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-ink);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(20, 22, 26, 0.16);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .wa-float__label {
    display: block;
  }
}

/* Con el menú móvil abierto no debe quedar encima del panel */
body.nav-open .wa-float {
  display: none;
}

/* ==========================================================================
   16. Observaciones y herramientas (filas de fotos con texto visible)
   ========================================================================== */
.media-block + .media-block {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.media-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.media-block__title {
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem);
  font-weight: 700;
  color: var(--c-ink);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: none;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-brand-text);
}

.link-more .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.link-more:hover .icon {
  transform: translateX(3px);
}

/* Móvil: carrusel deslizable. Escritorio: 4 columnas */
.media-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 0.875rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.media-row::-webkit-scrollbar {
  display: none;
}

.media-card {
  scroll-snap-align: start;
}

.media-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-bg-alt);
}

.media-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover .media-card__img img {
  transform: scale(1.04);
}

/* Fotos de producto (fondo blanco): enteras y con borde */
.media-row--products .media-card__img {
  background: #fff;
  border: 1px solid var(--c-line);
}

.media-row--products .media-card__img img {
  object-fit: contain;
  padding: 0.75rem;
}

.media-row--products .media-card__img--photo img {
  object-fit: cover;
  padding: 0;
}

.media-card__title {
  margin-top: 0.75rem;
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

.media-card__text {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--c-muted);
}

@media (min-width: 640px) {
  .media-row {
    grid-auto-columns: 38%;
  }
}

@media (min-width: 1024px) {
  .media-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

/* ==========================================================================
   17. Páginas de galería (observaciones-1, herramientas-1)
   ========================================================================== */
.page-head {
  padding-block: clamp(1.75rem, 4vw, 3rem) 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-head__title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}

.page-head__title .eyebrow {
  margin-bottom: 0.9rem;
}

.page-head__title .eyebrow::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.9rem;
  background: var(--c-brand);
  border-radius: 2px;
}

.section--tight {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* Grilla (no carrusel): aquí el usuario vino a ver todas */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 0.875rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.25rem;
  }
}

/* Bloque de cierre con llamada a la acción */
.cta-band {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--c-bg-alt);
  border-left: 5px solid var(--c-brand);
  border-radius: var(--radius-lg);
}

.cta-band__title {
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn--ghost {
  background: var(--c-bg);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
}

.btn--ghost:hover {
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .cta-band__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   18. Secciones oscuras (del prototipo 2)
   ========================================================================== */
.section--dark {
  --on-dark: #fff;
  --on-dark-muted: rgba(255, 255, 255, 0.74);
  --line-dark: rgba(255, 255, 255, 0.14);
  background: var(--c-ink);
  color: var(--on-dark-muted);
}

.section--dark .section-title {
  color: var(--on-dark);
}

.section--dark .section__lead {
  color: var(--on-dark-muted);
}

.section--dark .link-more {
  color: var(--c-brand);
}

/* Etiqueta pequeña sobre el título */
.kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand-text);
}

.section--dark .kicker {
  color: var(--c-brand);
}

/* Título a la izquierda y controles a la derecha */
.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section__head--split > div:first-child {
  max-width: 760px;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--c-brand);
  color: var(--c-ink);
}

/* ==========================================================================
   19. Lo que encontramos: "Hallazgos reales" (carrusel a todo el ancho, del
   prototipo 2). Las flechas las maneja tdo.js ([data-rail])
   ========================================================================== */
/* El carrusel sale del contenedor pero su primer elemento queda alineado
   con el título, en cualquier ancho */
.rail {
  --rail-pad: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 72vw, 330px);
  gap: clamp(0.875rem, 1.5vw, 1.25rem);
  padding: 0 var(--rail-pad) 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.finding {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #2a2e36;
  scroll-snap-align: start;
}

.finding img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.finding:hover img {
  transform: scale(1.05);
}

.finding__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 3.5rem 1.1rem 1.1rem;
  background: linear-gradient(
    to top,
    rgba(10, 12, 16, 0.94) 0%,
    rgba(10, 12, 16, 0.6) 55%,
    rgba(10, 12, 16, 0) 100%
  );
}

.finding__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

/* Última tarjeta: invitación a la galería completa */
.finding--more {
  background: var(--c-brand);
}

.finding--more a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  height: 100%;
  padding: 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

.finding__more-num {
  font-size: clamp(4.5rem, 3rem + 5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.section--dark .finding--more .link-more {
  color: var(--c-ink);
}

/* Flechas del carrusel: solo con mouse (en táctil se desliza) */
.rail-nav {
  display: none;
  gap: 0.5rem;
}

.rail-nav__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--line-dark);
  border-radius: 50%;
  color: var(--on-dark);
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.rail-nav__btn:hover {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: var(--c-ink);
}

.rail-nav__btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.rail-nav__btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (hover: hover) and (min-width: 1024px) {
  .rail-nav {
    display: flex;
  }
}

/* ==========================================================================
   19b. Equipo y herramientas: "Especialistas, no vendedores" (contenido del
   prototipo 2) en franja dorada, para no pegarse a la sección oscura de
   Hallazgos: oscuro → dorado → blanco.
   Se llama .crew porque .team ya es el carrusel del equipo (sección 7).
   Sobre el dorado todo va en --c-ink (≈ 8:1); nunca blanco.
   ========================================================================== */
.crew {
  --crew-ink: var(--c-ink);
  --crew-ink-soft: color-mix(in srgb, var(--c-ink) 82%, var(--c-brand));
  --crew-glass: color-mix(in srgb, #fff 32%, transparent);
  --crew-line: color-mix(in srgb, var(--c-ink) 14%, transparent);
  position: relative;
  overflow: hidden;
  background: var(--c-brand);
  color: var(--crew-ink-soft);
}

/* Casita del logo en grande, como marca de agua */
.crew::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -18%;
  width: min(48vw, 560px);
  aspect-ratio: 142 / 160;
  background: var(--crew-ink);
  opacity: 0.06;
  -webkit-mask: url(/images/servicios-hero/icono-departamento.webp) center / contain no-repeat;
  mask: url(/images/servicios-hero/icono-departamento.webp) center / contain no-repeat;
  pointer-events: none;
}

.crew .kicker,
.crew .section-title,
.crew .link-more {
  color: var(--crew-ink);
}

/* La raya del título pasa a oscuro (la dorada no se vería) */
.crew .section-title::after {
  background: var(--crew-ink);
}

.crew .section__lead {
  color: var(--crew-ink-soft);
}

.crew__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
}

/* Foto con marco oscuro desplazado */
.crew__photo {
  position: relative;
  margin: 0 12px 12px 0;
}

.crew__photo::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border-radius: var(--radius-lg);
  background: var(--crew-ink);
}

.crew__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 505;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Especialidades: chips oscuros */
.crew__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.crew__roles li {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  background: var(--crew-ink);
  color: #fff;
}

.tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-block: 1.5rem 0.75rem;
}

.tool {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--crew-glass);
  border: 1px solid var(--crew-line);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, background 0.25s ease;
}

.tool:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, #fff 55%, transparent);
}

.tool img {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 6px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
}

.tool span {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--crew-ink-soft);
}

.tool strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--crew-ink);
}

@media (min-width: 520px) {
  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .crew__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 4rem;
  }

  /* Recorte 16:10 centrado: entra todo el equipo */
  .crew__photo img {
    aspect-ratio: 16 / 10;
    object-position: center top;
  }
}

/* ==========================================================================
   19c. Preguntas frecuentes (<details>, sin JS; del prototipo 2).
   El texto coincide con el FAQPage del <head> (SEO y buscadores con IA)
   ========================================================================== */
.faq__head {
  margin-bottom: 1.75rem;
}

.faq__head .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--c-brand-text);
}

.inline-link {
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--c-brand);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 1rem 3.5rem 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Signo + que gira a × al abrir */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 16px;
  height: 2.5px;
  margin-top: -1.25px;
  background: var(--c-brand-text);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-item[open] summary::after {
  transform: rotate(135deg);
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--c-text);
}

@media (min-width: 1024px) {
  .faq {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 4rem;
    align-items: start;
  }

  .faq__head {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   20. Hero de la home: bajada, botones, confianza e insignias
   (solo .hero--home; las subpáginas mantienen su hero)
   ========================================================================== */
.hero--home .hero__lead {
  max-width: 40ch;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Botones con icono (hero, bloques de cierre) */
.btn {
  gap: 0.55rem;
}

.btn .icon {
  width: 22px;
  height: 22px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Separador de punto entre ítems */
.trust li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--c-brand);
}

.trust strong {
  color: var(--c-ink);
}

.trust__stars {
  letter-spacing: 0.08em;
  color: var(--c-brand);
}

/* Insignias translúcidas sobre la foto */
.hero__badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 22, 26, 0.18);
  animation: badge-in 0.6s ease both, badge-float 5s ease-in-out 0.6s infinite;
}

.hero__badge strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.hero__badge-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-ink);
}

.hero__badge-icon svg {
  width: 22px;
  height: 22px;
}

.hero__badge-score {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.hero__badge .trust__stars {
  display: block;
  font-size: 0.85rem;
}

/* Móvil: solo la insignia de tiempo, en la esquina de la foto */
.hero__badge--time {
  top: calc(min(46vh, 75vw) - 4.25rem);
  right: 1rem;
}

.hero__badge--rating {
  display: none;
}

@keyframes badge-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes badge-float {
  50% {
    transform: translateY(-6px);
  }
}

@media (min-width: 640px) {
  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__badge--time {
    top: calc(min(52vh, 56vw) - 4.5rem);
  }
}

@media (min-width: 900px) {
  .hero--home .hero__inner {
    min-height: clamp(440px, 34vw, 540px);
  }

  .hero--home .hero__headline {
    font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  }

  .hero--home .hero__lead {
    max-width: min(46%, 40ch);
  }

  .hero__badge--time {
    top: auto;
    right: auto;
    bottom: 1.5rem;
    left: 50%;
  }

  .hero__badge--rating {
    display: flex;
    top: 1.5rem;
    right: calc(var(--gutter) + 1.5rem);
    animation-delay: 0.15s, 1.2s;
  }
}

/* ==========================================================================
   21. Nosotros de la home: titular con mensaje, checks, cifras y video
   ========================================================================== */
.about-section .section__head .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--c-brand-text);
}

.about__title {
  max-width: 20ch;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.9rem);
  line-height: 1.1;
}

.about-section .about__lead {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-ink);
}

.about__checks {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.about__checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
}

.about__checks .check {
  flex: none;
  width: 24px;
  height: 24px;
}

/* Cifras */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--radius);
}

.stats dd {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}

.stats dd span {
  color: var(--c-brand);
}

.stats dt {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-muted);
}

/* Calificación: tarjeta destacada que lleva a las reseñas de Google Maps */
.stats > .stats__rating {
  position: relative;
  flex-direction: column;
  background: var(--c-brand-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-brand) 45%, transparent);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats__rating dd:first-of-type {
  order: 1;
}

.stats__rating dt {
  order: 2;
  color: var(--c-text);
}

.stats__rating:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 2px var(--c-brand), 0 10px 24px var(--c-brand-shadow);
}

.stats__link {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  color: inherit;
}

/* El enlace cubre toda la tarjeta: más fácil de tocar en el celular */
.stats__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

/* Marco de foco solo con teclado (:focus-visible). Con :focus-within se
   quedaba marcado tras el click, porque el enlace abre otra pestaña y
   conserva el foco al volver */
.stats__link:focus {
  outline: none;
}

.stats__link:focus-visible::after {
  outline: 3px solid var(--c-brand);
  outline-offset: 3px;
}

/* Estrella intermitente: late y brilla para llamar la atención.
   prefers-reduced-motion la deja quieta (regla global de tdo-base.css) */
.stats__star {
  display: inline-block;
  color: var(--c-brand);
  animation: star-blink 1.6s ease-in-out infinite;
}

@keyframes star-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 0.55;
    transform: scale(1.25) rotate(-8deg);
    text-shadow: 0 0 14px var(--c-brand);
  }
}

.stats__rating:hover .stats__star {
  animation-play-state: paused;
  opacity: 1;
}

/* Bloque de texto (no flex) para que la flecha siga a la última palabra */
.stats dd.stats__hint {
  order: 3;
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--c-brand-text);
}

.stats__hint svg {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  vertical-align: -0.15em;
  transition: transform 0.2s ease;
}

.stats__rating:hover .stats__hint svg {
  transform: translate(2px, -2px);
}

/* El texto largo se pliega en todas las pantallas */
.about-section .about__more {
  display: none;
  margin-top: 1.5rem;
}

.about-section .about__more.is-open {
  display: block;
}

.about-section .read-more {
  display: inline-flex;
  margin-top: 1rem;
}

/* Celular sobre un círculo dorado, con etiqueta */
.about-section .phone {
  position: relative;
  isolation: isolate;
}

.about-section .phone::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 12%;
  left: 50%;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--c-brand-soft) 0%,
    color-mix(in srgb, var(--c-brand) 35%, #fff) 60%,
    transparent 61%
  );
  transform: translateX(-50%);
}

.phone__sticker {
  position: absolute;
  z-index: 4;
  top: 18%;
  left: -0.75rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 999px;
  background: var(--c-ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 22, 26, 0.25);
  transform: rotate(-6deg);
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-section .about__more {
    display: none;
  }

  .about-section .about__more.is-open {
    display: block;
  }

  .about-section .read-more {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .about__checks {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.5rem;
  }

  .phone__sticker {
    left: -1.75rem;
  }
}

/* ==========================================================================
   22. Navegación en las páginas de servicio: migas de pan + seguir explorando
   ========================================================================== */
.btn .icon--down {
  width: 18px;
  height: 18px;
}

.page-crumbs {
  padding-top: 0.85rem;
}

.page-crumbs .breadcrumb {
  margin-bottom: 0.85rem;
}

.explore__cta {
  background: var(--c-bg);
}

.explore__title {
  margin: clamp(2rem, 4vw, 3rem) 0 1rem;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem);
  font-weight: 700;
  color: var(--c-ink);
}

.explore__grid {
  display: grid;
  gap: 1rem;
}

.explore__grid .svc-card {
  background: var(--c-bg);
}

.explore__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0 1.5rem;
  font-weight: 700;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-lg);
  transition: background 0.2s ease, color 0.2s ease;
}

/* Flecha hacia la izquierda */
.explore__back .icon {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
}

.explore__back:hover {
  background: var(--c-ink);
  color: #fff;
}

@media (min-width: 1024px) {
  .explore__grid {
    grid-template-columns: 2fr 1fr;
    align-items: stretch;
  }
}

/* ==========================================================================
   23. Libro de Reclamaciones: aviso legal + formulario + confirmación
   (campos y envío iguales a la versión anterior; ver el <script> de la página)
   ========================================================================== */
.claims {
  max-width: 900px;
}

.claims-notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-brand-soft);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--radius);
}

.claims-notice strong {
  color: var(--c-ink);
}

.claims-notice__icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  color: var(--c-brand-text);
}

.claims-form {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.claims-form__note {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* Bloque numerado (fieldset + legend: lectores de pantalla lo anuncian) */
.form-block {
  min-width: 0;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.form-block__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}

.form-block__title span {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-ink);
}

/* Móvil: 1 columna. Tablet y escritorio: 2 (o 3) */
.form-grid {
  display: grid;
  gap: 1rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-ink);
}

.field__req {
  color: var(--c-brand-text);
}

.field__opt {
  font-weight: 500;
  color: var(--c-muted);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem; /* 16 px: iOS no hace zoom al enfocar */
  color: var(--c-ink);
  background: var(--c-bg-alt);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}

.input::placeholder {
  color: #9a9a9a;
}

.input:focus {
  outline: none;
  background: var(--c-bg);
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-shadow);
}

textarea.input {
  min-height: 150px;
  line-height: 1.55;
  resize: vertical;
}

/* Errores: solo después del primer intento de envío */
.was-validated .input:invalid {
  border-color: #c0392b;
  background: #fff6f5;
}

.was-validated .input:invalid:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.claims-form__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.btn--submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.btn--submit:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid color-mix(in srgb, var(--c-ink) 25%, transparent);
  border-top-color: var(--c-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-alert {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #a12a1e;
  background: #fff1ef;
  border: 1px solid #f0b8b0;
  border-radius: var(--radius);
}

.form-alert[hidden] {
  display: none;
}

/* Confirmación a pantalla completa */
.claims-success:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(20, 22, 26, 0.55);
}

.claims-success__box {
  width: 100%;
  max-width: 460px;
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 50px rgba(20, 22, 26, 0.3);
  animation: pop 0.3s ease;
}

.claims-success__box:focus {
  outline: none;
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
}

.claims-success__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-ink);
}

.claims-success__icon svg {
  width: 34px;
  height: 34px;
}

.claims-success h2 {
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--c-ink);
}

.claims-success p {
  margin-bottom: 1rem;
  line-height: 1.55;
  color: var(--c-text);
}

.claims-success__count {
  font-size: 0.875rem;
  color: var(--c-muted);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }

  .claims-form__actions {
    flex-direction: row;
    align-items: center;
  }

  .btn--submit {
    width: auto;
    min-width: 240px;
  }
}

@media (min-width: 900px) {
  .form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid--3 .field--full {
    grid-column: 1 / -1;
  }
}
