/* =============================================================
   LIMPIEZAS BARRACHINA — hoja de estilos única
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   9. Movimiento reducido
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Azules del logo. --navy-800 es el azul exacto de la marca. */
  --navy-900: #04152F;
  --navy-850: #061B3D;
  --navy-800: #02225F;
  --navy-700: #0B3183;
  --blue-600: #1A4BAE;
  --blue-500: #2C63D4;

  /* Verde fosforito del logo y sus matices */
  --lime:      #C1FF72;
  --lime-soft: #DAFFA8;
  --lime-deep: #93D93B;
  --lime-ink:  #4C7A10;

  /* Claros */
  --paper:  #FFFFFF;
  --mist:   #F3F8FB;
  --mist-2: #E6EFF5;

  /* Tinta */
  --ink:      #04152F;
  --ink-soft: #2E5570;
  --ink-mute: #6D8CA3;

  /* Sobre fondo oscuro */
  --light:      #EAF4F9;
  --light-soft: #B9D2E1;
  --light-mute: #7C9CB2;

  --line:       rgba(4, 21, 47, .10);
  --line-light: rgba(234, 244, 249, .14);

  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-soft:   cubic-bezier(.25, .46, .45, .94);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);

  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1240px;
  --gut: clamp(1.15rem, 4vw, 2.75rem);
  --radius: 22px;
  --radius-sm: 14px;

  --shadow-soft: 0 2px 6px rgba(4, 21, 47, .04), 0 12px 32px -12px rgba(4, 21, 47, .12);
  --shadow-lift: 0 30px 70px -28px rgba(4, 21, 47, .34), 0 10px 26px -14px rgba(26, 75, 174, .22);
  --shadow-deep: 0 50px 100px -40px rgba(2, 10, 26, .8);
}


/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -.028em;
  font-weight: 800;
}

::selection { background: var(--lime); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--lime-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.15rem; background: var(--navy-900); color: var(--light);
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. TIPOGRAFÍA COMPARTIDA
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono);
  font-size: .715rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1.1rem;
}
.kicker-light { color: var(--lime); }

/* El halo late con un anillo que escala, no animando la sombra: una sombra
   animada obliga a repintar; escalar un anillo no. */
.kicker-dot {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
}
.kicker-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(193, 255, 114, .5);
  animation: pulseDot 2.6s var(--ease-soft) infinite;
}
@keyframes pulseDot {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(4.2); opacity: 0; }
  100% { transform: scale(4.2); opacity: 0; }
}

.sec-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.6rem, 5vw, 4.2rem);
}
.sec-head-left { text-align: left; margin-inline: 0; }

.sec-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  margin-bottom: 1.05rem;
}
.sec-title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--lime-deep), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-sub {
  font-size: clamp(1rem, 1.35vw, 1.115rem);
  color: var(--ink-soft);
  max-width: 40rem;
  margin-inline: auto;
}
.sec-head-left .sec-sub { margin-inline: 0; }
.sec-head-light .sec-title { color: var(--paper); }
.sec-head-light .sec-sub { color: var(--light-soft); }

/* =============================================================
   5. COMPONENTES
   ============================================================= */

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .82rem 1.5rem;
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 700;
  font-size: .945rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft),
              background-color .35s var(--ease-out), color .35s var(--ease-out),
              border-color .35s var(--ease-out);
}
.btn svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease-out);
}
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 1.02rem 1.9rem; font-size: 1.005rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(120deg, var(--blue-500), var(--blue-600) 55%, var(--navy-700));
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(26, 75, 174, .78);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -18px rgba(26, 75, 174, .68);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-accent {
  background: linear-gradient(120deg, var(--lime), var(--lime-deep));
  color: var(--navy-900);
  box-shadow: 0 10px 28px -12px rgba(147, 217, 59, .75);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px -18px rgba(147, 217, 59, .6);
}

.btn-whatsapp {
  background: #25D366;
  color: #062B14;
  box-shadow: 0 10px 26px -12px rgba(37, 211, 102, .85);
}
.btn-whatsapp svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-whatsapp:hover {
  background: #2BE070;
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -18px rgba(37, 211, 102, .7);
}

.btn-ghost {
  border: 1px solid var(--line-light);
  color: var(--light);
  background: rgba(234, 244, 249, .05);
}
.btn-ghost:hover {
  background: rgba(234, 244, 249, .12);
  border-color: rgba(234, 244, 249, .3);
  transform: translateY(-3px);
}
.btn-ghost-light {
  border: 1px solid var(--line-light);
  color: var(--light);
}
.btn-ghost-light:hover { background: rgba(234, 244, 249, .1); }

.has-magnetic { position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* ---------- Cristal (la firma visual) ---------- */
.glass {
  position: relative;
  border-radius: var(--radius);
  /* Reserva sólida primero: si el navegador no soporta blur, sigue legible */
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-soft);
}
.glass-dark {
  background: rgba(11, 38, 60, .74);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-deep);
  color: var(--light);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass {
    background: rgba(255, 255, 255, .58);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    backdrop-filter: blur(22px) saturate(165%);
  }
  .glass-dark {
    background: rgba(9, 34, 55, .5);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
  }
}

/* Las tarjetas de servicio llevan foto y se inclinan con el ratón. El cristal
   translúcido ahí no se aprecia (detrás solo hay fondo liso) y en cambio
   obliga a recalcular el desenfoque en cada movimiento: van en sólido. */
.card-svc,
.card-mini {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, .9);
}
/* Las fichas flotantes tampoco: al moverse sin parar obligarían a recalcular
   el desenfoque de lo que tienen detrás en cada fotograma. */
.hero-chip,
.porque-chip {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, .93);
}

/* El cristal de verdad se reserva para donde se nota: la barra de navegación
   (por la que pasa la web al hacer scroll), el formulario y las tres columnas
   grandes de tarifas. En el resto, un sólido translúcido se ve igual. */
.card-op,
.ba-badge,
.tarifa-mini {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.card-op { background: rgba(255, 255, 255, .92); }
.ba-badge, .tarifa-mini { background: rgba(6, 27, 61, .82); }

/* Borde superior de luz — detalle que da el aire caro */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.glass-dark::before {
  background: linear-gradient(150deg, rgba(193, 255, 114, .55), rgba(255, 255, 255, .05) 38%, transparent 70%);
}

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: clamp(1rem, 1.7vw, 1.5rem); }
.cards-3, .cards-4 { grid-template-columns: 1fr; }

.card {
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  display: flex; flex-direction: column;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
/* Las tarjetas de servicio llevan foto a sangre: el aire lo pone .card-body */
.card-svc { padding: 0; overflow: hidden; }
.card-svc:hover {
  box-shadow: var(--shadow-lift);
}

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  margin-bottom: 1.25rem;
  background: linear-gradient(140deg, var(--navy-800), var(--blue-600));
  box-shadow: 0 12px 26px -14px rgba(2, 34, 95, .9);
}
/* Se sube para morder la foto — el detalle que cose las dos mitades */
.card-body .card-icon {
  margin-top: -46px;
  position: relative; z-index: 2;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 16px 32px -16px rgba(2, 10, 26, .95);
}
.card-icon svg {
  width: 25px; height: 25px;
  fill: none; stroke: var(--lime); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.card-title {
  font-size: 1.235rem;
  margin-bottom: .6rem;
  letter-spacing: -.022em;
}
.card-sm .card-title { font-size: 1.135rem; }

.card-text { color: var(--ink-soft); font-size: .955rem; }

.card-list {
  margin-top: 1.1rem;
  display: grid; gap: .5rem;
  font-size: .89rem;
  color: var(--ink-soft);
}
.card-list li { position: relative; padding-left: 1.4rem; }
.card-list li::before {
  content: "";
  position: absolute; left: 0; top: .52em;
  width: 7px; height: 7px; border-radius: 50%;
  /* Sobre blanco el verde del logo se lava: matiz medio + filo oscuro */
  background: var(--lime-deep);
  box-shadow: 0 0 0 1px rgba(76, 122, 16, .5), 0 0 0 4px rgba(147, 217, 59, .16);
}
.card-list strong { color: var(--ink); font-weight: 600; }

.card-price {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: .83rem;
  color: var(--ink-mute);
}
.card-price span {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -.02em;
}

.card-link {
  margin-top: auto;
  padding-top: 1.35rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .89rem;
  color: var(--blue-600);
}
.card-link span { transition: transform .4s var(--ease-out); }
.card-link:hover span { transform: translateX(5px); }

/* ---------- Fotografía de las tarjetas ---------- */
.card-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-soft), filter .6s var(--ease-out);
}
/* Solo escala: retocar el color de la foto al vuelo obliga a repintarla entera */
.card-svc:hover .card-media img { transform: scale(1.055); }
/* Velo inferior: sostiene el icono que se solapa y liga la foto con la tarjeta */
.card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 21, 47, .5), transparent 52%);
  pointer-events: none;
}

.card-body {
  display: flex; flex-direction: column;
  flex: 1;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
}

/* =============================================================
   6. SECCIONES
   ============================================================= */

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: .85rem var(--gut);
  transition: background-color .45s var(--ease-out), backdrop-filter .45s var(--ease-out),
              box-shadow .45s var(--ease-out), padding .45s var(--ease-out);
}
.nav.is-scrolled {
  padding-block: .55rem;
  background: rgba(4, 21, 47, .82);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(234, 244, 249, .1), 0 18px 40px -30px rgba(0, 0, 0, .9);
}
.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex; align-items: center; gap: 1.4rem;
}

.nav-brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
/* El logo va sobre una placa clara: el azul de la marca desaparecería
   sobre el azul de la barra. */
.nav-mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  padding: 6px;
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 10px 24px -12px rgba(2, 10, 26, .85);
}
.nav-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-name { display: flex; flex-direction: column; line-height: 1.16; }
.nav-name strong {
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  letter-spacing: -.025em; color: var(--light);
}
.nav-name em {
  font-style: normal; font-family: var(--mono);
  font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--light-mute);
}

.nav-links { display: none; gap: 1.65rem; }
.nav-link {
  position: relative;
  font-size: .915rem; font-weight: 500;
  color: var(--light-soft);
  padding: .3rem 0;
  transition: color .35s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px;
  background: linear-gradient(90deg, var(--lime), var(--lime-deep));
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-phone {
  display: none; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .84rem;
  color: var(--light);
  transition: color .35s var(--ease-out);
}
.nav-phone svg {
  width: 17px; height: 17px;
  fill: none; stroke: var(--lime); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-phone:hover { color: var(--lime); }
.nav-cta { display: none; }

.nav-burger {
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 6px;
  border-radius: 12px;
  border: 1px solid var(--line-light);
  background: rgba(234, 244, 249, .06);
}
.nav-burger span {
  display: block; width: 18px; height: 1.8px; border-radius: 2px;
  background: var(--light);
  transition: transform .45s var(--ease-soft), opacity .3s;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.9px) rotate(-45deg); }

.menu-movil {
  position: fixed; inset: 0; z-index: 95;
  background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
  display: grid; align-content: center; gap: 2.5rem;
  padding: 6rem var(--gut) 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.menu-movil[aria-hidden="false"] { clip-path: inset(0); }
.menu-movil nav { display: grid; gap: .35rem; }
.menu-movil nav a {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: -.035em;
  color: var(--light);
  padding: .32rem 0;
  border-bottom: 1px solid var(--line-light);
}
.menu-movil-foot { display: grid; gap: .9rem; justify-items: start; }
.menu-movil-foot p { font-family: var(--mono); font-size: .74rem; color: var(--light-mute); letter-spacing: .06em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 8.5rem var(--gut) 5rem;
  background: linear-gradient(168deg, var(--navy-900) 0%, var(--navy-850) 45%, var(--navy-800) 100%);
  color: var(--light);
  overflow: hidden;
  isolation: isolate;
}

/* El degradado vivo de la portada.
   Antes animábamos los colores del degradado, y eso obliga al navegador a
   volver a dibujar y desenfocar toda la capa en cada fotograma (unos 60 por
   segundo): de ahí los tirones. Ahora la capa se pinta UNA vez y solo se
   mueve, se escala y gira, que es trabajo de tarjeta gráfica y sale gratis. */
.hero-mesh {
  position: absolute; inset: -30%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 30% 38%, rgba(147, 217, 59, .5), transparent 64%),
    radial-gradient(34% 36% at 74% 24%, rgba(26, 75, 174, .6), transparent 66%),
    radial-gradient(32% 34% at 58% 74%, rgba(44, 99, 212, .42), transparent 66%),
    radial-gradient(26% 28% at 18% 78%, rgba(193, 255, 114, .28), transparent 68%);
  filter: blur(64px) saturate(135%);
  opacity: .78;
  will-change: transform;
  animation: meshDrift 34s var(--ease-soft) infinite;
}
/* Solo desplazamiento y giro, sin escalar: al escalar una capa desenfocada el
   navegador tiene que volver a generarla, y ahí se pierde la suavidad. */
@keyframes meshDrift {
  0%, 100% { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  50%      { transform: translate3d(4%, 3%, 0) rotate(10deg); }
}

.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(234, 244, 249, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 244, 249, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
}

.hero-inner {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto;
  display: grid; gap: clamp(2.6rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.55rem, 6.4vw, 4.85rem);
  color: var(--paper);
  margin-bottom: 1.5rem;
  max-width: 15ch;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--lime), var(--lime-deep) 60%, var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.03rem, 1.55vw, 1.19rem);
  color: var(--light-soft);
  max-width: 34rem;
  margin-bottom: 2.1rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }

.hero-badges { display: grid; gap: .6rem; }
.hero-badges li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem;
  color: var(--light-mute);
}
.hero-badges svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--lime); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

.hero-visual { position: relative; }
/* La foto de portada es un recorte sin fondo: el marco pinta detrás el azul
   de la marca con un halo verde, y la persona queda "de pie" sobre él. */
.hero-photo {
  position: relative; z-index: 1; margin: 0;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(70% 48% at 50% 18%, rgba(193, 255, 114, .32), transparent 72%),
    radial-gradient(60% 40% at 50% 100%, rgba(44, 99, 212, .55), transparent 70%),
    linear-gradient(165deg, var(--navy-700), var(--navy-800) 55%, var(--navy-900));
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(234, 244, 249, .12);
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(234, 244, 249, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 244, 249, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero-photo picture { display: block; }
.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: drop-shadow(0 18px 28px rgba(2, 10, 26, .55));
}

.hero-chip {
  position: absolute; z-index: 2;
  padding: .85rem 1.05rem;
  border-radius: 17px;
  display: grid; gap: .12rem;
  min-width: 9.5rem;
  color: var(--navy-900);
}
.hero-chip .chip-num {
  font-family: var(--display); font-weight: 800; font-size: 1.55rem;
  letter-spacing: -.035em; line-height: 1;
  color: var(--navy-800);
}
.hero-chip .chip-label {
  font-size: .745rem; line-height: 1.35; color: var(--ink-soft); font-weight: 500;
}
.chip-stars { color: #F5A524; font-size: .9rem; letter-spacing: .09em; line-height: 1; }
.chip-icon {
  width: 22px; height: 22px;
  fill: none; stroke: var(--blue-600); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: .22rem;
}
/* En móvil las fichas van dentro de la foto; en escritorio se salen un
   poco por los bordes, que es lo que da la sensación de profundidad. */
.hero-chip-1 { top: 4%; left: 4%; }
.hero-chip-2 { bottom: 6%; right: 4%; }
.hero-chip-3 { display: none; }

.hero-scroll {
  position: absolute; bottom: 1.9rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(234, 244, 249, .28);
  border-radius: 40px;
  display: none; place-items: center;
}
.hero-scroll span {
  width: 3.5px; height: 8px; border-radius: 3px;
  background: var(--lime);
  animation: scrollCue 2.1s var(--ease-soft) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-7px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ---------- Barra de confianza ---------- */
.trust {
  background: var(--navy-900);
  border-top: 1px solid var(--line-light);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
}
.trust-item {
  display: grid; gap: .2rem;
  padding-left: 1.05rem;
  border-left: 2px solid rgba(193, 255, 114, .35);
}
.trust-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(120deg, var(--lime), var(--lime-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust-label {
  font-size: .8rem; color: var(--light-mute); line-height: 1.4;
}

/* ---------- Servicios ---------- */
.servicios {
  position: relative;
  padding-block: clamp(4.2rem, 9vw, 7.5rem);
  background:
    radial-gradient(60% 45% at 82% 8%, rgba(147, 217, 59, .09), transparent 62%),
    radial-gradient(55% 40% at 8% 88%, rgba(26, 75, 174, .08), transparent 60%),
    var(--mist);
}

.grupo-head {
  display: flex; align-items: flex-start; gap: 1.05rem;
  margin-bottom: 1.9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.grupo-head-b { margin-top: clamp(3rem, 6vw, 4.6rem); }
.grupo-num {
  font-family: var(--mono); font-size: .78rem;
  color: var(--lime-ink); letter-spacing: .13em;
  padding-top: .3rem;
}
.grupo-title { font-size: clamp(1.3rem, 2.3vw, 1.72rem); margin-bottom: .28rem; }
.grupo-sub { font-size: .92rem; color: var(--ink-mute); }

/* ---------- Tarifas ---------- */
.tarifas {
  position: relative;
  padding-block: clamp(4.2rem, 9vw, 7.5rem);
  background: linear-gradient(172deg, var(--navy-900), var(--navy-800) 60%, var(--navy-850));
  color: var(--light);
  overflow: hidden;
  isolation: isolate;
}
/* Aquí el degradado se queda quieto: encima hay ocho paneles de cristal y
   animar el fondo obligaría a recalcular el desenfoque de los ocho sin parar. */
.tarifas-mesh {
  position: absolute; inset: -20%;
  z-index: -1;
  background:
    radial-gradient(38% 42% at 22% 30%, rgba(193, 255, 114, .34), transparent 65%),
    radial-gradient(42% 40% at 85% 78%, rgba(26, 75, 174, .5), transparent 68%);
  filter: blur(80px);
  opacity: .8;
}

.tarifa-hora {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.7rem, 1.4vw, 1.05rem);
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
.tarifa-mini {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  display: grid; gap: .35rem;
}
.tm-label { font-size: .8rem; color: var(--light-soft); line-height: 1.35; }
.tm-price {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  letter-spacing: -.04em; line-height: 1;
  color: var(--paper);
}
.tm-price small {
  font-family: var(--mono); font-size: .66rem; font-weight: 400;
  color: var(--lime); margin-left: .28rem; letter-spacing: .05em;
}

.tarifa-sub {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  color: var(--paper);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .9rem;
}
.tarifa-sub::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(193, 255, 114, .45), transparent);
}

.tarifa-cols {
  display: grid; gap: clamp(.9rem, 1.6vw, 1.3rem);
  grid-template-columns: 1fr;
}
.tarifa-col { padding: clamp(1.4rem, 2.2vw, 1.85rem); }
.tc-head {
  display: flex; align-items: center; gap: .7rem;
  padding-bottom: .95rem; margin-bottom: .35rem;
  border-bottom: 1px solid var(--line-light);
}
.tc-head svg {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: var(--lime); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.tc-head h4 { font-size: 1.2rem; color: var(--paper); }

.tc-list { display: grid; }
.tc-list > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px solid rgba(234, 244, 249, .07);
}
.tc-list > div:last-child { border-bottom: 0; }
.tc-list dt { font-size: .88rem; color: var(--light-soft); }
.tc-list dd {
  font-family: var(--display); font-weight: 800; font-size: 1.06rem;
  letter-spacing: -.03em; color: var(--lime);
}

.tarifa-nota {
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  display: grid; gap: 1.3rem;
  align-items: center;
}
.tarifa-nota h4 { font-size: 1.08rem; color: var(--paper); margin-bottom: .5rem; }
.tarifa-nota p { font-size: .89rem; color: var(--light-soft); }

/* ---------- Trabajos ---------- */
.trabajos {
  padding-block: clamp(4.2rem, 9vw, 7.5rem);
  background: var(--paper);
}

.ba { margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.ba-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  isolation: isolate;
  touch-action: pan-y;
}
/* El del hospital va a lo ancho (16:9); el del piso, más cuadrado y centrado */
.ba-stage-wide { aspect-ratio: 16 / 9; max-width: none; }
.trabajo-sep {
  height: 1px;
  margin: clamp(3.4rem, 7vw, 5.5rem) 0 clamp(2.6rem, 5vw, 4rem);
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.ba-layer { position: absolute; inset: 0; }
/* Recortamos la capa "antes" en vez de estrecharla: así la foto no se
   deforma ni se descuadra al mover el tirador. */
.ba-before { clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0); }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--ba, 50%);
  width: 2px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 22px rgba(4, 21, 47, .55);
  z-index: 3;
  pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 26px -8px rgba(4, 21, 47, .6);
  display: grid; place-items: center;
}
.ba-handle span::before,
.ba-handle span::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-block: 5px solid transparent;
}
.ba-handle span::before { border-right: 7px solid var(--navy-800); left: 11px; }
.ba-handle span::after  { border-left: 7px solid var(--navy-800); right: 11px; }

.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100%; }
.ba-range::-moz-range-thumb { width: 56px; height: 100%; border: 0; opacity: 0; }

.ba-badge {
  position: absolute; bottom: 1rem;
  z-index: 3;
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .4rem .75rem;
  border-radius: 100px;
  background: rgba(4, 21, 47, .68);
  color: var(--light);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba-badge-l { left: 1rem; }
.ba-badge-r { right: 1rem; }

.ba-help {
  margin-top: .85rem;
  text-align: center;
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-mute);
}

.trabajo-detalle { display: grid; gap: clamp(1.6rem, 3.5vw, 2.8rem); }
.trabajo-texto p {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 34rem;
}
.trabajo-firma {
  margin-top: 1.1rem;
  font-family: var(--mono) !important;
  font-size: .72rem !important;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--lime-ink) !important;
}

.trabajo-lista { display: grid; gap: .8rem; }
.card-mini {
  padding: 1.2rem 1.35rem;
  display: grid; gap: .3rem;
  border-radius: var(--radius-sm);
  background: rgba(243, 248, 251, .9);
  border: 1px solid var(--line);
  box-shadow: none;
}
.card-mini::before { display: none; }
.tl-num {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .16em; color: var(--lime-ink);
}
.card-mini-titulo { font-size: 1.01rem; margin: 0; }
.card-mini p { font-size: .875rem; color: var(--ink-mute); }

/* ---------- Por qué ---------- */
.porque {
  padding-block: clamp(4.2rem, 9vw, 7.5rem);
  background:
    radial-gradient(50% 40% at 12% 12%, rgba(147, 217, 59, .1), transparent 60%),
    var(--mist);
}
.porque-inner { display: grid; gap: clamp(2.4rem, 5vw, 4.2rem); align-items: center; }

.porque-visual { position: relative; }
.porque-photo { margin: 0; }
.porque-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow-lift);
}
.porque-chip {
  position: absolute; right: 4%; bottom: 8%;
  padding: .9rem 1.15rem;
  border-radius: 17px;
  display: grid; gap: .1rem;
}
.porque-chip .chip-num {
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  letter-spacing: -.04em; line-height: 1; color: var(--navy-800);
}
.porque-chip .chip-label { font-size: .74rem; color: var(--ink-soft); }

.razones { display: grid; gap: 1.35rem; }
.razones li { display: flex; gap: 1rem; align-items: flex-start; }
.razon-ico {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(26, 75, 174, .16);
  box-shadow: 0 8px 20px -14px rgba(4, 21, 47, .5);
}
.razon-ico svg {
  width: 21px; height: 21px;
  fill: none; stroke: var(--blue-600); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.razones h3 { font-size: 1.06rem; margin-bottom: .22rem; }
.razones p { font-size: .91rem; color: var(--ink-soft); }

/* ---------- Opiniones ---------- */
.opiniones {
  padding-block: clamp(4.2rem, 9vw, 7.5rem);
  background: var(--paper);
}
.card-op { gap: .9rem; }
.op-stars { color: #F5A524; letter-spacing: .13em; font-size: 1rem; line-height: 1; }
.card-op blockquote {
  font-family: var(--display);
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.018em;
  color: var(--ink);
}
.card-op blockquote::before { content: "«"; color: var(--lime-ink); margin-right: .1em; }
.card-op blockquote::after  { content: "»"; color: var(--lime-ink); margin-left: .1em; }
.card-op figcaption {
  margin-top: auto; padding-top: 1.1rem;
  display: flex; align-items: center; gap: .7rem;
}
.op-avatar {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .02em;
  color: var(--paper);
  background: linear-gradient(140deg, var(--blue-600), var(--navy-800));
}
.op-name { font-weight: 600; font-size: .93rem; }

/* ---------- Contacto ---------- */
.contacto {
  position: relative;
  padding-block: clamp(4.2rem, 9vw, 7.5rem);
  background: linear-gradient(168deg, var(--navy-800), var(--navy-900) 70%);
  color: var(--light);
  overflow: hidden;
  isolation: isolate;
}
.contacto-mesh {
  position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 40% at 18% 55%, rgba(147, 217, 59, .38), transparent 64%),
    radial-gradient(45% 42% at 88% 20%, rgba(26, 75, 174, .5), transparent 66%);
  filter: blur(80px);
  opacity: .85;
}
/* Marca de agua del logo: firma la sección sin robar protagonismo */
.contacto::after {
  content: "";
  position: absolute; z-index: -1;
  right: -3%; bottom: -8%;
  width: clamp(200px, 28vw, 400px);
  aspect-ratio: 92 / 101;
  background: url("assets/img/logo.svg") center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}

.contacto-inner { display: grid; gap: clamp(2.4rem, 5vw, 3.8rem); align-items: start; }
.contacto-copy .sec-title { color: var(--paper); }
.contacto-copy .sec-sub { color: var(--light-soft); margin-inline: 0; }

.contacto-datos { display: grid; gap: 1.1rem; margin-top: 2.2rem; }
.contacto-datos li { display: flex; gap: .85rem; align-items: flex-start; }
.cd-ico {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(234, 244, 249, .07);
  border: 1px solid var(--line-light);
}
.cd-ico svg {
  width: 19px; height: 19px;
  fill: none; stroke: var(--lime); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.cd-ico-wa { background: rgba(37, 211, 102, .14); border-color: rgba(37, 211, 102, .35); }
.cd-ico-wa svg { stroke: #25D366; }
.cd-body { display: grid; gap: .1rem; }
.cd-label {
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--light-mute);
}
.cd-value { font-size: .98rem; color: var(--light); font-weight: 500; }
a.cd-value { transition: color .3s var(--ease-out); }
a.cd-value:hover { color: var(--lime); }

.contacto-wa { margin-top: 1.9rem; }
.contacto-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.contacto-social a {
  padding: .5rem 1.05rem;
  border-radius: 100px;
  border: 1px solid var(--line-light);
  font-size: .84rem; font-weight: 500;
  color: var(--light-soft);
  transition: all .35s var(--ease-out);
}
.contacto-social a:hover {
  color: var(--navy-900);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}

/* ---------- Formulario ---------- */
.contacto-form-wrap { position: relative; padding: clamp(1.5rem, 3vw, 2.3rem); }
.form { display: grid; gap: 1rem; transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft); }
.form.is-sent { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.form-title { font-size: 1.35rem; color: var(--paper); margin-bottom: .1rem; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { position: relative; }
.field-row { display: grid; gap: 1rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1.5rem .95rem .55rem;
  font: inherit;
  font-size: .95rem;
  color: var(--light);
  background: rgba(4, 21, 47, .38);
  border: 1px solid var(--line-light);
  border-radius: 13px;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.55; }
.field select { padding-top: 1.45rem; appearance: none; cursor: pointer; }
.field select option { background: var(--navy-800); color: var(--light); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(193, 255, 114, .55);
  background: rgba(4, 21, 47, .58);
}

.field label {
  position: absolute; left: .98rem; top: 1.02rem;
  font-size: .93rem;
  color: var(--light-mute);
  pointer-events: none;
  transition: all .28s var(--ease-out);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: .42rem;
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
}
.field-select label {
  top: .42rem;
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
}
.field-select::after {
  content: "";
  position: absolute; right: 1.1rem; top: 60%;
  width: 8px; height: 8px;
  border-right: 1.8px solid var(--lime);
  border-bottom: 1.8px solid var(--lime);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.form-submit { position: relative; margin-top: .35rem; }
.form-spinner {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
}
.form-spinner::after {
  content: "";
  width: 18px; height: 18px;
  border: 2px solid rgba(4, 21, 47, .28);
  border-top-color: var(--navy-900);
  border-radius: 50%;
}
/* Solo gira mientras se envía: si no, estaría dando vueltas invisible todo el rato */
.form.is-sending .form-spinner::after { animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form.is-sending .form-label { opacity: 0; }
.form.is-sending .form-spinner { opacity: 1; }

.form-legal { font-size: .74rem; color: var(--light-mute); line-height: 1.5; }
.form-error {
  font-size: .86rem; color: #FFD0D0;
  background: rgba(220, 60, 60, .16); border: 1px solid rgba(220, 60, 60, .4);
  border-radius: 10px; padding: .7rem .9rem;
}

.form-ok {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: .6rem;
  padding: 2rem;
  text-align: center;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .7s var(--ease-out) .2s, transform .8s var(--ease-soft) .2s;
}
.form-ok.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.form-check {
  width: 54px; height: 54px;
  fill: none; stroke: var(--lime); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
}
.form-ok.is-visible .form-check {
  animation: drawCheck .8s var(--ease-out) .35s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.form-ok h3 { font-size: 1.6rem; color: var(--paper); }
.form-ok p { color: var(--light-soft); font-size: .95rem; max-width: 22rem; }
.form-ok .btn { margin-top: .8rem; }

/* ---------- Pie ---------- */
.footer {
  background: var(--navy-900);
  color: var(--light-soft);
  padding-top: clamp(2.8rem, 5vw, 4rem);
  border-top: 1px solid var(--line-light);
}
.footer-inner {
  display: grid; gap: 2rem;
  padding-bottom: 2.4rem;
}
.footer-brand { display: flex; gap: .85rem; align-items: flex-start; }
.footer-brand strong {
  font-family: var(--display); font-size: 1.02rem; color: var(--light);
  letter-spacing: -.025em;
}
.footer-brand p { font-size: .85rem; color: var(--light-mute); margin-top: .2rem; max-width: 24rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-nav a { font-size: .89rem; transition: color .3s var(--ease-out); }
.footer-nav a:hover { color: var(--lime); }

.footer-contact { display: grid; gap: .3rem; font-size: .89rem; }
.footer-contact a { transition: color .3s var(--ease-out); }
.footer-contact a:hover { color: var(--lime); }
.footer-contact span { color: var(--light-mute); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  justify-content: space-between;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line-light);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--light-mute);
}

/* ---------- Botón flotante de WhatsApp (todas las pantallas) ---------- */
.fab-wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  height: 56px;
  padding: 0 .95rem;
  display: inline-flex; align-items: center; gap: .55rem;
  border-radius: 100px;
  background: #25D366;
  color: #062B14;
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .9);
  transition: transform .4s var(--ease-bounce), box-shadow .4s var(--ease-soft);
}
.fab-wa svg {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.fab-wa-label { display: none; }
.fab-wa:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 22px 44px -14px rgba(37, 211, 102, .8); }

/* ---------- Botón flotante de llamada (móvil) ---------- */
.fab-phone {
  position: fixed; right: 1rem; bottom: calc(1rem + 56px + .7rem); z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--lime), var(--lime-deep));
  box-shadow: 0 14px 34px -12px rgba(147, 217, 59, .9);
  transition: transform .4s var(--ease-bounce);
}
.fab-phone svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--navy-900); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.fab-phone:hover { transform: scale(1.07); }


/* ---------- Etiqueta "Nuevo" ---------- */
.badge-new {
  position: absolute; top: .85rem; left: .85rem; z-index: 3;
  padding: .32rem .7rem;
  border-radius: 100px;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--navy-900);
  background: var(--lime);
  box-shadow: 0 8px 20px -10px rgba(2, 10, 26, .8);
}
.badge-new-inline {
  position: static;
  display: inline-block;
  vertical-align: middle;
  margin-left: .5rem;
  transform: translateY(-2px);
  box-shadow: none;
}

/* ---------- Tarjetas anchas (bloque de obras y suelos) ---------- */
.card-media-wide { aspect-ratio: 16 / 9; }
.card-wide .card-title { font-size: 1.235rem; }
.card-wide .card-text { font-size: .955rem; }

/* ---------- Cada servicio, al detalle ---------- */
.sec-title-sm { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.detalle {
  margin-top: clamp(3.4rem, 7vw, 5.5rem);
  padding-top: clamp(2.6rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.detalle .sec-head { margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }

.det {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
  margin-bottom: .7rem;
  transition: box-shadow .45s var(--ease-soft), border-color .35s var(--ease-out);
}
.det:hover { box-shadow: var(--shadow-lift); }
.det[open] { border-color: rgba(26, 75, 174, .28); box-shadow: var(--shadow-lift); }
.det-nuevo { border-color: rgba(147, 217, 59, .45); }

.det > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 1.15rem;
}
.det > summary::-webkit-details-marker { display: none; }
.det > summary:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: -2px; border-radius: var(--radius-sm); }

.det-ico {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--navy-800), var(--blue-600));
  box-shadow: 0 10px 22px -12px rgba(2, 34, 95, .9);
}
.det-ico svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--lime); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.det-head { display: grid; gap: .12rem; min-width: 0; }
.det-head strong {
  font-family: var(--display); font-weight: 800; font-size: 1.06rem;
  letter-spacing: -.02em; line-height: 1.2;
}
.det-head em { font-style: normal; font-size: .86rem; color: var(--ink-mute); line-height: 1.4; }
.det-pill {
  display: none;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  white-space: nowrap;
  padding: .38rem .7rem;
  border-radius: 100px;
  color: var(--navy-800);
  background: rgba(26, 75, 174, .08);
  border: 1px solid rgba(26, 75, 174, .14);
}
.det-chevron {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .45s var(--ease-soft), background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.det-chevron::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.8px solid var(--navy-800);
  border-bottom: 1.8px solid var(--navy-800);
  transform: translate(-50%, -65%) rotate(45deg);
}
.det[open] .det-chevron { transform: rotate(180deg); background: var(--navy-800); border-color: var(--navy-800); }
.det[open] .det-chevron::after { border-color: var(--lime); }

.det-body {
  display: grid;
  gap: 1.6rem;
  padding: .4rem 1.15rem 1.5rem;
  border-top: 1px solid var(--line);
  animation: detIn .5s var(--ease-soft);
}
@keyframes detIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.det-body h4 {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--blue-600);
  margin: 1.35rem 0 .6rem;
}
/* Sin esto, la tabla comparativa podía ensanchar la columna en móvil */
.det-main, .det-side { min-width: 0; }
.det-intro {
  padding-top: 1.1rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.det-list { display: grid; gap: .5rem; font-size: .93rem; color: var(--ink-soft); }
.det-list li { position: relative; padding-left: 1.45rem; }
.det-list li::before {
  content: "";
  position: absolute; left: .1rem; top: .58em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 1px rgba(76, 122, 16, .5), 0 0 0 4px rgba(147, 217, 59, .16);
}
.det-nota { margin-top: 1rem; font-size: .9rem; color: var(--ink-mute); }
.det-nota a, .det-side a:not(.btn) { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.det-side {
  padding: 1.2rem 1.25rem 1.35rem;
  border-radius: var(--radius-sm);
  background: var(--mist);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.det-side h4:first-child { margin-top: 0; }
.det-side > p { font-size: .9rem; color: var(--ink-soft); }
.det-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.det-chips li {
  font-size: .78rem; font-weight: 500;
  padding: .38rem .7rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(26, 75, 174, .14);
  color: var(--navy-800);
}
.det-price {
  margin-top: 1.4rem;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.02em; color: var(--navy-800);
  line-height: 1.3;
}
.det-price span { font-size: 1.7rem; letter-spacing: -.04em; }
.det-price small {
  display: block;
  font-family: var(--sans); font-weight: 400; font-size: .78rem;
  color: var(--ink-mute); letter-spacing: 0; margin-top: .15rem;
}
.det-side .btn { margin-top: .9rem; width: 100%; }
.det-side .btn + .btn { margin-top: .55rem; }
.btn-ghost-dark {
  border: 1px solid rgba(26, 75, 174, .28);
  color: var(--navy-800);
  background: rgba(255, 255, 255, .8);
}
.btn-ghost-dark:hover { background: var(--paper); transform: translateY(-3px); box-shadow: var(--shadow-soft); }

/* Caso real (tiendas) */
.det-caso {
  margin-top: 1.5rem;
  padding: 1.15rem 1.3rem 1.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, var(--navy-800), var(--navy-900));
  color: var(--light);
  border-left: 4px solid var(--lime);
}
.det-caso-kicker {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--lime); margin-bottom: .35rem;
}
.det-caso h5 { font-size: 1.08rem; color: var(--paper); margin-bottom: .45rem; }
.det-caso p:last-child { font-size: .9rem; color: var(--light-soft); }

/* "Trabajamos en" (final de obra) */
.det-donde {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.det-donde li {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--navy-800);
}
.det-donde li span {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid rgba(26, 75, 174, .14);
}
.det-donde svg {
  width: 19px; height: 19px;
  fill: none; stroke: var(--blue-600); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Dos técnicas + tabla (abrillantado y pulido) */
.det-tecnicas { display: grid; gap: .8rem; margin-top: 1.2rem; }
.det-tecnica {
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--mist);
  border: 1px solid var(--line);
}
.det-tecnica-kicker {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--lime-ink); margin-bottom: .3rem;
}
.det-tecnica .det-tecnica-titulo {
  font-family: var(--display); font-size: 1.02rem; font-weight: 800;
  letter-spacing: -.02em; text-transform: none; color: var(--ink);
  margin: 0 0 .5rem;
}
.det-tecnica p:last-child { font-size: .9rem; color: var(--ink-soft); }

.det-tabla {
  width: 100%;
  margin-top: 1.3rem;
  border-collapse: collapse;
  font-size: .86rem;
}
.det-tabla th, .det-tabla td {
  text-align: left; vertical-align: top;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
}
.det-tabla thead th {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue-600);
  border-bottom: 2px solid rgba(26, 75, 174, .2);
}
.det-tabla tbody th {
  font-family: var(--display); font-weight: 700; font-size: .84rem;
  color: var(--navy-800); white-space: nowrap;
}
.det-tabla td { color: var(--ink-soft); }
.det-tabla tr:last-child th, .det-tabla tr:last-child td { border-bottom: 0; }

/* El desplegable del formulario parpadea al quedar preseleccionado */
.field select.is-preset {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(193, 255, 114, .22);
}


/* ---------- Cursor esponja ---------- */
/* Solo existe donde hay ratón de verdad. En pantallas táctiles no se
   activa nada y el navegador sigue como siempre. */
.esponja, .espuma { display: none; }

@media (hover: hover) and (pointer: fine) {
  .has-esponja,
  .has-esponja * { cursor: none !important; }
  /* En los campos de texto vuelve el cursor normal: hay que ver dónde se escribe */
  .has-esponja input,
  .has-esponja textarea,
  .has-esponja select { cursor: auto !important; }

  .esponja {
    display: block;
    position: fixed; top: 0; left: 0; z-index: 10000;
    pointer-events: none;
    opacity: 0;                        /* oculta hasta el primer movimiento */
    transition: opacity .25s var(--ease-out);
    will-change: transform;
  }
  .esponja.is-ready { opacity: 1; }
  .esponja.is-hidden { opacity: 0; }

  /* La esquina superior izquierda de la esponja es el punto exacto del clic */
  .esponja svg {
    display: block;
    width: 28px; height: 21px;
    transform-origin: 8% 14%;          /* gira y se aplasta desde la esquina que apunta */
    transform: rotate(-14deg);
    transition: transform .22s var(--ease-bounce);
    filter: drop-shadow(0 5px 7px rgba(2, 10, 26, .32));
  }
  /* Sobre algo pulsable, se anima y crece un poco */
  .esponja.is-interactive svg { transform: rotate(-4deg) scale(1.14); }
  /* Al pulsar: se aplasta como una esponja de verdad */
  .esponja.is-pressed svg {
    transform: rotate(-12deg) scale(1.18, .72) translateY(3px);
    transition-duration: .09s;
    filter: drop-shadow(0 3px 4px rgba(2, 10, 26, .4));
  }

  .espuma {
    display: block;
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none;
  }
}

/* =============================================================
   7. EFECTOS
   ============================================================= */
/* Se ocultan SOLO si hay JavaScript (la clase .js la pone index.html).
   Sin JavaScript, todo se ve desde el primer momento. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Escalonado dentro de una misma rejilla */
.cards > [data-reveal]:nth-child(2) { transition-delay: .08s; }
.cards > [data-reveal]:nth-child(3) { transition-delay: .16s; }
.cards > [data-reveal]:nth-child(4) { transition-delay: .24s; }
.razones > [data-reveal]:nth-child(2),
.trabajo-lista > [data-reveal]:nth-child(2) { transition-delay: .07s; }
.razones > [data-reveal]:nth-child(3),
.trabajo-lista > [data-reveal]:nth-child(3) { transition-delay: .14s; }
.razones > [data-reveal]:nth-child(4),
.trabajo-lista > [data-reveal]:nth-child(4) { transition-delay: .21s; }
.razones > [data-reveal]:nth-child(5) { transition-delay: .28s; }

/* Flotación suave de los elementos de cristal */
@keyframes floatY {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -13px, 0); }
}
.float-slow { animation: floatY 8.5s var(--ease-soft) infinite; }
.float-mid  { animation: floatY 7s   var(--ease-soft) infinite .6s; }
.float-fast { animation: floatY 6s   var(--ease-soft) infinite 1.2s; }

/* Inclinación 3D en tarjetas */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
/* Se avisa a la tarjeta solo al pasar por encima: reservar memoria de vídeo
   para las once tarjetas a la vez sería peor que el problema. */
.has-tilt:hover { transition-duration: .18s; will-change: transform; }

/* =============================================================
   8. RESPONSIVE
   ============================================================= */
/* En móvil el comparador 16:9 se queda en una franja demasiado baja para
   apreciar el antes/después: lo hacemos más alto y recortamos por los lados. */
@media (max-width: 719px) {
  .ba-stage { aspect-ratio: 4 / 3; }
  .det-tabla { font-size: .78rem; }
  .det-tabla th, .det-tabla td { padding: .55rem .45rem; }
  .det-tabla tbody th { white-space: normal; }
}

@media (min-width: 540px) {
  .tarifa-hora { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .cards-3, .cards-4, .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .det-pill { display: inline-block; }
  .det-tecnicas { grid-template-columns: 1fr 1fr; }
  .det-donde { grid-template-columns: repeat(4, 1fr); }
  .trust-inner { grid-template-columns: repeat(4, 1fr); }
  .tarifa-hora { grid-template-columns: repeat(4, 1fr); }
  .tarifa-nota { grid-template-columns: 1fr auto; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-nav { justify-content: flex-end; }
  .footer-contact { grid-column: 1 / -1; }
  .trabajo-lista { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  html { scroll-padding-top: 110px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .menu-movil { display: none; }
  .fab-phone { display: none; }
  .fab-wa { right: 1.4rem; bottom: 1.4rem; padding: 0 1.25rem 0 .95rem; }
  .fab-wa-label { display: inline; }

  .hero-inner { grid-template-columns: 1.08fr .92fr; }
  .hero-scroll { display: grid; }
  .hero-chip-1 { top: 7%; left: -4%; }
  .hero-chip-2 { bottom: 16%; right: -5%; }
  .hero-chip-3 { display: grid; bottom: -3%; left: 6%; }
  .porque-chip { right: -3%; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .det > summary { padding: 1.15rem 1.4rem; gap: 1.1rem; }
  .det-body { grid-template-columns: 1.35fr .85fr; gap: 2rem; padding: .4rem 1.4rem 1.6rem; align-items: start; }
  .det-side { position: sticky; top: 100px; }
  .tarifa-cols { grid-template-columns: repeat(3, 1fr); }

  .trabajo-detalle { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .porque-inner { grid-template-columns: .85fr 1.15fr; }
  .contacto-inner { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-nav { justify-content: center; }
  .footer-contact { grid-column: auto; justify-items: end; text-align: right; }
}

@media (min-width: 1280px) {
  .nav-phone { display: inline-flex; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 5rem; }
}

/* =============================================================
   9. MOVIMIENTO REDUCIDO
   Solo se apaga lo intrusivo (bucles largos, flotaciones).
   Los micro-efectos (hover, reveals, tilt) se mantienen: Windows
   activa esta preferencia por defecto en muchos equipos y
   apagarlo todo dejaría la web plana.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .float-slow, .float-mid, .float-fast { animation: none; }
  .kicker-dot { animation: none; }
  .hero-scroll span { animation: none; }
}
