/* ============================================================
   PIRKA — DIAGNOSTICO LANDING  |  styles.css
   Tokens de marca + reset + componentes base + nav/hero/footer
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --violeta: #3C2561;
  --purpura: #81267A;
  --coral:   #F74C60;
  --crema:   #FBF7F2;
  --ink:     #2A1846;
  --exito:   #1c9e6a;
  --muted:   #6b6270;
  --border:  rgba(60, 37, 97, .12);
  --radio:   16px;
  --maxw:    1100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { color: var(--ink); background: #fff; line-height: 1.5; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Layout ──────────────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Botón coral ─────────────────────────────────────────── */
.btn-coral {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(247, 76, 96, .32);
  transition: opacity .18s ease, transform .18s ease;
}
.btn-coral:hover  { opacity: .9; transform: translateY(-1px); }
.btn-coral:active { transform: translateY(0); opacity: 1; }

/* ── Accesibilidad: reduce motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo .brand {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--violeta);
  line-height: 1.2;
  /* Ocultar el texto en pantallas muy angostas para que quepa el botón */
  display: none;
}
@media (min-width: 460px) {
  .nav-logo .brand { display: block; }
}

/* Links */
.nav-links {
  display: none; /* móvil: oculto */
  list-style: none;
  gap: 24px;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--violeta); }

/* CTA nav */
.nav-cta {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: .9; }
/* Texto responsivo del botón nav */
.nav-cta-full  { display: none; }
.nav-cta-short { display: inline; }
@media (min-width: 440px) {
  .nav-cta-full  { display: inline; }
  .nav-cta-short { display: none; }
  .nav-cta { padding: 10px 18px; font-size: .85rem; }
}

/* Desktop: mostrar links */
@media (min-width: 700px) {
  .nav-links { display: flex; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
#hero {
  background: linear-gradient(160deg, #FBF7F2 0%, #F1E7E1 100%);
  padding: 64px 0 56px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.hero-text { flex: 1; }

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-text .hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 480px;
}
.hero-text .btn-coral { font-size: 1rem; padding: 16px 28px; }

/* Badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero-badges span {
  font-size: .8125rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--violeta);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Imagen hero (placeholder visual con gradiente) */
.hero-visual {
  flex-shrink: 1;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--violeta), var(--purpura));
  border-radius: var(--radio);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  font-weight: 600;
}

@media (min-width: 820px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
  }
  .hero-visual {
    width: 42%;
    max-width: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECCIONES PLACEHOLDER (vacías para tareas siguientes)
   ═══════════════════════════════════════════════════════════ */
.section-placeholder {
  min-height: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.section-placeholder .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  color: var(--muted);
  font-size: .8125rem;
  font-style: italic;
  opacity: .5;
}

/* La sección diagnóstico es el foco — destacada */
#diagnostico {
  background: linear-gradient(170deg, #FBF7F2 0%, #F4ECE6 100%);
  border-top: 2px solid var(--coral);
  padding: 56px 0 64px;
}
/* Encabezado de la sección diagnóstico */
.dx-section-header {
  text-align: center;
  margin-bottom: 32px;
}
.dx-section-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 8px;
}
.dx-section-sub {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   DIAGNÓSTICO — STATE MACHINE (portado de design-reference)
   ═══════════════════════════════════════════════════════════ */

/* Contenedor raíz con variables de color */
.dx {
  --violeta: #3C2561;
  --purpura: #81267A;
  --coral:   #F74C60;
  --crema:   #FBF7F2;
  --ink:     #2A1846;
}

/* Escenario (tarjeta con gradiente) */
.dx-stage {
  background: linear-gradient(170deg, #FBF7F2 0%, #F4ECE6 100%);
  border-radius: 20px;
  padding: 26px 26px 30px;
  border: 1px solid rgba(60, 37, 97, .08);
  max-width: 860px;
  margin: 0 auto;
}

/* Fila superior: logo + contador de paso */
.dx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dx-step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--purpura);
}
.dx-logo {
  font-weight: 800;
  color: var(--violeta);
  letter-spacing: .02em;
}

/* Barra de progreso */
.dx-bar {
  display: flex;
  gap: 6px;
  margin: 14px 0 22px;
}
.dx-bar span {
  height: 7px;
  flex: 1;
  border-radius: 4px;
  background: #E7DCE7;
}
.dx-bar span.on { background: var(--coral); }

/* Pregunta y ayuda */
.dx-q {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 4px;
}
.dx-help {
  font-size: 14px;
  color: #6b6270;
  margin: 0 0 20px;
}

/* Etiqueta "podés marcar varias" */
.dx-pill-multi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--purpura);
  background: #F4EDF4;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ── Grid de tarjetas (P1 y P2) ── */
.dx-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 820px) {
  .dx-opts { grid-template-columns: 1fr; }
}

/* Tarjeta individual */
.dx-opt {
  border: 2px solid rgba(60, 37, 97, .12);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.dx-opt:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(60, 37, 97, .16);
}
.dx-opt.selected {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(247, 76, 96, .22);
}

/* Check REDONDO (selección única — P1) */
.dx-check-round {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.dx-opt.selected .dx-check-round { display: flex; }

/* Check CUADRADO (selección múltiple — P2) */
.dx-check-sq {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .9);
  border: 2px solid #fff;
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  opacity: .35;
}
.dx-opt.selected .dx-check-sq {
  background: var(--coral);
  color: #fff;
  opacity: 1;
}

/* Imagen en tarjetas P1 — a ancho completo */
.dx-illo-full {
  background: #fff;
  border-bottom: 1px solid rgba(60, 37, 97, .08);
}
.dx-illo-full img {
  display: block;
  width: 100%;
  height: auto;
}

/* Imagen en tarjetas P2 — altura fija con object-fit */
.dx-illo-crop {
  height: 158px;
  background: #eee;
  overflow: hidden;
}
.dx-illo-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pie de tarjeta */
.dx-cap {
  padding: 13px 15px 16px;
}
.dx-cap h4 {
  margin: 0 0 3px;
  font-size: 16px;
  color: var(--ink);
}
.dx-cap p {
  margin: 0;
  font-size: 12.5px;
  color: #6b6270;
  line-height: 1.4;
}

/* ── Chips (P3, P4, P5) ── */
.dx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dx-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 2px solid rgba(60, 37, 97, .14);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: transform .12s, box-shadow .12s, border-color .12s;
  -webkit-user-select: none;
  user-select: none;
}
.dx-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(60, 37, 97, .14);
}
.dx-chip.sel {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(247, 76, 96, .2);
}
.dx-chip .dx-ic { font-size: 20px; }
.dx-chip .dx-ck {
  margin-left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(60, 37, 97, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}
.dx-chip.sel .dx-ck {
  background: var(--coral);
  border-color: var(--coral);
}

/* Etiqueta multi para P3 (chips) */
.dx-tag-multi {
  font-size: 11px;
  font-weight: 700;
  color: var(--purpura);
  margin-left: 8px;
}

/* ── Botones de navegación ── */
.dx-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}
.dx-btn-back {
  background: transparent;
  color: #6b6270;
  border: 1px solid rgba(60, 37, 97, .2);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.dx-btn-back:hover { background: rgba(60, 37, 97, .06); }
.dx-btn-back:disabled { opacity: .35; cursor: default; }

.dx-btn-next {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: .9375rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(247, 76, 96, .3);
  transition: opacity .15s, transform .15s;
}
.dx-btn-next:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.dx-btn-next:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ── Placeholder gate (legacy, no usado) ── */
.dx-gate-placeholder {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(170deg, #FBF7F2 0%, #F4ECE6 100%);
  border-radius: 20px;
  border: 1px solid rgba(60, 37, 97, .08);
  max-width: 860px;
  margin: 0 auto;
}
.dx-gate-placeholder p {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.dx-gate-placeholder small {
  color: var(--muted);
  font-size: .875rem;
}

/* ═══════════════════════════════════════════════════════════
   GATE — Teaser + Formulario (Task 9)
   ═══════════════════════════════════════════════════════════ */

/* El stage del gate puede ser más ancho que el wizard */
.dx-gate-stage { max-width: 960px; }

/* Fila superior: 2 columnas → logo cae sobre el formulario */
.gate-topgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
@media (max-width: 820px) {
  .gate-topgrid { grid-template-columns: 1fr; }
}
.gate-topleft  { min-width: 0; }
.gate-topright {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.gate-topright img { height: 92px; width: auto; }
@media (max-width: 820px) {
  .gate-topright { justify-content: flex-start; }
  .gate-topright img { height: 64px; }
}

.gate-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1c9e6a;
  background: #e4f6ee;
  padding: 6px 12px;
  border-radius: 999px;
}
.gate-h {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.12;
  margin: 12px 0 0;
}
.gate-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.5;
}

/* Dos columnas: teaser | formulario */
.gate-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 820px) {
  .gate-grid2 { grid-template-columns: 1fr; }
}

/* ── Teaser ── */
.gate-teaser {
  background: #fff;
  border: 1px solid rgba(60, 37, 97, .1);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.gate-t-kind {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gate-t-ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3C2561, #81267A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.gate-t-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--purpura);
}
.gate-t-nombre {
  margin: 2px 0 0;
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
}
.gate-t-locked {
  margin-top: 16px;
  position: relative;
}
.gate-t-blur {
  filter: blur(5px);
  opacity: .55;
  user-select: none;
  pointer-events: none;
}
.gate-t-blur h4 {
  margin: 10px 0 4px;
  font-size: 13px;
  color: var(--ink);
}
.gate-t-blur p {
  margin: 0;
  font-size: 12.5px;
  color: #555;
  line-height: 1.5;
}
.gate-t-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.gate-t-lock-pad {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(247, 76, 96, .4);
}
.gate-t-lock span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

/* ── Formulario ── */
.gate-form {
  background: #fff;
  border: 1px solid rgba(60, 37, 97, .1);
  border-radius: 16px;
  padding: 20px;
}
.gate-form-title {
  margin: 0 0 2px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
}
.gate-form-sub {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.gate-fld {
  margin-bottom: 12px;
}
.gate-fld label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.gate-inp {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(60, 37, 97, .18);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}
.gate-inp::placeholder { color: #aaa; }
.gate-inp:focus {
  outline: none;
  border-color: var(--purpura);
  box-shadow: 0 0 0 3px rgba(129, 38, 122, .12);
}
.gate-phone {
  display: flex;
  gap: 8px;
}
.gate-cc { width: 110px; flex-shrink: 0; }

.gate-consent-wrap { margin-top: 4px; }
.gate-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.gate-consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--coral);
}

.gate-submit {
  width: 100%;
  margin-top: 6px;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(247, 76, 96, .32);
  font-family: inherit;
  transition: opacity .15s, transform .15s;
}
.gate-submit:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.gate-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.gate-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.gate-trust span {
  font-size: 11.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ═══════════════════════════════════════════════════════════
   RESULTADO REVELADO (Task 9)
   ═══════════════════════════════════════════════════════════ */
.rv-stage { max-width: 960px; }

/* Top centrado: logo + sello */
.rv-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-align: center;
}
.rv-top img { height: 58px; width: auto; }
.rv-lbl {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1c9e6a;
  background: #e4f6ee;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Hero */
.rv-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #3C2561, #81267A);
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px;
}
@media (max-width: 520px) {
  .rv-hero { flex-direction: column; align-items: flex-start; }
}
.rv-hero-ic {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.rv-hero-hl {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .85;
}
.rv-hero-h2 {
  margin: 3px 0 4px;
  font-size: 26px;
  color: #fff;
  font-weight: 800;
}
.rv-hero-p {
  margin: 0;
  font-size: 13.5px;
  opacity: .9;
  line-height: 1.45;
}

/* Columnas causa + solución */
.rv-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 820px) { .rv-cols { grid-template-columns: 1fr; } }

.rv-card {
  background: #fff;
  border: 1px solid rgba(60, 37, 97, .1);
  border-radius: 16px;
  padding: 20px;
}
.rv-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.rv-tag-causa { color: #b23a48; background: #fdeaed; }
.rv-tag-sol   { color: #1c9e6a; background: #e4f6ee; }
.rv-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
}
.rv-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.55;
}
.rv-card p:last-child { margin-bottom: 0; }

/* Beneficios */
.rv-benes {
  margin-top: 16px;
  background: #fff;
  border: 1px solid rgba(60, 37, 97, .1);
  border-radius: 16px;
  padding: 20px;
}
.rv-benes h3 {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--ink);
}
.rv-bgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 820px) { .rv-bgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rv-bgrid { grid-template-columns: 1fr; } }
.rv-bene {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.4;
}
.rv-bene-ic { font-size: 18px; flex-shrink: 0; }

/* Banner garantía */
.rv-garantia {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #F74C60, #d8344b);
  color: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.rv-garantia-num   { font-size: 42px; font-weight: 900; line-height: 1; }
.rv-garantia-titulo { font-size: 14px; font-weight: 700; }
.rv-garantia-sub   { font-size: 12px; opacity: .92; }

/* CTA */
.rv-cta {
  margin-top: 16px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(60, 37, 97, .1);
  border-radius: 16px;
  padding: 24px 20px;
}
.rv-cta h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--ink);
}
.rv-cta > p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.rv-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.rv-btn {
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.2;
  font-family: inherit;
  transition: opacity .15s, transform .15s;
}
.rv-btn:hover { opacity: .9; transform: translateY(-1px); }
.rv-btn-1 {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 20px rgba(247, 76, 96, .32);
}
.rv-btn-2 { background: #25D366; color: #fff; }
.rv-disc {
  margin-top: 14px;
  font-size: 11.5px;
  color: #9a93a3;
  line-height: 1.5;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   ENCABEZADO DE SECCIÓN (compartido)
   ═══════════════════════════════════════════════════════════ */
.sec-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.sec-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}
.sec-header p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}
.sec-header--light h2 { color: #fff; }
.sec-header--light p  { color: rgba(255,255,255,.78); }


/* ═══════════════════════════════════════════════════════════
   TIPOS DE HUMEDAD
   ═══════════════════════════════════════════════════════════ */
#tipos {
  padding: 72px 0 64px;
  border-top: 1px solid var(--border);
}

.tipos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .tipos-grid { grid-template-columns: repeat(3, 1fr); }
}

.tipo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radio);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.tipo-card:hover {
  box-shadow: 0 12px 32px rgba(60, 37, 97, .14);
  transform: translateY(-3px);
}
.tipo-card--destac {
  border-color: var(--purpura);
  box-shadow: 0 4px 18px rgba(129, 38, 122, .14);
}

.tipo-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purpura);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.tipo-icon {
  margin-bottom: 16px;
  display: flex;
}
.tipo-icon svg { flex-shrink: 0; }

.tipo-card h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.tipo-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════
   PRODUCTOS
   ═══════════════════════════════════════════════════════════ */
#productos {
  padding: 72px 0 64px;
  background: var(--crema);
  border-top: 1px solid var(--border);
}

.productos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .productos-grid { grid-template-columns: repeat(3, 1fr); }
}

.producto-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.producto-card:hover {
  box-shadow: 0 12px 32px rgba(60, 37, 97, .14);
  transform: translateY(-3px);
}
.producto-card--estrella {
  border-color: var(--coral);
  box-shadow: 0 4px 18px rgba(247, 76, 96, .16);
}

.producto-estrella-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--coral);
  color: #fff;
  font-size: .725rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 1;
}

.producto-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
}
.producto-visual--placa {
  background: linear-gradient(135deg, #3C2561, #81267A);
}
.producto-visual--piedra {
  background: linear-gradient(135deg, #81267A, #c0427a);
}
.producto-visual--piso {
  background: linear-gradient(135deg, #2A1846, #3C2561);
}

.producto-body {
  padding: 22px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.producto-body h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.producto-body p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.producto-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}
.producto-features li {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--violeta);
  display: flex;
  align-items: center;
  gap: 7px;
}
.producto-features li::before {
  content: "✓";
  color: var(--exito);
  font-weight: 900;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════
   POR QUÉ PIRKA
   ═══════════════════════════════════════════════════════════ */
#porque {
  padding: 72px 0 64px;
  background: linear-gradient(160deg, var(--violeta) 0%, #2A1846 100%);
  border-top: 1px solid rgba(255,255,255,.08);
}

.porque-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .porque-grid { grid-template-columns: repeat(3, 1fr); }
}

.porque-item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radio);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .2s;
}
.porque-item:hover {
  background: rgba(255, 255, 255, .10);
}

.porque-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--coral);
  line-height: 1;
}
.porque-ic {
  width: 52px;
  height: 52px;
  background: rgba(247, 76, 96, .18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}

.porque-content h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.porque-content p {
  font-size: .875rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════
   PROYECTOS / GALERÍA
   ═══════════════════════════════════════════════════════════ */
#proyectos {
  padding: 72px 0 64px;
  border-top: 1px solid var(--border);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .galeria-grid { grid-template-columns: repeat(4, 1fr); }
}

.galeria-item {
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
}
.galeria-item--a { background: linear-gradient(160deg, #a07060, #6b4535); }
.galeria-item--d { background: linear-gradient(160deg, #3C2561, #81267A); }
.galeria-item--b { background: linear-gradient(160deg, #857060, #554535); }
.galeria-item--e { background: linear-gradient(160deg, #2A1846, #3C2561); }

.galeria-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.35);
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.galeria-nota {
  text-align: center;
  margin-top: 16px;
  font-size: .8125rem;
  color: var(--muted);
  font-style: italic;
  opacity: .65;
}


/* ═══════════════════════════════════════════════════════════
   TESTIMONIOS
   ═══════════════════════════════════════════════════════════ */
#testimonios {
  padding: 72px 0 64px;
  background: var(--crema);
  border-top: 1px solid var(--border);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .testimonios-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonio {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radio);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.testimonio:hover {
  box-shadow: 0 10px 28px rgba(60, 37, 97, .12);
  transform: translateY(-2px);
}

.testimonio-estrellas {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonio p {
  font-size: .9375rem;
  color: var(--ink);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}

.testimonio footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.testimonio footer strong {
  font-size: .875rem;
  font-weight: 800;
  color: var(--violeta);
}
.testimonio footer span {
  font-size: .8rem;
  color: var(--muted);
}


/* ═══════════════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════════════ */
#cta-final {
  padding: 80px 0 80px;
  background: linear-gradient(135deg, var(--violeta) 0%, var(--purpura) 100%);
  border-top: 1px solid rgba(255,255,255,.06);
}

.cta-final-inner {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.cta-final-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.cta-final-inner > p {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  margin-bottom: 28px;
}
.cta-final-inner .btn-coral {
  font-size: 1.0625rem;
  padding: 16px 32px;
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
}

.cta-final-garantias {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}
.cta-final-garantias span {
  font-size: .875rem;
  font-weight: 700;
  color: rgba(255,255,255,.78);
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--violeta);
  color: #fff;
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.footer-col .col-title {
  font-size: .8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .6;
  margin-bottom: 10px;
}
.footer-col p,
.footer-col address {
  font-size: .9375rem;
  line-height: 1.65;
  opacity: .9;
  font-style: normal;
}
.footer-col a {
  color: #fff;
  opacity: .9;
  transition: opacity .15s;
}
.footer-col a:hover { opacity: 1; text-decoration: underline; }

/* Marca */
.footer-brand { margin-bottom: 8px; }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 8px; }
.footer-brand .tagline {
  font-size: .875rem;
  opacity: .8;
}

/* Franja inferior */
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  opacity: .65;
}
.footer-bottom a:hover { opacity: 1; }

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
