/* ==========================================================================
   Clean Clean Solution — Hoja de estilos
   www.cleancleansolution.com.mx

   Índice
   01. Variables de marca
   02. Base y utilidades
   03. Botones
   04. Encabezado y navegación
   05. Hero
   06. Propuesta de valor
   07. Servicios
   08. Comparador antes / después
   09. Proceso
   10. Cotizador
   11. Preguntas frecuentes
   12. Llamado final
   13. Footer
   14. Botón flotante de WhatsApp
   15. Animaciones y accesibilidad
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Variables de marca
   -------------------------------------------------------------------------- */
:root {
  /* Paleta oficial */
  --cyan: #1FA2D6;
  --cyan-bright: #29ABE2;
  --royal: #0A4D8C;
  --petrol: #0F292E;
  --white: #FFFFFF;
  --ice: #F4F8FB;
  --ink: #1A242B;

  /* Derivados */
  --ink-soft: #4A5A66;
  --line: #DCE7EF;
  --petrol-soft: #17383F;
  --on-dark: #E8F3F7;
  --on-dark-muted: #A9C3CC;
  --on-cyan: #06222B;
  --logo-teal: #156578;
  --whatsapp: #25D366;

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

  /* Forma y profundidad */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px -4px rgba(15, 41, 46, .14);
  --shadow-md: 0 14px 34px -16px rgba(15, 41, 46, .32);
  --shadow-lg: 0 30px 60px -28px rgba(10, 77, 140, .45);

  /* Estructura */
  --container: 1180px;
  --header-h: 68px;
}

@media (min-width: 1024px) {
  :root { --header-h: 78px; }
}

/* --------------------------------------------------------------------------
   02. Base y utilidades
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

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

::selection { background: var(--cyan); color: var(--on-cyan); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1.1rem;
  border-radius: 0 0 12px 12px;
  background: var(--petrol);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.icon {
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--ice { background: var(--ice); }
.section--dark { background: var(--petrol); color: var(--on-dark); }

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.section-head h2,
.results__copy h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
}
.section-head > p:not(.eyebrow),
.results__copy > p:not(.eyebrow):not(.results__label) {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--ink-soft);
}
.section--dark .section-head h2 { color: var(--white); }
.section--dark .section-head > p:not(.eyebrow) { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--royal);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan-bright), var(--royal));
}
.section--dark .eyebrow { color: var(--cyan-bright); }
.section--dark .eyebrow::before { background: var(--cyan-bright); }

.text-gradient {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--royal) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--royal);
}

/* --------------------------------------------------------------------------
   03. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease,
              border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
  color: var(--on-cyan);
  box-shadow: 0 12px 26px -12px rgba(31, 162, 214, .85);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(31, 162, 214, .95);
}

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--royal);
}
.btn--ghost:hover {
  border-color: var(--royal);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--royal);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .5);
}
.btn--white:hover { transform: translateY(-2px); }

.btn--outline-light {
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
}

.btn--sm { min-height: 44px; padding: .55rem 1.05rem; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.link-btn {
  display: block;
  margin: .9rem auto 0;
  padding: .35rem .6rem;
  border: 0;
  background: none;
  color: var(--on-dark-muted);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   04. Encabezado y navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 26px -20px rgba(15, 41, 46, .45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  height: var(--header-h);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Marca / logotipo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 12px;
}
.brand__img {
  width: auto;
  height: 50px;
  max-width: 170px;
  object-fit: contain;
}
.brand__fallback {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.brand__mark { width: 44px; height: 44px; }
/* Nombre con los mismos colores del logotipo */
.brand__name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--cyan-bright);
}
.brand__name span { display: block; color: var(--logo-teal); }

/* Si logo.png trae fondo oscuro, script.js detecta su color y lo enmarca
   en un contenedor del mismo tono para que luzca integrado. */
.brand--tile {
  padding: 4px 10px;
  background: var(--logo-bg, var(--petrol));
}
.brand--tile .brand__img { border-radius: 0; }

/* Variante sobre fondo oscuro (footer) */
.brand--on-dark .brand__img {
  width: 136px;
  height: 136px;
  max-width: none;
  padding: 10px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .7);
}
.brand--on-dark.brand--tile { padding: 0; background: none; }
.brand--on-dark.brand--tile .brand__img {
  padding: 0;
  border-radius: 12px;
  background: none;
}
.brand--on-dark .brand__mark {
  width: 52px;
  height: 52px;
  padding: 5px;
  border-radius: 14px;
  background: var(--white);
}
.brand--on-dark .brand__name { font-size: 1.1875rem; color: var(--white); }
.brand--on-dark .brand__name span { color: var(--cyan-bright); }

@media (min-width: 1200px) {
  .brand__img { height: 58px; max-width: 220px; }
  .brand__mark { width: 50px; height: 50px; }
  .brand__name { font-size: 1.25rem; }
}

/* Menú: panel desplegable en móvil, barra en escritorio */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: .75rem 1.25rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(15, 41, 46, .45);
}
.nav.is-open {
  display: block;
  animation: menu-in .22s ease both;
}
.nav__list { display: grid; gap: .15rem; }
.nav__link {
  display: block;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.nav__link:hover { background: var(--ice); color: var(--royal); }
.nav__link.is-active {
  background: rgba(31, 162, 214, .12);
  color: var(--royal);
  font-weight: 600;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--petrol);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Botón de WhatsApp del encabezado: solo ícono en pantallas chicas,
   texto corto donde el espacio es justo y texto completo donde cabe. */
.header-cta {
  width: 46px;
  min-height: 46px;
  padding: 0;
}
.header-cta .icon { width: 22px; height: 22px; }
.header-cta__text,
.header-cta__long { display: none; }

@media (min-width: 480px) {
  .header-cta { width: auto; min-height: 44px; padding: .55rem 1.05rem; }
  .header-cta .icon { width: 1.25em; height: 1.25em; }
  .header-cta__text { display: inline; }
}
@media (min-width: 640px) {
  .header-cta__long { display: inline; }
}

@media (min-width: 1024px) {
  .header-cta__long { display: none; }
  .nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav.is-open { animation: none; }
  .nav__list { display: flex; align-items: center; gap: .1rem; }
  .nav__link {
    padding: .5rem .7rem;
    border-radius: 999px;
    font-size: .9375rem;
    white-space: nowrap;
  }
  .nav-toggle { display: none; }
}

@media (min-width: 1200px) {
  .nav__link { padding: .55rem .9rem; }
  .header-cta__long { display: inline; }
}

/* --------------------------------------------------------------------------
   05. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 88% -12%, rgba(41, 171, 226, .24), transparent 62%),
    radial-gradient(40rem 26rem at -12% 108%, rgba(10, 77, 140, .10), transparent 62%),
    linear-gradient(180deg, var(--ice) 0%, var(--white) 100%);
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: clamp(2.75rem, 6vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .95rem .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--royal);
}
.tag .icon { color: var(--cyan); }

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 6.4vw, 3.875rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.hero__motto {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.25rem;
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--royal);
}
.hero__motto .icon { width: 1.4em; height: 1.4em; color: var(--cyan); }

.hero__lead {
  max-width: 56ch;
  margin-top: .75rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-soft);
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.pillar {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem 1rem .4rem .4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: .9375rem;
  font-weight: 600;
}
.pillar__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-bright), var(--royal));
  color: var(--white);
}
.pillar__icon .icon { width: 19px; height: 19px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero__actions .btn { flex: 1 1 240px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust .icon { width: 1.1em; height: 1.1em; stroke-width: 3; color: var(--cyan); }

.hero__media {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.hero__frame {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--cyan-bright) 0%, var(--royal) 68%, var(--petrol) 100%);
  box-shadow: var(--shadow-lg);
  --sofa-a: #FFFFFF;
  --sofa-b: #CFEBF8;
  --sofa-sparkle: rgba(255, 255, 255, .9);
}
.hero__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hero__art svg { width: 78%; height: auto; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1rem .7rem .7rem;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: .8125rem;
  line-height: 1.3;
  color: var(--ink-soft);
}
.float-card strong {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
}
.float-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(41, 171, 226, .16);
  color: var(--royal);
}
.float-card__icon--leaf { background: rgba(15, 41, 46, .08); color: var(--petrol); }
.float-card--a { left: -.4rem; bottom: 1.1rem; }
.float-card--b { right: -.4rem; top: 1.1rem; }

@media (min-width: 640px) {
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.08fr .92fr; }
  .hero__media { max-width: none; }
  .hero__frame { aspect-ratio: 4 / 4.6; }
  .float-card--a { left: -1.75rem; bottom: 2.25rem; }
  .float-card--b { right: -1rem; top: 2.25rem; }
}

/* Entrada del hero (solo CSS: funciona aunque no cargue el JavaScript) */
.hero__copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__copy > *:nth-child(2) { animation-delay: .06s; }
.hero__copy > *:nth-child(3) { animation-delay: .12s; }
.hero__copy > *:nth-child(4) { animation-delay: .18s; }
.hero__copy > *:nth-child(5) { animation-delay: .24s; }
.hero__copy > *:nth-child(6) { animation-delay: .30s; }
.hero__copy > *:nth-child(7) { animation-delay: .36s; }
.hero__media { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }

/* --------------------------------------------------------------------------
   06. Propuesta de valor
   -------------------------------------------------------------------------- */
.statement {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44rem 22rem at 100% 0%, rgba(41, 171, 226, .20), transparent 65%),
    radial-gradient(36rem 20rem at 0% 100%, rgba(10, 77, 140, .35), transparent 65%);
  pointer-events: none;
}
.statement > .container { position: relative; }

.statement__head { display: grid; gap: 1.25rem; }
.statement__title {
  font-size: clamp(1.75rem, 4.6vw, 3rem);
  color: var(--white);
}
.statement__title span { display: block; color: var(--cyan-bright); }
.statement__text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--on-dark-muted);
}

.features {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.25rem);
}
.feature {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(41, 171, 226, .16);
  color: var(--cyan-bright);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 {
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
}
.feature p {
  margin-top: .5rem;
  font-size: .9375rem;
  color: var(--on-dark-muted);
}

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .statement__head { grid-template-columns: 1.2fr .8fr; align-items: end; gap: 3rem; }
  .features { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   07. Servicios
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan-bright), var(--royal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 162, 214, .5);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(41, 171, 226, .18), rgba(10, 77, 140, .12));
  color: var(--royal);
}
.card__icon .icon { width: 30px; height: 30px; stroke-width: 1.8; }

.card h3 {
  margin-top: 1.25rem;
  font-size: 1.3125rem;
  font-weight: 700;
}
.card > p {
  margin-top: .75rem;
  color: var(--ink-soft);
}

.checklist {
  display: grid;
  gap: .6rem;
  margin: 1.25rem 0 1.75rem;
  font-size: .9375rem;
}
.checklist li { display: flex; align-items: flex-start; gap: .6rem; }
.checklist .icon {
  width: 1.15em;
  height: 1.15em;
  margin-top: .22em;
  stroke-width: 3;
  color: var(--cyan);
}

.card__cta { margin-top: auto; }

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card:last-child { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   08. Comparador antes / después
   -------------------------------------------------------------------------- */
.results {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.results__label {
  margin-top: 1.75rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .85rem 0 2rem;
}
.chips li {
  padding: .4rem .9rem;
  border: 1px solid rgba(10, 77, 140, .18);
  border-radius: 999px;
  background: var(--ice);
  font-size: .875rem;
  font-weight: 500;
  color: var(--royal);
}

.results__media { margin: 0; min-width: 0; }

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: var(--ice);
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.compare__layer { position: absolute; inset: 0; }
.compare__layer--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare__layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Ilustraciones de respaldo (visibles solo mientras no subas tus fotos) */
.compare__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.compare__art svg { width: 84%; height: auto; }
.compare__layer--after .compare__art {
  background: linear-gradient(180deg, #EAF6FC 0%, #CDE8F6 100%);
  --sofa-a: #FCF8EF;
  --sofa-b: #E9DFCB;
  --sofa-sparkle: #29ABE2;
}
.compare__layer--before .compare__art {
  background: linear-gradient(180deg, #CEC7BA 0%, #B0A898 100%);
  --sofa-a: #A79B86;
  --sofa-b: #8C806C;
  --sofa-stain: rgba(74, 54, 28, .5);
}

.compare__tag {
  position: absolute;
  top: 1rem;
  z-index: 2;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}
.compare__tag--before { left: 1rem; background: rgba(15, 41, 46, .82); }
.compare__tag--after { right: 1rem; background: var(--royal); }

.compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 4px;
  margin-left: -2px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(15, 41, 46, .12), 0 0 18px rgba(15, 41, 46, .4);
  pointer-events: none;
}
.compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--royal);
  box-shadow: 0 6px 18px rgba(15, 41, 46, .4);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.compare__knob .icon { width: 26px; height: 26px; stroke-width: 2.4; }
.compare.is-dragging .compare__knob {
  background: var(--cyan);
  color: var(--on-cyan);
  transform: translate(-50%, -50%) scale(1.1);
}
.compare__range:focus-visible ~ .compare__handle .compare__knob {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.results__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  .results { grid-template-columns: .9fr 1.1fr; }
}

/* --------------------------------------------------------------------------
   09. Proceso
   -------------------------------------------------------------------------- */
.process { position: relative; overflow: hidden; }
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50rem 24rem at 50% 0%, rgba(41, 171, 226, .16), transparent 70%);
  pointer-events: none;
}
.process > .container { position: relative; }

.steps {
  display: grid;
  gap: 2.25rem;
  max-width: 560px;
  margin-inline: auto;
}

.step {
  position: relative;
  padding-left: 4.5rem;
}
.step__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
  box-shadow: 0 0 0 6px rgba(41, 171, 226, .16);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--on-cyan);
}
/* Línea de tiempo: vertical en móvil */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 64px;
  bottom: -1.75rem;
  left: 25px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(41, 171, 226, .12));
}
.step__icon {
  width: 28px;
  height: 28px;
  margin-bottom: .6rem;
  stroke-width: 1.8;
  color: var(--cyan-bright);
}
.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}
.step p {
  margin-top: .55rem;
  font-size: .9375rem;
  color: var(--on-dark-muted);
}

/* Línea de tiempo: horizontal en escritorio */
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: none;
  }
  .step { padding: 5rem 0 0; }
  .step:not(:last-child)::before {
    top: 25px;
    right: -1.5rem;
    bottom: auto;
    left: 66px;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), rgba(41, 171, 226, .12));
  }
}

/* --------------------------------------------------------------------------
   10. Cotizador
   -------------------------------------------------------------------------- */
.quote {
  display: grid;
  align-items: start;
  gap: 1.5rem;
}

.quote__panel {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.q-group {
  min-width: 0;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}
.q-group:last-child { margin-bottom: 0; }
.q-group legend {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
  padding: 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--petrol);
}
.q-group legend .icon { width: 22px; height: 22px; color: var(--cyan); }

.q-list { display: grid; gap: .6rem; }

.q-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 64px;
  padding: .6rem .6rem .6rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.q-item.is-selected {
  border-color: var(--cyan);
  background: rgba(41, 171, 226, .08);
  box-shadow: 0 6px 16px -12px rgba(31, 162, 214, .9);
}
.q-item__info { min-width: 0; }
.q-item__name {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.q-item__hint {
  display: block;
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.stepper {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: var(--ice);
}
.q-item.is-selected .stepper { background: var(--white); }
.stepper__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(15, 41, 46, .16);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--royal);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.stepper__btn:hover:not(:disabled) { background: var(--royal); color: var(--white); }
.stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.q-item.is-selected .stepper__btn { background: var(--ice); }
.q-item.is-selected .stepper__btn:hover:not(:disabled) { background: var(--royal); }

.stepper__input {
  width: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* Resumen */
.quote__summary {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 24px;
  background: var(--petrol);
  box-shadow: var(--shadow-lg);
  color: var(--on-dark);
}
.quote__summary h3 {
  font-size: 1.375rem;
  color: var(--white);
}

.summary__empty {
  margin-top: 1rem;
  padding: 1rem;
  border: 1.5px dashed rgba(255, 255, 255, .22);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--on-dark-muted);
}
.summary__empty strong { color: var(--cyan-bright); }

.summary__list {
  display: grid;
  gap: .5rem;
  margin-top: 1rem;
}
.summary__list:empty { display: none; }
.summary__list li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .6rem .85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  font-size: .9375rem;
  animation: rise .25s ease both;
}
.summary__qty {
  flex-shrink: 0;
  min-width: 2.2em;
  font-weight: 600;
  color: var(--cyan-bright);
}

.summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-weight: 500;
}
.summary__total strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.field {
  display: grid;
  gap: .35rem;
  margin-top: .9rem;
}
.field label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--on-dark);
}
.field label span { color: var(--on-dark-muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--white);
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(169, 195, 204, .75); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-bright);
  background: rgba(255, 255, 255, .10);
}

.quote__error {
  min-height: 1.4em;
  margin: .9rem 0 .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: #FFD08A;
}
.quote__note {
  margin-top: .5rem;
  font-size: .8125rem;
  text-align: center;
  color: var(--on-dark-muted);
}

@media (min-width: 640px) {
  .q-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .quote { grid-template-columns: 1.3fr .7fr; }
  .quote__summary {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

/* --------------------------------------------------------------------------
   11. Preguntas frecuentes
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: .85rem;
  max-width: 820px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item.is-open {
  border-color: rgba(31, 162, 214, .6);
  box-shadow: var(--shadow-sm);
}

.faq__h { font: inherit; letter-spacing: 0; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.1rem 1.1rem 1.35rem;
  border: 0;
  border-radius: 18px;
  background: none;
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.6vw, 1.0938rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.faq__q:hover { color: var(--royal); }

.faq__chev {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--royal);
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.faq__item.is-open .faq__chev {
  background: var(--cyan);
  color: var(--on-cyan);
  transform: rotate(180deg);
}

.faq__a { display: grid; grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p {
  padding: 0 1.35rem 1.35rem;
  color: var(--ink-soft);
}

/* El acordeón solo se colapsa cuando el JavaScript está activo;
   sin JavaScript todas las respuestas quedan visibles. */
.js .faq__a {
  transition: grid-template-rows .32s ease, visibility 0s;
}
.js .faq__item:not(.is-open) .faq__a {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .32s ease, visibility 0s .32s;
}

/* --------------------------------------------------------------------------
   12. Llamado final
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  background: linear-gradient(120deg, #083E73 0%, var(--royal) 50%, #1380B8 100%);
  color: var(--white);
  text-align: center;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}
.cta::before { top: -140px; right: -80px; width: 340px; height: 340px; }
.cta::after { bottom: -180px; left: -100px; width: 400px; height: 400px; }

.cta__inner { position: relative; z-index: 1; max-width: 760px; }
.cta__motto {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: .4rem 1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.cta h2 { font-size: clamp(1.75rem, 4.6vw, 2.875rem); }
.cta__inner > p:not(.cta__motto) {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: rgba(255, 255, 255, .88);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}
.cta__actions .btn { flex: 1 1 260px; }

@media (min-width: 640px) {
  .cta__actions .btn { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  background: var(--petrol);
  color: var(--on-dark-muted);
  font-size: .9375rem;
}

.footer__grid { display: grid; gap: 2.5rem; }

.footer__brand p { max-width: 36ch; margin-top: .6rem; }
.footer__brand .footer__motto {
  margin-top: 1.25rem;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
}

.footer__title {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
}

.footer__links { display: grid; gap: .6rem; }
.footer__links a,
.footer__contact a {
  text-decoration: none;
  transition: color .2s ease;
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.footer__contact { display: grid; gap: .85rem; }
.footer__contact li { display: flex; align-items: flex-start; gap: .7rem; }
.footer__contact .icon {
  width: 20px;
  height: 20px;
  margin-top: .2em;
  color: var(--cyan-bright);
}
.footer__contact a { overflow-wrap: anywhere; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1.5rem;
  margin-top: 3rem;
  padding-block: 1.5rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, .10);
  font-size: .8125rem;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr .8fr 1.1fr 1.2fr; gap: 3rem; }
  .footer__bottom { padding-bottom: 1.75rem; padding-right: 5rem; }
}

/* --------------------------------------------------------------------------
   14. Botón flotante de WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 14px 30px -10px rgba(18, 140, 70, .75);
  color: var(--white);
  text-decoration: none;
  transition: transform .2s ease;
}
.wa-float .icon { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: wa-pulse 2.6s ease-out infinite;
}

.wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: .5rem .85rem;
  border-radius: 10px;
  background: var(--petrol);
  box-shadow: var(--shadow-md);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
@media (hover: hover) and (min-width: 768px) {
  .wa-float:hover .wa-float__tip,
  .wa-float:focus-visible .wa-float__tip {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

/* --------------------------------------------------------------------------
   15. Animaciones y accesibilidad
   -------------------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes wa-pulse {
  0% { opacity: .55; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.75); }
}

/* Aparición al hacer scroll (la activa script.js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .wa-float::before { display: none; }
}

@media print {
  .site-header,
  .wa-float,
  .nav-toggle { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
