/* ==========================================================================
   CheckLab. Sistema basado en DESIGN.md (formas, tipografía y ritmo)
   con la paleta tomada de la gota del logo.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-var.woff2') format('woff2-variations'), url('../fonts/inter-latin-var.woff2') format('woff2');
}

:root {
  /* Colores de la gota */
  --color-ink: #04234a;        /* azul profundo: texto fuerte, secciones oscuras */
  --color-abyss: #021530;      /* casi negro azulado: titulares */
  --color-deep: #0b3a73;       /* superficies sobre fondo oscuro */
  --color-aqua: #2de6f0;       /* acento: CTA, estados activos, titulares sobre oscuro */
  --color-leaf: #12c26a;       /* verde del logo, acento secundario */
  --color-blue: #0050c8;       /* azul del logo */
  --color-mist: #e0f6f8;       /* banda clara con tinte agua */
  --color-fog: #e9eff2;        /* tarjetas y paneles */
  --color-charcoal: #3b4650;   /* texto de lectura */
  --color-slate: #5b6873;      /* texto secundario */
  --color-pebble: #8a96a0;     /* bordes, placeholders */
  --color-paper: #ffffff;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-micro: 12px;
  --text-caption: 14px;
  --text-body-sm: 16px;
  --text-body: 18px;
  --text-body-lg: clamp(20px, 2vw, 25px);
  --text-subheading: clamp(26px, 3vw, 36px);

  --radius-card: 10px;
  --radius-large: 28px;
  --radius-pill: 9999px;

  --shadow-subtle: rgba(2, 21, 48, 0.12) 0 0 0 1px;
  --shadow-lg: rgba(2, 21, 48, 0.08) 0 6px 20px 0;
  --shadow-xl: rgba(2, 21, 48, 0.15) 0 10px 32px 0, rgba(2, 21, 48, 0.04) 0 40px 40px 0;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --page-max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(88px, 12vw, 160px);
  --nav-h: 72px;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
}

/* las secciones tienen mucho aire arriba: el menú puede taparlo sin cubrir contenido */
#contacto {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

html:not(.lenis) {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: -0.007em;
  font-feature-settings: 'calt';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

figure {
  margin: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--color-aqua);
  color: var(--color-abyss);
}

.container {
  width: 100%;
  max-width: calc(var(--page-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */

.display {
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--color-abyss);
  text-wrap: balance;
}

.display--lg {
  font-size: clamp(44px, 7.4vw, 89px);
}

.display--xl {
  font-size: clamp(56px, 12vw, 160px);
  line-height: 0.85;
}

.display.on-dark {
  color: var(--color-aqua);
}

/* líneas partidas por SplitText: dejan espacio para descendentes */
.split-line {
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-mist);
  color: var(--color-ink);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tag--light {
  background: var(--color-paper);
}

.tag__drop {
  width: 11px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Botones y links
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: var(--text-body-sm);
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

/* relleno que sube como agua al pasar el mouse */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease-out);
}

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

.btn[type='submit']:hover .btn__icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--color-aqua);
  color: var(--color-abyss);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: var(--color-aqua);
}

.section--contact .btn--primary::before {
  background: var(--color-paper);
}

.section--contact .btn--primary:hover,
.section--contact .btn--primary:focus-visible {
  color: var(--color-ink);
}

.btn--outline {
  background: var(--color-paper);
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
  padding: 11px 22px;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  color: var(--color-paper);
}

.link {
  position: relative;
  font-weight: 600;
  color: var(--color-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.5s var(--ease-out);
}

.link:hover,
.link:focus-visible {
  background-size: 0% 1.5px;
  background-position: 100% 100%;
}

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease;
}

.nav.is-scrolled {
  box-shadow: var(--shadow-subtle);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: calc(var(--page-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.nav__segments {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-fog);
}

.nav__link {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: var(--color-charcoal);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--color-abyss);
}

.nav__link.is-active {
  color: var(--color-abyss);
}

.nav__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--color-aqua);
  pointer-events: none;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-fog);
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}

.nav__toggle span:first-child {
  top: 19px;
}

.nav__toggle span:last-child {
  top: 27px;
}

.nav__toggle[aria-expanded='true'] span:first-child {
  top: 23px;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded='true'] span:last-child {
  top: 23px;
  transform: rotate(-45deg);
}

/* Menú mobile */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
  background: var(--color-ink);
  clip-path: circle(0% at calc(100% - 44px) 36px);
  transition: clip-path 0.7s var(--ease-in-out);
}

.menu.is-open {
  clip-path: circle(150% at calc(100% - 44px) 36px);
}

.menu[hidden] {
  display: none;
}

.menu__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu__link {
  color: var(--color-paper);
  font-size: clamp(36px, 11vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s ease;
}

.menu.is-open .menu__link {
  opacity: 1;
  transform: none;
}

.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.18s, 0.18s, 0s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.23s, 0.23s, 0s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.28s, 0.28s, 0s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.33s, 0.33s, 0s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 0.38s, 0.38s, 0s; }

.menu__link:hover,
.menu__link:focus-visible {
  color: var(--color-aqua);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 104px));
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  max-width: 13ch;
  margin-top: 28px;
  font-size: clamp(46px, 8.6vw, 112px);
  line-height: 0.88;
}

.hero__lead {
  margin-top: 28px;
  max-width: 36ch;
  color: var(--color-slate);
  font-size: var(--text-body-lg);
  line-height: 1.3;
  letter-spacing: -0.009em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.hero__media {
  position: relative;
  width: calc(100% - var(--gutter) * 2);
  max-width: 1440px;
  height: clamp(320px, 78vh, 820px);
  margin: clamp(56px, 9vh, 96px) auto 0;
  overflow: hidden;
  border-radius: var(--radius-large);
  /* el JS la abre desde una píldora hasta el ancho completo */
  clip-path: inset(0 0 0 0 round var(--radius-large));
}

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

/* evita el destello inicial mientras carga el JS */
.js [data-hero] {
  visibility: hidden;
}

.js.no-anim [data-hero] {
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Cinta
   -------------------------------------------------------------------------- */

.ticker {
  margin-top: clamp(56px, 8vw, 96px);
  padding-block: 22px;
  overflow: hidden;
  border-block: 1px solid rgba(2, 21, 48, 0.1);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  color: var(--color-ink);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ticker__track span::after {
  content: '';
  width: 12px;
  height: 16px;
  background: var(--color-aqua);
  clip-path: path('M6 0C6 0 0 7 0 10.5a6 6 0 0 0 12 0C12 7 6 0 6 0z');
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-gap);
}

.section--dark {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.78);
}

.section--mist {
  background: var(--color-mist);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(56px, 8vw, 112px);
}

.section__count {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-body-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-bottom: 0.6em;
}

.section__count--light {
  color: var(--color-slate);
}

/* --------------------------------------------------------------------------
   Check Básico
   -------------------------------------------------------------------------- */

.check__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 32px clamp(32px, 6vw, 96px);
  margin-bottom: clamp(56px, 8vw, 104px);
}

.check__head .display {
  margin-top: 24px;
  max-width: 12ch;
}

.check__intro p {
  color: var(--color-charcoal);
  font-size: var(--text-body-lg);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.check__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

.check__groups {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.check__group {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px clamp(24px, 4vw, 56px);
  padding-top: 28px;
  border-top: 1px solid rgba(2, 21, 48, 0.12);
}

.check__label {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.check__label h3 {
  color: var(--color-abyss);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.check__label span {
  color: var(--color-slate);
  font-size: var(--text-caption);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.check__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.param {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  background: var(--color-fog);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

/* al pasar el mouse la tarjeta se "llena" de agua desde abajo */
.param::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-mist);
  transform: translateY(101%);
  transition: transform 0.7s var(--ease-out);
}

.param:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-subtle);
}

.param:hover::before {
  transform: translateY(0);
}

.param__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.param__name {
  margin: 0;
  color: var(--color-abyss);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.param__ref {
  flex: none;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-micro);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.param__ref--absent {
  background: var(--color-ink);
  color: var(--color-aqua);
}

.param:hover .param__ref:not(.param__ref--absent) {
  background: var(--color-aqua);
  color: var(--color-abyss);
}

.param p {
  color: var(--color-slate);
  font-size: var(--text-body-sm);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Preguntas frecuentes
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.faq__head .display {
  margin-top: 24px;
}

.faq__lead {
  margin-top: 24px;
  color: var(--color-slate);
}

.faq__list {
  display: grid;
  gap: 12px;
}

.faq__item {
  border-radius: 20px;
  background: var(--color-paper);
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.5s var(--ease-out);
}

.faq__item:hover,
.faq__item[open] {
  box-shadow: var(--shadow-lg), var(--shadow-subtle);
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  color: var(--color-abyss);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  border-radius: 20px;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__num {
  flex: none;
  color: var(--color-pebble);
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
}

.faq__text {
  flex: 1;
  transition: transform 0.5s var(--ease-out);
}

.faq__q:hover .faq__text {
  transform: translateX(4px);
}

/* el + gira y se convierte en × */
.faq__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-fog);
  transition: background-color 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--color-ink);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__q:hover .faq__icon {
  background: var(--color-mist);
}

.faq__item[open] .faq__icon {
  background: var(--color-aqua);
  transform: rotate(135deg);
}

.faq__a {
  overflow: hidden;
}

.faq__a p {
  padding: 0 24px 24px 60px;
  color: var(--color-charcoal);
  font-size: var(--text-body-sm);
  line-height: 1.6;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */

.services {
  display: grid;
  gap: clamp(72px, 10vw, 140px);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.service--flip .service__media {
  order: 2;
}

.service__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--color-deep);
}

.service__media img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  transition: scale 1s var(--ease-out);
}

.service:hover .service__media img {
  scale: 1.04;
}

.service__num {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-deep);
  color: var(--color-aqua);
  font-size: var(--text-micro);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.service__title {
  color: var(--color-paper);
  font-size: clamp(30px, 3.6vw, 45px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.service__body p {
  max-width: 46ch;
  font-size: var(--text-body);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Filtros
   -------------------------------------------------------------------------- */

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.filter {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius-large);
  background: var(--color-paper);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.filter:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.filter__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-fog);
}

.filter__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  mix-blend-mode: multiply;
  transition: scale 0.9s var(--ease-out);
}

.filter:hover .filter__media img {
  scale: 1.07;
}

.filter__body {
  padding: 24px 12px 16px;
}

.filter__title {
  position: relative;
  display: inline;
  color: var(--color-abyss);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(var(--color-aqua), var(--color-aqua)) 0 88% / 0% 0.32em no-repeat;
  transition: background-size 0.6s var(--ease-out);
}

.filter:hover .filter__title {
  background-size: 100% 0.32em;
}

.filter__body p {
  margin-top: 12px;
  color: var(--color-slate);
  font-size: var(--text-body-sm);
}

/* --------------------------------------------------------------------------
   Sobre nosotros
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
}

.about__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* forma de arco, como la parte alta de una gota */
  border-radius: 1000px 1000px var(--radius-large) var(--radius-large);
  background: var(--color-fog);
}

.about__media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
}

.about__body .display {
  margin-top: 24px;
}

.about__text {
  margin-top: 36px;
  color: var(--color-ink);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.section--contact {
  padding-top: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-large);
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.8);
}

.contact__lead {
  margin-top: 20px;
  max-width: 34ch;
  font-size: var(--text-body-lg);
  line-height: 1.3;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-caption);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: var(--color-paper);
  color: var(--color-abyss);
  font-size: var(--text-body-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-pebble);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--color-pebble);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-aqua);
  box-shadow: 0 0 0 3px rgba(45, 230, 240, 0.35);
}

.field [aria-invalid='true'] {
  border-color: #ff8a8a;
}

.form__error {
  color: #ffb4b4;
  font-size: var(--text-caption);
}

.form .btn {
  justify-self: start;
  margin-top: 6px;
}

.contact__media {
  overflow: hidden;
  border-radius: 20px;
  min-height: 320px;
}

.contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease-out);
}

.contact:hover .contact__media img {
  scale: 1.03;
}

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

.footer {
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--color-fog);
  overflow: hidden;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand img {
  height: 40px;
  width: auto;
}

.socials {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  box-shadow: var(--shadow-subtle);
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.5s var(--ease-out);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social:hover,
.social:focus-visible {
  background: var(--color-ink);
  color: var(--color-aqua);
  transform: translateY(-4px);
}

.footer__word {
  margin: clamp(32px, 6vw, 72px) 0 0;
  color: var(--color-ink);
  /* el JS ajusta el tamaño para que ocupe justo el ancho del contenedor */
  font-size: clamp(56px, 16vw, 260px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-align: center;
  padding-bottom: 0.04em;
  white-space: nowrap;
  user-select: none;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-block: 28px;
  border-top: 1px solid rgba(2, 21, 48, 0.12);
  color: var(--color-slate);
  font-size: var(--text-caption);
}

/* --------------------------------------------------------------------------
   Cursor de gota (solo mouse)
   -------------------------------------------------------------------------- */

.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .has-cursor,
  .has-cursor * {
    cursor: none !important;
  }

  .has-cursor input,
  .has-cursor textarea {
    cursor: text !important;
  }

  .has-cursor .cursor {
    display: block;
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 1000;
    pointer-events: none;
  }
}

.cursor__drop,
.cursor__trail {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: transform;
}

.cursor__drop {
  width: 18px;
  height: 24px;
  /* el centro de la panza de la gota queda justo en el puntero */
  margin: -15.5px 0 0 -9px;
}

.cursor__scale {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 64%;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cursor__drop svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* el JS la gira hacia donde va el mouse y la estira con la velocidad */
  transform-origin: 50% 64%;
  filter: drop-shadow(0 2px 3px rgba(2, 21, 48, 0.22));
}

.cursor.is-hover .cursor__scale {
  transform: scale(1.45);
}

.cursor.is-down .cursor__scale {
  transform: scale(0.8);
}

.cursor.is-text .cursor__scale {
  transform: scale(0);
}

/* rastro de gotitas, chico y sutil */
.cursor__trail {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #7fe3f2;
}

.cursor__trail:nth-child(2) {
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
}

.cursor__trail:nth-child(3) {
  width: 2px;
  height: 2px;
  margin: -1px 0 0 -1px;
}

.ripple {
  position: fixed;
  z-index: 999;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1.5px solid var(--color-aqua);
  border-radius: 50%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Condiciones y precios
   -------------------------------------------------------------------------- */

.section--pricing {
  padding-block: 0 clamp(72px, 9vw, 120px);
}

.section--contact {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.pricing {
  position: relative;
  display: flex;
  justify-content: center;
}

.pricing__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 30px 20px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.4s ease;
}

.pricing__btn:hover,
.pricing.is-open .pricing__btn {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  background: var(--color-deep);
}

.pricing__drop {
  width: 18px;
  height: 24px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing.is-open .pricing__drop {
  transform: translateY(-2px) rotate(-12deg) scale(1.1);
}

.pricing__chev {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-aqua);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease-out);
}

.pricing.is-open .pricing__chev {
  transform: rotate(180deg);
}

/* popup: aparece con rebote y queda flotando mientras el mouse está encima */
.pricing__pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 18px);
  z-index: 50;
  width: min(440px, calc(100vw - 32px));
  translate: -50% 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.9);
  transform-origin: 50% 100%;
  transition:
    opacity 0.3s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0.55s;
}

/* puente invisible para pasar del botón al popup sin que se cierre */
.pricing__pop::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 22px;
}

.pricing.is-open .pricing__pop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.3s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s;
}

.pricing__card {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  background: var(--color-paper);
  color: var(--color-charcoal);
  box-shadow: var(--shadow-xl), var(--shadow-subtle);
  text-align: left;
}

.pricing.is-open .pricing__card {
  animation: pricing-float 3.4s ease-in-out 0.55s infinite;
}

/* si arriba no entra, se abre hacia abajo */
.pricing.is-below .pricing__pop {
  bottom: auto;
  top: calc(100% + 18px);
  transform: translateY(-18px) scale(0.9);
  transform-origin: 50% 0;
}

.pricing.is-below.is-open .pricing__pop {
  transform: none;
}

.pricing.is-below .pricing__pop::after {
  top: auto;
  bottom: 100%;
}

.pricing.is-below .pricing__card::after {
  top: auto;
  bottom: 100%;
  translate: -50% 1px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.pricing__close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--color-fog);
  color: var(--color-ink);
  cursor: pointer;
  place-items: center;
}

.pricing__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* flechita que apunta al botón */
.pricing__card::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 18px;
  height: 10px;
  translate: -50% -1px;
  background: var(--color-paper);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

@keyframes pricing-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-0.4deg); }
}

.pricing__eyebrow {
  color: var(--color-slate);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing__main {
  margin-top: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--color-ink);
  color: var(--color-paper);
}

.pricing__main h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.pricing__price span {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-caption);
}

.pricing__price strong {
  color: var(--color-aqua);
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pricing__block {
  margin-top: 18px;
}

.pricing__block h4 {
  margin: 0 0 10px;
  color: var(--color-abyss);
  font-size: 15px;
  font-weight: 700;
}

.pricing__zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing__zones li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-card);
  background: var(--color-mist);
  font-size: var(--text-caption);
}

.pricing__zones strong {
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.pricing__notes {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-caption);
  line-height: 1.45;
}

.pricing__notes li {
  position: relative;
  padding-left: 16px;
}

.pricing__notes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 6px;
  height: 8px;
  background: var(--color-aqua);
  clip-path: path('M3 0C3 0 0 3.5 0 5.2a3 3 0 0 0 6 0C6 3.5 3 0 3 0z');
}

.pricing__notes strong {
  color: var(--color-abyss);
}

.pricing__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-aqua);
  color: var(--color-abyss);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.pricing__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-out);
}

.pricing__cta:hover,
.pricing__cta:focus-visible {
  background: var(--color-ink);
  color: var(--color-aqua);
}

.pricing__cta:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   WhatsApp flotante
   -------------------------------------------------------------------------- */

.wa-fab {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-fab.is-away {
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  pointer-events: none;
}

.wa-fab__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(18, 140, 74, 0.35);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

/* onda suave que invita a tocar */
.wa-fab__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-pulse 2.6s ease-out infinite;
}

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

.wa-fab__icon svg {
  width: 30px;
  height: 30px;
}

.wa-fab__bubble {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.wa-fab__phone {
  fill: #fff;
}

.wa-fab__label {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-lg), var(--shadow-subtle);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
  pointer-events: none;
}

.wa-fab:hover .wa-fab__icon,
.wa-fab:focus-visible .wa-fab__icon {
  transform: scale(1.08) rotate(-8deg);
  box-shadow: 0 12px 30px rgba(18, 140, 74, 0.45);
}

.wa-fab:hover .wa-fab__label,
.wa-fab:focus-visible .wa-fab__label {
  opacity: 1;
  transform: none;
}

.wa-fab:focus-visible {
  outline: none;
}

.wa-fab:focus-visible .wa-fab__icon {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

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

@media (max-width: 1180px) {
  .nav__segments,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 64px;
  }

  .nav__brand img {
    height: 28px;
  }

  .service,
  .about,
  .contact,
  .check__head,
  .check__group,
  .faq {
    grid-template-columns: 1fr;
  }

  .check__label,
  .faq__head {
    position: static;
  }

  .service--flip .service__media {
    order: 0;
  }

  .about__media {
    max-width: 440px;
  }

  .contact__media {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .pricing__pop {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    translate: none;
    border-radius: 24px;
  }

  .pricing__card::after,
  .pricing__pop::after {
    display: none;
  }

  .pricing__card {
    padding: 20px;
  }

  .pricing__close {
    display: grid;
  }

  /* fondo oscurecido detrás de la hoja de precios */
  .pricing::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(2, 21, 48, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }

  .pricing.is-open::before {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s;
  }

  .pricing__zones {
    grid-template-columns: 1fr;
  }

  .pricing.is-below .pricing__pop {
    top: auto;
    transform: translateY(18px) scale(0.9);
    transform-origin: 50% 100%;
  }

  .pricing.is-below.is-open .pricing__pop {
    transform: none;
  }

  .wa-fab__icon {
    width: 54px;
    height: 54px;
  }

  /* en celular el popup de precios ocupa la parte de abajo */
  .wa-fab.is-covered {
    opacity: 0;
    transform: translateY(16px) scale(0.8);
    pointer-events: none;
  }

  .filters,
  .form__row,
  .check__grid {
    grid-template-columns: 1fr;
  }

  .param {
    padding: 20px;
  }

  .faq__q {
    padding: 18px;
    gap: 12px;
  }

  .faq__num {
    display: none;
  }

  .faq__a p {
    padding: 0 18px 20px;
  }

  .hero__media {
    height: 62vh;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section__count {
    display: none;
  }

  .form .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Movimiento reducido
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker__track,
  .pricing.is-open .pricing__card,
  .wa-fab__icon::before {
    animation: none;
  }
}
