/* ==========================================================================
   clinicas.css v2 — Landing vertical "Clínicas dentales · Barcelona"
   ---------------------------------------------------------------------------
   Dirección: scrollytelling. Una escena que se anima con el scroll, no una
   página que pasa. Un solo mecanismo, bien hecho, sin amalgama de efectos.

   Paleta: fondo luminoso (blanco roto de la marca) como base — una clínica
   dental no se identifica con un fondo negro — con el tinta y el rojo
   Imaginning (#f05836) como acentos. El efecto Wow lo da el movimiento
   protagonista, no el color de fondo.

   Reglas de movimiento (sirven para algo, nunca decoran):
     1. El hero muestra un proceso real funcionando: leads que entran,
        se clasifican y se responden solos.
     2. Cada sección se revela al entrar en vista, una sola vez.
     3. La escena de "fuga" se rellena con el scroll: el dinero que se escapa
        es literalmente scroll.
     4. Nada se mueve si el usuario pide movimiento reducido.
   ========================================================================== */

:root {
  /* --- Marca Imaginning --- */
  --cl-red: #f05836;
  --cl-red-dark: #d8421f;
  --cl-red-soft: rgba(240, 88, 54, 0.09);
  --cl-ink: #14181c;
  --cl-line: rgba(20, 24, 28, 0.1);
  --cl-line-2: rgba(20, 24, 28, 0.16);
  --cl-white: #fbf9f7;
  --cl-white-2: #ffffff;
  --cl-muted: rgba(20, 24, 28, 0.62);
  --cl-muted-2: rgba(20, 24, 28, 0.42);

  /* --- Métrica --- */
  --cl-radius: 16px;
  --cl-radius-sm: 10px;
  --cl-maxw: 1140px;
  --cl-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --cl-shadow: 0 20px 60px -28px rgba(20, 24, 28, 0.28);
  --cl-shadow-red: 0 16px 40px -16px rgba(240, 88, 54, 0.5);
  --cl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset y base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--cl-white);
  color: var(--cl-ink);
  font-family: var(--cl-font);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.024em;
  font-weight: 700;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--cl-red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cl-red);
  outline-offset: 3px;
  border-radius: 4px;
}

.cl-wrap {
  width: 100%;
  max-width: var(--cl-maxw);
  margin-inline: auto;
  padding-inline: 26px;
}

/* Etiqueta de sección */
.cl-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cl-red);
  margin-bottom: 20px;
}

.cl-tag::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--cl-red);
  border-radius: 2px;
}

.cl-h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  max-width: 22ch;
}

.cl-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--cl-muted);
  max-width: 60ch;
}

.cl-section {
  position: relative;
  padding: clamp(72px, 10vw, 130px) 0;
}

/* --------------------------------------------------------------------------
   Revelado al entrar en vista (mecanismo 2)

   Nota de seguridad: el efecto depende de una transición de opacidad. Si un
   navegador no computa la transición (WebViews antiguas, algunos entornos
   headless), el elemento podría quedarse en opacity:0 para siempre. El
   respaldo en clinicas.js añade .is-in a todo si el observer no dispara, y
   el bloque de movimiento reducido fuerza el estado final.
   -------------------------------------------------------------------------- */

/* Sin JavaScript nada debe quedar invisible: el contenido se lee igual.
   Por defecto todo visible; el JS añade .js y entonces sí se anima. */
.cl-r {
  opacity: 1;
}

.js .cl-r {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--cl-ease), transform 0.7s var(--cl-ease);
}

.js .cl-r.is-in {
  opacity: 1;
  transform: none;
}

/* Retardo escalonado para hijos con data-delay */
.js .cl-r[data-delay="1"] {
  transition-delay: 0.1s;
}
.js .cl-r[data-delay="2"] {
  transition-delay: 0.2s;
}
.js .cl-r[data-delay="3"] {
  transition-delay: 0.3s;
}
.js .cl-r[data-delay="4"] {
  transition-delay: 0.4s;
}

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */

.cl-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: rgba(251, 249, 247, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.cl-topbar.is-stuck {
  border-bottom-color: var(--cl-line);
}

.cl-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.cl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.04rem;
}

.cl-brand img {
  width: 27px;
  height: 27px;
}

.cl-brand em {
  font-style: normal;
  color: var(--cl-red);
}

.cl-topbar__link {
  font-size: 0.9rem;
  color: var(--cl-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cl-topbar__link:hover {
  color: var(--cl-red);
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--cl-ease), box-shadow 0.25s ease,
    background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.cl-btn--primary {
  background: var(--cl-red);
  color: #fff;
  box-shadow: var(--cl-shadow-red);
}

.cl-btn--primary:hover {
  background: var(--cl-red-dark);
  transform: translateY(-2px);
}

.cl-btn--ghost {
  background: transparent;
  color: var(--cl-ink);
  border: 1px solid var(--cl-line-2);
}

.cl-btn--ghost:hover {
  border-color: var(--cl-red);
  color: var(--cl-red);
}

.cl-btn--block {
  width: 100%;
}

.cl-btn--sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ==========================================================================
   HERO — la escena que funciona (mecanismo 1)
   Lado izquierdo: la promesa. Lado derecho: un pipeline de leads de clínica
   funcionando en vivo. Lo que se ve es exactamente lo que vendemos.
   ========================================================================== */

.cl-hero {
  position: relative;
  padding: clamp(130px, 15vw, 170px) 0 clamp(64px, 8vw, 96px);
  overflow: hidden;
}

/* Halo suave, sin ruido */
.cl-hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -12%;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(
    circle,
    rgba(240, 88, 54, 0.11),
    rgba(240, 88, 54, 0.03) 42%,
    transparent 66%
  );
  pointer-events: none;
}

.cl-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.cl-hero__title {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  margin-bottom: 24px;
}

.cl-hero__title em {
  font-style: normal;
  color: var(--cl-red);
}

.cl-hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  color: var(--cl-muted);
  max-width: 44ch;
  margin-bottom: 32px;
}

.cl-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.cl-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.92rem;
  color: var(--cl-muted);
}

.cl-hero__proof li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cl-hero__proof li::before {
  content: "✓";
  color: var(--cl-red);
  font-weight: 700;
}

/* --- Tarjeta del pipeline: lo que se ve funcionar --- */

.cl-demo {
  position: relative;
  background: var(--cl-white-2);
  border: 1px solid var(--cl-line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--cl-shadow);
}

.cl-demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--cl-line);
}

.cl-demo__title {
  font-size: 0.95rem;
  font-weight: 700;
}

.cl-demo__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cl-muted-2);
}

.cl-demo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fbf71;
  animation: cl-pulse 2s ease-in-out infinite;
}

@keyframes cl-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

/* Fases del pipeline */
.cl-demo__flow {
  display: grid;
  gap: 10px;
}

.cl-demo__phase {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: var(--cl-radius-sm);
  background: var(--cl-white);
  border: 1px solid var(--cl-line);
  transition: border-color 0.3s ease, background 0.3s ease,
    transform 0.3s var(--cl-ease);
}

.cl-demo__phase.is-active {
  border-color: rgba(240, 88, 54, 0.4);
  background: var(--cl-red-soft);
  transform: translateX(4px);
}

.cl-demo__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--cl-ink);
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cl-demo__phase.is-active .cl-demo__icon {
  background: var(--cl-red);
}

.cl-demo__label {
  font-size: 0.92rem;
  font-weight: 600;
}

.cl-demo__sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--cl-muted-2);
  margin-top: 1px;
}

.cl-demo__count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cl-muted);
  font-variant-numeric: tabular-nums;
}

.cl-demo__phase.is-active .cl-demo__count {
  color: var(--cl-red);
}

/* Contador resultado */
.cl-demo__result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--cl-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cl-demo__result-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cl-red);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cl-demo__result-label {
  font-size: 0.85rem;
  color: var(--cl-muted);
  text-align: right;
  max-width: 22ch;
}

/* ==========================================================================
   CALCULADORA DE FUGA — el efecto wow que valida
   --------------------------------------------------------------------------
   No es una animación bonita: es una herramienta. El visitante mete los
   números de SU clínica y la página le devuelve cuánto dinero se le escapa
   al año, desglosado por dónde. Demuestra que hablamos su idioma (dinero,
   no "sinergias operativas") y que sabemos pensar un proceso de negocio.

   Principio de diseño: el resultado llega solo, sin botón de "calcular".
   Cada cambio recalcula al instante; la fricción mata la demostración.
   ========================================================================== */

.cl-calc {
  position: relative;
  overflow: hidden;
}

.cl-calc .cl-wrap {
  position: relative;
}

.cl-calc__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: 46px;
}

/* --- Entrada: los controles --- */

.cl-calc__inputs {
  display: grid;
  gap: 26px;
}

.cl-calc__field {
  display: grid;
  gap: 10px;
}

.cl-calc__field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cl-calc__field label {
  font-size: 0.98rem;
  font-weight: 600;
}

.cl-calc__hint {
  font-size: 0.82rem;
  color: var(--cl-muted-2);
  margin-top: -4px;
}

/* El valor actual, siempre visible */
.cl-calc__val {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--cl-red);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cl-calc__val small {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--cl-muted);
  margin-left: 2px;
}

/* Range: pista visible y pulgar de marca */
.cl-calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--cl-line);
  outline: none;
  cursor: pointer;
}

.cl-calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cl-red);
  border: 3px solid var(--cl-white-2);
  box-shadow: 0 2px 10px -2px rgba(240, 88, 54, 0.7);
  cursor: grab;
  transition: transform 0.15s var(--cl-ease);
}

.cl-calc__range::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.cl-calc__range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.cl-calc__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cl-red);
  border: 3px solid var(--cl-white-2);
  box-shadow: 0 2px 10px -2px rgba(240, 88, 54, 0.7);
  cursor: grab;
}

.cl-calc__range:focus-visible {
  outline: 2px solid var(--cl-red);
  outline-offset: 4px;
}

/* Escala bajo el slider */
.cl-calc__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--cl-muted-2);
  font-variant-numeric: tabular-nums;
}

/* --- Salida: el panel de resultado --- */

.cl-calc__out {
  position: sticky;
  top: 92px;
  background: var(--cl-ink);
  color: var(--cl-white);
  border-radius: 20px;
  padding: clamp(26px, 3.4vw, 38px);
  box-shadow: 0 28px 70px -30px rgba(20, 24, 28, 0.5);
  overflow: hidden;
}

.cl-calc__out::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(240, 88, 54, 0.22), transparent 65%);
  pointer-events: none;
}

.cl-calc__out-tag {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cl-red);
  margin-bottom: 16px;
}

.cl-calc__total {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.cl-calc__total-num {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cl-calc__total-cur {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--cl-red);
}

.cl-calc__total-label {
  position: relative;
  font-size: 0.95rem;
  color: rgba(251, 249, 247, 0.66);
  margin-bottom: 26px;
  max-width: 34ch;
}

/* Desglose: de dónde sale cada euro */
.cl-calc__break {
  position: relative;
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 249, 247, 0.12);
}

.cl-calc__row {
  display: grid;
  gap: 7px;
}

.cl-calc__row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cl-calc__row-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.cl-calc__row-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cl-red);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cl-calc__row-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(251, 249, 247, 0.1);
  overflow: hidden;
}

.cl-calc__row-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cl-red), #ff8a5c);
  transition: width 0.55s var(--cl-ease);
}

.cl-calc__row-note {
  font-size: 0.82rem;
  color: rgba(251, 249, 247, 0.5);
}

/* Nota de honestidad: esto es lo que separa una demo de una mentira */
.cl-calc__foot {
  position: relative;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 249, 247, 0.12);
  font-size: 0.82rem;
  color: rgba(251, 249, 247, 0.5);
  line-height: 1.55;
}

/* --- Responsive --- */

@media (max-width: 960px) {
  .cl-calc__grid {
    grid-template-columns: 1fr;
  }

  .cl-calc__out {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-calc__row-fill {
    transition: none;
  }
}

/* ==========================================================================
   SECCIÓN DE FUGA — barras que se rellenan al entrar en vista
   ========================================================================== */

.cl-leak {
  background: var(--cl-ink);
  color: var(--cl-white);
  overflow: hidden;
}

.cl-leak .cl-tag {
  color: var(--cl-red);
}

.cl-leak__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.cl-leak__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 20px;
}

.cl-leak__lead {
  color: rgba(251, 249, 247, 0.68);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  max-width: 42ch;
  margin-bottom: 28px;
}

.cl-leak__stats {
  display: grid;
  gap: 14px;
}

.cl-leak__stat {
  display: grid;
  gap: 9px;
  padding: 20px 22px;
  border-radius: var(--cl-radius);
  background: rgba(251, 249, 247, 0.045);
  border: 1px solid rgba(251, 249, 247, 0.1);
}

.cl-leak__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(251, 249, 247, 0.1);
  overflow: hidden;
}

.cl-leak__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cl-red), #ff8a5c);
  transition: width 1.4s var(--cl-ease);
}

.cl-leak__stat.is-in .cl-leak__bar-fill {
  width: var(--fill, 60%);
}

.cl-leak__stat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cl-leak__stat-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.cl-leak__stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cl-red);
  font-variant-numeric: tabular-nums;
}

.cl-leak__stat-note {
  font-size: 0.84rem;
  color: rgba(251, 249, 247, 0.5);
}

/* ==========================================================================
   SÍNTOMAS
   ========================================================================== */

.cl-symptoms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.cl-symptom {
  background: var(--cl-white-2);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius-sm);
  padding: 26px 24px;
  transition: border-color 0.25s ease, transform 0.25s var(--cl-ease),
    box-shadow 0.25s ease;
}

.cl-symptom:hover {
  border-color: rgba(240, 88, 54, 0.42);
  transform: translateY(-4px);
  box-shadow: var(--cl-shadow);
}

.cl-symptom h3 {
  font-size: 1.04rem;
  margin-bottom: 10px;
}

.cl-symptom p {
  font-size: 0.92rem;
  color: var(--cl-muted);
}

/* --------------------------------------------------------------------------
   Antes / Después
   -------------------------------------------------------------------------- */

.cl-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}

.cl-ba__col {
  border-radius: var(--cl-radius);
  padding: 32px 30px;
  border: 1px solid var(--cl-line);
}

.cl-ba__col--before {
  background: var(--cl-white-2);
}

.cl-ba__col--after {
  background: var(--cl-red-soft);
  border-color: rgba(240, 88, 54, 0.3);
}

.cl-ba__kicker {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cl-muted-2);
  margin-bottom: 20px;
}

.cl-ba__col--after .cl-ba__kicker {
  color: var(--cl-red);
}

.cl-ba__col ul {
  display: grid;
  gap: 13px;
}

.cl-ba__col li {
  font-size: 0.96rem;
  padding-left: 27px;
  position: relative;
  color: var(--cl-muted);
}

.cl-ba__col--before li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--cl-muted-2);
  font-weight: 700;
}

.cl-ba__col--after li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cl-red);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Qué automatizamos
   -------------------------------------------------------------------------- */

.cl-flow {
  counter-reset: cl-flow;
  display: grid;
  gap: 14px;
  margin-top: 48px;
}

.cl-flow__item {
  counter-increment: cl-flow;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: var(--cl-white-2);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius-sm);
  padding: 26px;
  transition: border-color 0.25s ease;
}

.cl-flow__item:hover {
  border-color: rgba(240, 88, 54, 0.4);
}

.cl-flow__item::before {
  content: "0" counter(cl-flow);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cl-red);
  letter-spacing: -0.03em;
  line-height: 1;
  padding-top: 2px;
}

.cl-flow__item h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.cl-flow__item p {
  font-size: 0.94rem;
  color: var(--cl-muted);
}

/* --------------------------------------------------------------------------
   Método
   -------------------------------------------------------------------------- */

.cl-method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.cl-method__card {
  background: var(--cl-white-2);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  padding: 32px 28px;
  display: grid;
  gap: 13px;
  align-content: start;
}

.cl-method__num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cl-red);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.cl-method__card h3 {
  font-size: 1.18rem;
}

.cl-method__card p {
  font-size: 0.95rem;
  color: var(--cl-muted);
}

.cl-method__meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cl-red);
}

/* --------------------------------------------------------------------------
   Encaje
   -------------------------------------------------------------------------- */

.cl-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}

.cl-fit__col {
  border-radius: var(--cl-radius);
  padding: 32px 30px;
  border: 1px solid var(--cl-line);
  background: var(--cl-white-2);
}

.cl-fit__col h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.cl-fit__col ul {
  display: grid;
  gap: 13px;
}

.cl-fit__col li {
  font-size: 0.95rem;
  color: var(--cl-muted);
  padding-left: 26px;
  position: relative;
}

.cl-fit__col--yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cl-red);
  font-weight: 700;
}

.cl-fit__col--no li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--cl-muted-2);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.cl-faq {
  margin-top: 48px;
  display: grid;
  gap: 12px;
  max-width: 800px;
}

.cl-faq details {
  background: var(--cl-white-2);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius-sm);
  padding: 21px 23px;
}

.cl-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

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

.cl-faq summary::after {
  content: "+";
  color: var(--cl-red);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.cl-faq details[open] summary::after {
  content: "−";
}

.cl-faq details p {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--cl-muted);
}

/* ==========================================================================
   CIERRE
   ========================================================================== */

.cl-final {
  position: relative;
  overflow: hidden;
  background: var(--cl-ink);
  color: var(--cl-white);
}

.cl-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 110% at 50% 0%,
    rgba(240, 88, 54, 0.2),
    transparent 62%
  );
  pointer-events: none;
}

.cl-final__inner {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.cl-final h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  margin-bottom: 18px;
}

.cl-final .cl-final__inner > p {
  color: rgba(251, 249, 247, 0.68);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.cl-final .cl-tag {
  justify-content: center;
}

.cl-final__form {
  display: grid;
  gap: 14px;
  text-align: left;
  background: rgba(251, 249, 247, 0.05);
  border: 1px solid rgba(251, 249, 247, 0.12);
  border-radius: var(--cl-radius);
  padding: 30px;
}

.cl-field {
  display: grid;
  gap: 7px;
}

.cl-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(251, 249, 247, 0.72);
}

.cl-field input,
.cl-field select,
.cl-field textarea {
  background: rgba(20, 24, 28, 0.55);
  border: 1px solid rgba(251, 249, 247, 0.16);
  border-radius: var(--cl-radius-sm);
  padding: 13px 15px;
  color: var(--cl-white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  width: 100%;
}

.cl-field input:focus,
.cl-field select:focus,
.cl-field textarea:focus {
  border-color: var(--cl-red);
  outline: none;
}

.cl-field input::placeholder,
.cl-field textarea::placeholder {
  color: rgba(251, 249, 247, 0.34);
}

.cl-field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  margin-top: 4px;
}

.cl-field--check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--cl-red);
  flex-shrink: 0;
}

.cl-field--check label {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(251, 249, 247, 0.62);
  line-height: 1.5;
}

.cl-field--check label a {
  color: var(--cl-red);
}

.cl-form__note {
  font-size: 0.82rem;
  color: rgba(251, 249, 247, 0.44);
  line-height: 1.55;
}

.cl-form__note a {
  color: rgba(251, 249, 247, 0.75);
}

.cl-form__status {
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
}

.cl-form__status[data-state="ok"] {
  color: #58d68d;
}

.cl-form__status[data-state="error"] {
  color: #ff8a5c;
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */

.cl-foot {
  border-top: 1px solid rgba(251, 249, 247, 0.1);
  padding: 36px 0;
  font-size: 0.88rem;
  color: rgba(251, 249, 247, 0.6);
}

.cl-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
}

.cl-foot a {
  color: rgba(251, 249, 247, 0.82);
  text-decoration: none;
}

.cl-foot a:hover {
  color: var(--cl-red);
}

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

@media (max-width: 960px) {
  .cl-hero__grid,
  .cl-leak__grid {
    grid-template-columns: 1fr;
  }

  .cl-symptoms,
  .cl-method {
    grid-template-columns: 1fr;
  }

  .cl-ba,
  .cl-fit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .cl-wrap {
    padding-inline: 19px;
  }

  .cl-topbar__link {
    display: none;
  }

  .cl-final__form {
    padding: 22px;
  }

  .cl-demo {
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   Movimiento reducido: nada se anima, todo se ve
   -------------------------------------------------------------------------- */

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

  /* Con movimiento reducido, todo visible desde el principio */
  .js .cl-r {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   MÓVIL — correcciones del 19 oct 2026
   Revisado en 390x844. El diseño de escritorio se rompía aquí: el titular
   salía a 6 líneas y ocupaba media pantalla, los botones quedaban sueltos a
   la izquierda y el aire superior empujaba el contenido fuera del primer
   pantallazo. Estas reglas solo aplican por debajo de 560px.
   ========================================================================== */

@media (max-width: 560px) {
  /* Titular: cuerpo de móvil, no de cartel */
  .cl-hero {
    padding-top: 96px;
    padding-bottom: 40px;
  }

  .cl-hero__title {
    font-size: clamp(1.62rem, 7.4vw, 1.95rem);
    line-height: 1.18;
    letter-spacing: -0.016em;
    margin-bottom: 14px;
  }

  .cl-hero__sub {
    font-size: 1rem;
    line-height: 1.52;
    max-width: none;
    margin-bottom: 24px;
  }

  /* Los CTA ocupan el ancho: se pulsan con el pulgar, no se apuntan */
  .cl-hero__cta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  .cl-hero__cta .cl-btn {
    width: 100%;
    padding: 16px 20px;
    white-space: normal;
    text-align: center;
  }

  .cl-hero__proof {
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
  }

  /* Menos aire entre secciones: en móvil, 130px de padding es media pantalla */
  .cl-section {
    padding: clamp(46px, 11vw, 64px) 0;
  }

  h2,
  .cl-h2 {
    font-size: clamp(1.52rem, 7.2vw, 1.95rem);
    line-height: 1.18;
    letter-spacing: -0.016em;
  }

  /* Calculadora: el pulgar del slider tiene que verse y caber en un dedo */
  .cl-calc__grid {
    margin-top: 30px;
  }

  .cl-calc__range {
    height: 8px;
  }

  .cl-calc__range::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
  }

  .cl-calc__range::-moz-range-thumb {
    width: 26px;
    height: 26px;
  }

  .cl-calc__out {
    position: static;
  }

  .cl-calc__val {
    font-size: 1.18rem;
  }

  .cl-calc__total-num {
    font-size: clamp(2rem, 9.5vw, 2.5rem);
  }

  /* La ficha de la demo, con menos relleno para que quepa el contenido */
  .cl-demo {
    padding: 18px;
  }

  /* El botón secundario se leía como deshabilitado: borde y texto más firmes */
  .cl-hero__cta .cl-btn--ghost {
    border: 1.5px solid rgba(20, 24, 28, 0.28);
    color: var(--cl-ink);
  }

  /* Contraste: el gris de los checks se perdía en pantalla de móvil */
  .cl-hero__proof {
    color: rgba(20, 24, 28, 0.62);
  }
}

/* --------------------------------------------------------------------------
   Especialidades (13 nov 2026)
   -------------------------------------------------------------------------- */

.cl-niches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.cl-niche {
  display: block;
  padding: 20px;
  background: var(--cl-white);
  border: 1px solid var(--cl-line);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s var(--cl-ease), border-color 0.2s ease;
}

.cl-niche:hover {
  transform: translateY(-2px);
  border-color: var(--cl-red);
}

.cl-niche b {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.cl-niche span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--cl-muted);
}

@media (max-width: 960px) {
  .cl-niches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cl-niches {
    grid-template-columns: 1fr;
  }
}

/* Nota al pie de las cifras de fuga (13 nov 2026): aclarar que son medias del sector */
.cl-leak__disclaimer {
  margin: 18px auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(233, 238, 242, 0.72);
}
