/* ============================================================================
   QUEDÓ NUEVO — main.css
   Sistema de diseño "Máxima Presión" (ver design_handoff_quedonuevo_home/README.md)

   REGLAS DURAS:
   - Amarillo (--amarillo) SOLO para precios (stickers). Jamás en otro elemento.
   - Verde (--verde) SOLO para CTAs de WhatsApp. Uno por pantalla + el flotante.
   - Una sola sombra en todo el sitio: --sombra-dura (la del sticker).
   - Motion: solo transform/opacity. Los precios jamás se animan.
   - Las variables --qn-* las interpola el dimmer por JS. NO usarlas en las
     secciones tinta (cómo funciona, footer) ni en el container azul del CTA.
============================================================================ */

:root {
  /* --- Colores FIJOS (el dimmer nunca los toca) --- */
  --azul: #1F3DFF;
  --azul-oscuro: #1733CC;
  --amarillo: #FFDD33;      /* EXCLUSIVO precios */
  --verde: #1FBA59;         /* EXCLUSIVO WhatsApp */
  --verde-hover: #18A04C;
  --tinta-fija: #16181D;    /* fondos oscuros + sombra dura */
  --papel-fijo: #F2F1EC;    /* texto sobre fondos oscuros */

  /* --- Colores VIVOS (interpolados por el dimmer, claro → oscuro) --- */
  --qn-papel: #F2F1EC;      /* → #141519 */
  --qn-card: #FFFFFF;       /* → #1E2027 */
  --qn-tinta: #16181D;      /* → #F2F1EC */
  --qn-sec: #6B6E76;        /* → #9FA3AD */
  --qn-borde: #E3E2DA;      /* → #2A2D35 */

  /* --- Layout --- */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --seccion: clamp(56px, 8vw, 104px);

  /* --- La ÚNICA sombra del sitio --- */
  --sombra-dura: 3px 3px 0 var(--tinta-fija);

  /* --- Tipos --- */
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --texto: 'Archivo', Arial, sans-serif;
}

/* ============ BASE ============ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--texto);
  background: var(--qn-papel);
  color: var(--qn-tinta);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

section, header.hero { scroll-margin-top: 90px; }

.contenedor {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============ TIPOGRAFÍA ============ */
.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--azul);
  text-transform: uppercase;
}

.h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--qn-tinta);
}

.h2-sub {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--qn-sec);
  max-width: 560px;
  line-height: 1.5;
}

.punto-azul { color: var(--azul); }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 52px; /* hit target mobile */
  transition: transform 150ms ease;
}

/* 1) CTA WhatsApp — verde EXCLUSIVO */
.btn-wa {
  background: var(--verde);
  color: #fff;
  font-weight: 800;
  font-size: 16.5px;
  padding: 15px 28px;
}
.btn-wa:hover { background: var(--verde-hover); transform: translateY(-1px); }

.btn-wa-chico { font-size: 14.5px; padding: 10px 20px; min-height: 44px; }

/* 2) Botón secundario — outline tinta, hover azul */
.btn-outline {
  border: 2px solid var(--qn-tinta);
  color: var(--qn-tinta);
  font-weight: 700;
  font-size: 15.5px;
  padding: 12px 26px;
}
.btn-outline:hover { background: var(--azul); border-color: var(--azul); color: #fff; }

/* ============ NAV STICKY ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--qn-papel);
  border-bottom: 1px solid var(--qn-borde);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* mobile: dos filas, sin hamburguesa */
  gap: 10px 18px;
  padding: 14px var(--gutter);
}

.wordmark {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--qn-tinta);
}
.wordmark span { color: var(--azul); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--qn-tinta);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--azul); }

/* ============ HERO ============ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) 0;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--qn-sec);
  text-transform: uppercase;
}

.hero-h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 104px);
  line-height: 0.96;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--qn-tinta);
  text-wrap: balance;
}

.hero-palabra {
  color: var(--azul);
  display: inline-block;
  min-width: 4ch; /* amortigua el reflow al rotar */
}

/* H1 de landings: lleva la keyword completa, escala un punto menos */
.hero-h1-landing { font-size: clamp(36px, 7vw, 80px); }

@keyframes qn-word-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.palabra-in { animation: qn-word-in 420ms ease-out; }

.hero-bajada {
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--qn-sec);
  max-width: 520px;
  text-wrap: pretty;
}
.hero-bajada strong { color: var(--qn-tinta); }

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: clamp(24px, 3.5vw, 40px);
}

.hero-checks {
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.check {
  font-size: 14px;
  font-weight: 600;
  color: var(--qn-sec);
}
.check b { color: var(--azul); font-weight: 800; }

/* ============ FRANJA MARQUEE (máx. 2 por página) ============ */
.franja-wrap { overflow: hidden; padding: 18px 0; }

.franja {
  background: var(--azul);
  padding: clamp(10px, 1.4vw, 14px) 0;
  transform: rotate(-2deg);
  width: 104%;
  margin-left: -2%;
  overflow: hidden;
  white-space: nowrap;
}

@keyframes qn-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.franja-texto {
  display: inline-block;
  animation: qn-marquee 16s linear infinite;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.06em;
}

/* ============ FOTO DE ACCIÓN (hero visual) ============ */
.foto-accion {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) var(--gutter) clamp(48px, 6vw, 80px);
  position: relative;
}

.foto-accion img {
  width: 100%;
  height: clamp(320px, 48vw, 560px);
  object-fit: cover;
  border-radius: 24px;
}

.foto-accion-overlay {
  position: absolute;
  top: clamp(0px, 1vw, 12px);
  right: clamp(32px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.tag-pedido {
  background: var(--tinta-fija);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 7px 13px;
  border-radius: 999px;
}

/* ============ STICKER DE PRECIO (amarillo EXCLUSIVO) ============ */
.sticker {
  background: var(--amarillo);
  color: var(--tinta-fija);
  font-family: var(--display);
  border-radius: 10px;
  box-shadow: var(--sombra-dura);
  display: inline-block;
}

.sticker-hero {
  font-size: clamp(16px, 2.2vw, 22px);
  padding: 12px 18px;
  transform: rotate(3deg);
}

.sticker-card {
  position: absolute;
  top: -17px;
  right: 18px;
  font-size: 17px;
  padding: 9px 15px;
}

.sticker-combo {
  font-size: clamp(24px, 3vw, 32px);
  padding: 14px 22px;
  border-radius: 12px;
  transform: rotate(-3deg);
}

/* rotaciones alternadas de los stickers de cards */
.rot-a { transform: rotate(3deg); }
.rot-b { transform: rotate(-2deg); }
.rot-c { transform: rotate(2deg); }

/* ============ SECCIONES ============ */
.seccion {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--seccion) var(--gutter) 0;
}

/* ============ CARDS DE SERVICIO ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 40px 22px; /* row-gap amplio para que los stickers no pisen la card de arriba */
  margin-top: 44px;
}

.card {
  position: relative;
  background: var(--qn-card);
  border: 1px solid var(--qn-borde);
  border-radius: 20px;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  margin: 0;
  text-transform: uppercase;
  color: var(--qn-tinta);
}

.card-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-checks .check { font-size: 14.5px; font-weight: 500; }

.card .btn-outline {
  margin-top: auto;
  font-size: 15px;
  padding: 11px 22px;
  text-align: center;
}

/* Combo destacado: fila completa, borde azul 3px */
.combo {
  grid-column: 1 / -1;
  position: relative;
  background: var(--qn-card);
  border: 3px solid var(--azul);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.combo-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 540px;
}

.combo-info .tag-pedido { align-self: flex-start; }

.combo-info h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  text-transform: uppercase;
  color: var(--qn-tinta);
}

.combo-info p {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--qn-sec);
  line-height: 1.5;
}
.combo-info p strong { color: var(--qn-tinta); }

.combo-precio {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============ SECCIÓN OSCURA (Cómo funciona) — NO usa vars del dimmer ============ */
.seccion-tinta {
  background: var(--tinta-fija);
  margin-top: var(--seccion);
}

.seccion-tinta .contenedor { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }

.seccion-tinta .h2 { color: var(--papel-fijo); margin-bottom: 40px; }

.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.paso { display: flex; flex-direction: column; gap: 10px; }

.paso-num {
  font-family: var(--display);
  font-size: 52px;
  color: var(--azul);
  line-height: 1;
}

.paso h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  margin: 0;
  text-transform: uppercase;
  color: var(--papel-fijo);
}

.paso p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #B9BCC4;
  font-weight: 500;
}

/* ============ COMPARADOR ANTES/DESPUÉS ============ */
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.cmp-figura { display: flex; flex-direction: column; gap: 12px; margin: 0; }

.cmp {
  position: relative;
  height: clamp(280px, 34vw, 420px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--qn-borde);
  background: #DDDCD4;
}

.cmp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp-despues {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%); /* lo actualiza el JS */
}

.cmp-label {
  position: absolute;
  top: 14px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}
.cmp-label-antes { left: 14px; background: rgba(22, 24, 29, 0.78); }
.cmp-label-despues { right: 14px; background: var(--azul); }

.cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* lo actualiza el JS */
  width: 44px; /* franja de hit */
  transform: translateX(-50%);
  cursor: ew-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  outline-offset: -4px;
}

.cmp-linea {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35); /* excepción funcional */
  pointer-events: none;
}

.cmp-knob {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--tinta-fija);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--tinta-fija);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* excepción funcional */
  pointer-events: none;
}

.cmp-caption { font-size: 14px; font-weight: 600; color: var(--qn-sec); }

.nota-pendiente {
  margin: 16px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--qn-sec);
}

/* ============ TESTIMONIOS ============ */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.testimonio {
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--qn-card);
  border: 1px solid var(--qn-borde);
}

/* hasta tener testimonios reales: borde punteado = placeholder explícito */
.testimonio-placeholder { background: transparent; border: 2px dashed var(--qn-borde); }

.estrellas { color: var(--azul); font-size: 17px; letter-spacing: 3px; }

.testimonio blockquote,
.testimonio p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--qn-sec);
  font-style: italic;
}

.testimonio cite,
.testimonio .firma {
  font-size: 14px;
  font-weight: 700;
  color: var(--qn-tinta);
  font-style: normal;
}

/* ============ ZONA DE COBERTURA ============ */
.zona { margin-top: clamp(48px, 6vw, 72px); }

.zona .h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 24px; }

.pills { display: flex; gap: 10px; flex-wrap: wrap; }

.pill {
  border: 1.5px solid var(--qn-tinta);
  color: var(--qn-tinta);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
}

.pill-azul {
  background: var(--azul);
  border: none;
  color: #fff;
  font-weight: 800;
  padding: 10px 18px;
  text-decoration: none;
}
.pill-azul:hover { background: var(--azul-oscuro); }

/* ============ FAQ ============ */
.faq-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 840px;
}

.faq-lista details {
  background: var(--qn-card);
  border: 1px solid var(--qn-borde);
  border-radius: 16px;
  padding: 18px 22px;
}

.faq-lista summary {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--qn-tinta);
}

.faq-lista details p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--qn-sec);
  font-weight: 500;
}

/* ============ CTA FINAL — container azul fijo (no cambia con dimmer) ============ */
.cta-final {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(64px, 8vw, 104px);
}

.cta-final-box {
  background: var(--azul);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.cta-final-box h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 60px);
  margin: 0;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}

.cta-final-box p {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  line-height: 1.5;
}

.cta-final-box .btn-wa { margin-top: 6px; font-size: 17px; padding: 16px 32px; }

.cta-final-horario {
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
}

/* ============ FOOTER — tinta fija ============ */
.footer {
  background: var(--tinta-fija);
  padding: 40px var(--gutter);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.footer .wordmark { color: var(--papel-fijo); }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

.footer-links a,
.footer-links span {
  font-size: 14px;
  font-weight: 700;
  color: #B9BCC4;
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 13px; font-weight: 600; color: #6B6E76; }

/* ============ WHATSAPP FLOTANTE ============ */
.wa-flotante {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(22, 24, 29, 0.25); /* excepción funcional */
  transition: transform 150ms ease;
}
.wa-flotante:hover { transform: scale(1.06); background: var(--verde-hover); }

/* ============ DIMMER (elemento firma) ============ */
.dimmer {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 8px;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 999px;
  outline-offset: 3px;
}

.dimmer-glifo {
  font-size: 12px;
  line-height: 1;
  color: var(--qn-sec);
  pointer-events: none;
}

.dimmer-track {
  position: relative;
  width: 6px;
  height: 124px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #F2F1EC, #141519);
  box-shadow: 0 0 0 1px var(--qn-borde); /* es un borde, no una sombra */
  display: block;
  pointer-events: none;
}

.dimmer-thumb {
  position: absolute;
  left: 50%;
  top: 0%; /* lo actualiza el JS: (100 - dim)% */
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--tinta-fija);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* excepción funcional */
  display: block;
}

/* ============ REDUCED MOTION: se apaga todo ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .franja-texto { animation: none; }
  .palabra-in { animation: none; }
  .btn, .wa-flotante { transition: none; }
}
