/* ===== Variables ===== */
:root {
  --color-bg: #f8f9fb;
  --color-bg-alt: #ffffff;
  --color-dark: #1a2332;
  --color-dark-soft: #2d3a4a;
  --color-text: #3a4555;
  --color-text-light: #6b7a8d;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-light: #dbeafe;
  --color-accent-bg: #eff6ff;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 35, 50, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1120px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Imán por secciones: encaja al parar cerca de un borde, sin atrapar en las largas */
  scroll-snap-type: none;
}

/* Cada sección es un punto de "imán" (el proceso queda fuera: tiene su propio pin) */
.hero,
.servicios, .trabajos, .testimonios, .garantias,
.comparativa, .precios, .contacto, .faq, .cta-banner {
  scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (no hidden) para no romper position:sticky del proceso */
}
html { overflow-x: clip; }

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #5b9dff 0%, #2f6ff0 52%, #2059d6 100%);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px -6px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}

.btn-outline::after {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  color: var(--color-accent-hover);
}

/* ===== Navbar (Glass morphism) ===== */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--container);
  z-index: 1100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(15, 23, 41, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(15, 23, 41, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.navbar .logo-text { color: var(--color-dark); }
.navbar .nav-links a { color: var(--color-text-light); }
.navbar .nav-links a:hover { color: var(--color-accent); }
.navbar .nav-toggle span { background: var(--color-dark); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-dark);
}

.logo-svg {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(59, 130, 246, 0.35));
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.logo-accent {
  color: var(--color-accent);
  font-weight: 800;
}

/* PNG logo (transparent background) */
.logo--img {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 110px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* Negative margin so the visual logo can extend beyond the navbar pill
     without forcing the pill itself to be huge */
  margin: -20px 0;
  filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.3));
  transition: filter 0.3s ease;
}

/* Footer logo: bigger, glowing on dark */
.logo-img--footer {
  height: 130px;
  margin: -25px 0;
  filter:
    brightness(1.6)
    saturate(0.85)
    drop-shadow(0 0 18px rgba(96, 165, 250, 0.45))
    drop-shadow(0 6px 16px rgba(59, 130, 246, 0.4));
}

/* Navbar always cream — single filter */
.navbar .logo-img {
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.25));
}

@media (max-width: 768px) {
  .logo-img { height: 90px; margin: -16px 0; }
  .nav-container { height: 72px; }
  .logo-img--footer { height: 110px; margin: -22px 0; }
}

@media (max-width: 480px) {
  .logo-img { height: 76px; margin: -12px 0; }
  .nav-container { height: 64px; }
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 130px 0 48px;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: rgba(59, 130, 246, 0.15);
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  background: rgba(99, 102, 241, 0.1);
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 50%;
  background: rgba(59, 130, 246, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(1.8rem, 5.2vw, 3.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.highlight {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;   /* "Más [palabra]" nunca se parte -> línea 1 estable */
}

/* Rotador de palabras del titular — "Más [clientes/reservas/…] desde Google" */
.rotator {
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  vertical-align: bottom;
  width: var(--rot-w, max-content);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.rotator__track {
  display: block;
  transform: translateY(var(--rot-y, 0px));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.rotator__word {
  display: block;
  width: max-content;
  height: 1.15em;
  line-height: 1.15;
  white-space: nowrap;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .rotator { width: auto; }
  .rotator__track { transform: none; transition: none; }
  .rotator__word + .rotator__word { display: none; }
}

/* MÓVIL: color sólido en el titular resaltado (sin background-clip:text = imposible el
   "fantasma" de la palabra congelada en Safari/Chrome móvil). El degradado se mantiene en desktop. */
@media (max-width: 768px) {
  .highlight,
  .rotator__word {
    background: none;
    -webkit-text-fill-color: #7db0ff;
    color: #7db0ff;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn-ghost::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Hero · prueba social (clientes reales en producción) ===== */
.hero-clients {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-clients-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
}
.hero-clients-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.hero-client {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.hero-client-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.hero-client-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Hero Mockup ===== */
.hero-visual {
  position: relative;
}

/* ============================================
   Hero showcase: carrusel 3D de webs reales
   (navegador en vivo + deck en profundidad + parallax al cursor)
   ============================================ */
.hero-showcase {
  position: relative;
  width: 100%;
  -webkit-user-select: none;
  user-select: none;
}

.sc-stage {
  position: relative;
  width: 100%;
  perspective: 1500px;
  perspective-origin: 50% 42%;
  cursor: grab;
  touch-action: pan-y;
}
.sc-stage.is-dragging { cursor: grabbing; }

.sc-deck {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  transform-style: preserve-3d;
  /* parallax: el JS pone --px / --py (grados) */
  transform: rotateX(var(--py, 0deg)) rotateY(var(--px, 0deg)) translateZ(0);
  transition: transform 0.18s ease-out;
}

.sc-card {
  position: absolute;
  top: 13%;
  left: 0;
  right: 0;
  width: 88%;
  margin-inline: auto;
  transform-style: preserve-3d;
  transform: translate3d(var(--tx, 0), var(--ty, 0), var(--tz, 0)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  opacity: var(--op, 1);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}

/* Posiciones relativas al activo · apiladas tipo "deck" (las pone el JS con data-pos) */
.sc-card[data-pos="0"] { --tx: 0;    --ty: 0;    --tz: 0;      --ry: 0deg;   --s: 1;    --op: 1;    z-index: 50; }
.sc-card[data-pos="1"] { --tx: 11%;  --ty: -9%;  --tz: -120px; --ry: -9deg;  --s: 0.92; --op: 0.62; z-index: 40; pointer-events: none; }
.sc-card[data-pos="2"] { --tx: 19%;  --ty: -15%; --tz: -240px; --ry: -13deg; --s: 0.83; --op: 0.34; z-index: 30; pointer-events: none; }
.sc-card[data-pos="3"] { --tx: 10%;  --ty: -8%;  --tz: -350px; --ry: -7deg;  --s: 0.79; --op: 0;    z-index: 20; pointer-events: none; }
.sc-card[data-pos="4"] { --tx: -8%;  --ty: 6%;   --tz: -120px; --ry: 9deg;   --s: 0.9;  --op: 0;    z-index: 10; pointer-events: none; }

.sc-browser {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sc-card[data-pos="0"] .sc-browser {
  box-shadow: 0 44px 96px -28px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sc-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.sc-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.sc-dot--r { background: #ff5f57; }
.sc-dot--y { background: #febc2e; }
.sc-dot--g { background: #28c840; }

.sc-url {
  margin-left: 10px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 19px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  max-width: 270px;
  font-size: 0.64rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
}
.sc-url svg { color: #94a3b8; flex-shrink: 0; }
.sc-url-text { position: relative; }
/* cursor de tecleo (lo activa el JS) */
.sc-card.is-typing .sc-url-text::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-left: 1px;
  background: var(--color-accent);
  transform: translateY(1px);
  animation: sc-caret 0.7s steps(1) infinite;
}
@keyframes sc-caret { 50% { opacity: 0; } }

.sc-screen {
  position: relative;
  aspect-ratio: 22 / 10;
  overflow: hidden;
  background: #0f172a;
}
.sc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* fade-in de la web al entrar al frente */
.sc-card.is-entering .sc-img { animation: sc-fade 0.65s ease; }
@keyframes sc-fade {
  from { opacity: 0.35; transform: scale(1.045); }
  to   { opacity: 1; transform: scale(1); }
}

/* barra de carga que cruza al cambiar de web */
.sc-loadbar {
  position: absolute;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--color-accent), #60a5fa);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
  opacity: 0;
}
.sc-card.is-loading .sc-loadbar { animation: sc-load 0.7s ease-out; }
@keyframes sc-load {
  0%   { width: 0;    opacity: 1; }
  78%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* veladura sobre las cards de detrás para que el frente destaque */
.sc-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.55));
  opacity: 1;
  transition: opacity 0.6s ease;
}
.sc-card[data-pos="0"] .sc-screen::after { opacity: 0; }

/* ---- Teléfono al lado (móvil real), visible solo en la web activa ---- */
.sc-phone {
  position: absolute;
  right: -3%;
  bottom: -12%;
  width: 22%;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 5px;
  box-shadow: 0 26px 54px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 6;
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  transition: opacity 0.5s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.sc-card[data-pos="0"] .sc-phone { opacity: 1; transform: translateY(0) scale(1); }
.sc-phone-notch {
  display: block;
  width: 32%; height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 3px auto 5px;
}
.sc-phone-screen { display: block; border-radius: var(--radius-md); overflow: hidden; }
.sc-phone-img { display: block; width: 100%; height: auto; }

/* ---- Pills de navegación (sobre fondo oscuro del hero) ---- */
.sc-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(20px, 4vw, 36px);
}
.sc-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.sc-pill:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(-1px); }
.sc-pill:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sc-pill.is-active {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}
.sc-pill-logo {
  width: 22px; height: 22px;
  border-radius: var(--radius-xs);
  object-fit: contain;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}
.sc-pill-prog {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--color-accent);
  border-radius: 2px;
}

.sc-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.42);
  transition: opacity 0.4s ease;
}
.sc-hint svg { opacity: 0.75; }
.hero-showcase.sc-touched .sc-hint { opacity: 0; }

/* Accesibilidad: texto solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respeto a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .sc-deck { transform: none !important; }
  .sc-card { transition: opacity 0.3s ease; }
  .sc-card:not([data-pos="0"]) { opacity: 0 !important; pointer-events: none; }
  .sc-card[data-pos="0"] { --tx: 0; --ty: 0; --tz: 0; --ry: 0deg; --s: 1; }
  .sc-card.is-entering .sc-img,
  .sc-card.is-loading .sc-loadbar,
  .sc-card.is-typing .sc-url-text::after { animation: none; }
  .sc-hint { display: none; }
}

/* ===== Section common ===== */
.section-title {
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  font-weight: 800;
  color: var(--color-dark);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-wrap: balance;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 56px;
}

/* ===== Hero Stats ===== */
.hero-stats-container {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  text-align: center;
}

.hero-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: inline;
}

.hero-stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.hero-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

/* ===== Servicios ===== */
.servicios {
  padding: 66px 0;
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

/* línea de acento superior (usa ::after porque .tilt::before es el glare) */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
  pointer-events: none;
}

.service-card:hover {
  box-shadow: 0 18px 40px -16px rgba(59, 130, 246, 0.28);
  border-color: var(--color-accent-light);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card.tilt:hover {
  transform: none; /* overridden by tilt JS */
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18), 0 6px 16px -8px rgba(59, 130, 246, 0.45);
  transition: box-shadow 0.35s ease;
}
.service-card:hover .service-icon {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.32), 0 12px 24px -8px rgba(59, 130, 246, 0.6);
}
.service-icon svg { display: block; }

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ===== Proceso ===== */
.proceso {
  padding: 66px 0;
  background: var(--color-bg-alt);
}

/* Proceso "clavado" (scrollytelling): la sección se ancla y el scroll avanza los pasos */
.proceso--pinned { padding: 0; background: var(--color-bg-alt); }
.proceso-track { position: relative; height: 380vh; }
.proceso-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.proceso-sticky .container { width: 100%; }

/* === EL MUNDO: fondo inmersivo que muta con el scroll (--prog 0→1) === */
.proceso--pinned { background: #070c18; }
.proceso-sticky .container { position: relative; z-index: 1; }
.proceso-world { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.pw-layer { position: absolute; inset: 0; }
.pw-1 { background: radial-gradient(120% 120% at 32% 22%, #17305f 0%, #0b1730 58%, #070c18 100%); }          /* boceto · noche/plano */
.pw-2 { background: radial-gradient(120% 120% at 58% 30%, #3d2b6b 0%, #241a46 55%, #130e2a 100%);            /* revisión · cálido */
        opacity: clamp(0, calc(var(--prog, 0) * 2), 1); }
.pw-3 { background: radial-gradient(95% 130% at 26% 42%, #38bdf8 0%, #1e5fd0 42%, #0a2a5c 100%);              /* entrega · luz/vibrante */
        opacity: clamp(0, calc((var(--prog, 0) - 0.5) * 2), 1); }
/* rejilla de plano (blueprint): fuerte en boceto, se desvanece; parallax lento */
.pw-grid {
  top: -12%; bottom: -12%; left: -25%; width: 170%;
  background-image:
    linear-gradient(rgba(125,170,255,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,170,255,0.11) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: clamp(0, calc(1 - var(--prog, 0) * 2.2), 1);
  transform: translate3d(calc(var(--prog, 0) * -26vw), 0, 0);
  -webkit-mask-image: radial-gradient(120% 100% at 38% 42%, #000 38%, transparent 82%);
          mask-image: radial-gradient(120% 100% at 38% 42%, #000 38%, transparent 82%);
  will-change: transform, opacity;
}
/* estallido de luz al lanzar (fase entrega) */
.pw-glow {
  background: radial-gradient(58% 80% at 30% 46%, rgba(155,220,255,0.55) 0%, rgba(90,165,255,0.16) 34%, transparent 62%);
  opacity: clamp(0, calc((var(--prog, 0) - 0.5) * 2), 1);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--prog, 0) * -12vw), 0, 0);
  will-change: transform, opacity;
}
/* texto legible sobre el mundo oscuro */
.proceso--pinned .section-title {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  padding-bottom: 0.08em;   /* aire para descendentes + resplandor, que no se corte */
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0.80) 0%,
    rgba(255, 255, 255, 0.80) 45%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.80) 55%,
    rgba(255, 255, 255, 0.80) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: procesoShine 5.5s linear infinite;
}
@keyframes procesoShine {
  0% { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}
.proceso--pinned .section-subtitle {
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 22px;
}
.proceso-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 8px;
}
.proceso-hl {
  display: inline-block;
  white-space: nowrap;
  padding: 0 0.02em 0.1em;
  background: linear-gradient(110deg, #7dd3fc 0%, #a78bfa 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(125, 197, 253, 0.5));   /* halo cian: "3 pasos" luminoso */
}
@media (prefers-reduced-motion: reduce) {
  .proceso--pinned .section-title { animation: none; -webkit-text-fill-color: #fff; color: #fff; }
}
.proceso--pinned .step-title { color: #fff; }
.proceso--pinned .step-desc { color: rgba(255, 255, 255, 0.68); }
.proceso--pinned .step-number { color: #fff; opacity: 0.10; }
.proceso--pinned .proceso-progress { background: rgba(255, 255, 255, 0.16); }

.proceso-progress { position: relative; height: 5px; border-radius: var(--radius-xs); background: var(--color-border); max-width: 720px; margin: 4px auto clamp(24px, 4vh, 44px); overflow: hidden; }
.proceso-fill { position: absolute; top: 0; left: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--color-accent), #60a5fa); border-radius: var(--radius-xs); transition: width 0.15s linear; }
.proceso-nav { position: relative; z-index: 1; max-width: 640px; margin: 4px auto clamp(12px, 2.4vh, 24px); }
.proceso-nav-items { display: flex; justify-content: space-between; margin-bottom: 14px; }
.pnav { display: inline-flex; align-items: baseline; gap: 8px; background: none; border: 0; padding: 4px 2px; cursor: pointer; font: inherit; color: rgba(255,255,255,0.42); transition: color 0.4s ease; }
.pnav-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.32); transition: color 0.4s ease; }
.pnav-label { font-size: 0.94rem; font-weight: 600; }
.pnav:hover { color: rgba(255,255,255,0.85); }
.pnav.is-active { color: #fff; }
.pnav.is-active .pnav-num { color: #7dd3fc; }
.proceso-nav .proceso-progress { max-width: none; margin: 0; height: 4px; }

/* Una sola tarjeta protagonista a PANTALLA COMPLETA; las demás esperan y entran deslizándose */
/* Scroll HORIZONTAL: el scroll vertical desplaza la fila de pasos hacia el lado */
.proceso--pinned .steps {           /* escenario 3D a PANTALLA COMPLETA */
  display: block;
  position: relative;
  perspective: 1400px;
  overflow: hidden;
  width: 100vw;
  max-width: none;
  height: clamp(320px, 46vh, 500px);
  margin-left: calc(50% - 50vw);
  margin-right: 0;
}
.proceso-row {                       /* escenario: los pasos se apilan y viajan en profundidad (Z) */
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.proceso--pinned .step {             /* cada paso = panel a ancho completo */
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  column-gap: clamp(30px, 4vw, 60px);
  row-gap: 10px;
  text-align: left;
  padding: clamp(32px, 5vh, 56px) max(clamp(36px, 5vw, 64px), calc((100vw - 1180px) / 2));
  border: none;
  background: linear-gradient(165deg, #0c1626, #06090f);
  box-shadow: none;
  transition: none;
  --step-tf:
    translateX(calc(max(var(--depth, 0), 0) * -105vw))
    translateY(calc(max(var(--depth, 0), 0) * -16vh))
    translateZ(calc(min(var(--depth, 0), 0) * 340px + max(var(--depth, 0), 0) * 120px))
    rotateY(calc(max(var(--depth, 0), 0) * -18deg))
    scale(calc(1 + max(var(--depth, 0), 0) * 0.05));
  transform: var(--step-tf);
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}
.proceso--pinned .step:hover { transform: var(--step-tf); box-shadow: none; }
.proceso--pinned .step:hover .step-icon-large { transform: none; }
/* Cada escena = una "sala" con su propia luz; al avanzar caminas de una a la siguiente. */
.proceso--pinned .proceso-row .step:nth-of-type(1) { background: radial-gradient(120% 90% at 28% 10%, rgba(64,116,196,0.24), transparent 60%), linear-gradient(165deg, #0c1626, #06090f); }
.proceso--pinned .proceso-row .step:nth-of-type(2) { background: radial-gradient(120% 90% at 72% 10%, rgba(126,96,214,0.24), transparent 60%), linear-gradient(165deg, #120e26, #07060e); }
.proceso--pinned .proceso-row .step:nth-of-type(3) { background: radial-gradient(120% 95% at 50% 4%, rgba(72,182,222,0.24), transparent 58%), linear-gradient(165deg, #08181f, #050c11); }

/* Caminar, no fundir: las escenas llegan desde el fondo, se plantan y BARREN hacia
   un lado con perspectiva al avanzar (--depth/--focus los pone el JS). Sin opacity-fade. */
.proceso--pinned .step-icon-large { transition: none; }
.proceso--pinned .step-title {
  transform: translateY(calc((1 - var(--focus, 1)) * 22px));
  opacity: 1;
}
.proceso--pinned .step-desc {
  transform: translateY(calc((1 - var(--focus, 1)) * 40px));
  opacity: 1;   /* sólido: nada de fundidos */
}
.proceso--pinned .step-number {
  transform: scale(calc(0.7 + 0.3 * var(--focus, 1)));
  transform-origin: top right;
}

/* maquetación: ilustración grande izquierda, texto derecha */
.proceso--pinned .step-icon-large { grid-column: 1; grid-row: 1 / 3; align-self: center; justify-self: center; width: 100%; max-width: 540px; margin: 0; position: relative; z-index: 1; }
.proceso--pinned .step-title { grid-column: 2; grid-row: 1; align-self: end; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 4px; position: relative; z-index: 2; }
.proceso--pinned .step-desc { grid-column: 2; grid-row: 2; align-self: start; font-size: clamp(0.98rem, 1.4vw, 1.12rem); line-height: 1.6; position: relative; z-index: 2; }
.proceso--pinned .step-number {
  top: clamp(6px, 2vh, 20px); left: auto; right: max(clamp(16px, 2.5vw, 40px), calc((100vw - 1180px) / 2));
  width: auto; height: auto; padding: 0;
  background: none; box-shadow: none; border-radius: 0;
  font-size: clamp(96px, 13vw, 172px); font-weight: 800; line-height: 0.7;
  color: var(--color-accent); opacity: 0.08; z-index: 0; pointer-events: none;
}
.proceso--pinned .step:hover .step-number { transform: scale(calc(0.7 + 0.3 * var(--focus, 1))); }

/* Franja de marketing en el hueco inferior de la sección clavada (se lee durante el reposo inicial) */
.proceso-promo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 56px clamp(16px, 4vw, 40px) clamp(18px, 2.6vh, 30px);
  background: linear-gradient(to top, #070c18 0%, #070c18 34%, rgba(7, 12, 24, 0.82) 62%, rgba(7, 12, 24, 0) 100%);
  pointer-events: none;
}
.proceso-promo > * { pointer-events: auto; }
.proceso-promo-txt {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: clamp(0.82rem, 1.1vw, 0.98rem);
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.01em;
}
.proceso-promo-txt b { color: rgba(255, 255, 255, 0.9); font-weight: 700; }
.proceso-promo-txt i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #7dd3fc; opacity: 0.7; }
.proceso-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: clamp(0.85rem, 1.1vw, 0.97rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4cc4fb 0%, #3b82f6 100%);
  box-shadow: 0 6px 22px -6px rgba(56, 189, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.proceso-promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px rgba(56, 189, 248, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.proceso-promo-cta:active { transform: translateY(0) scale(0.98); }
.promo-arrow { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.proceso-promo-cta:hover .promo-arrow { transform: translateX(4px); }

/* MÓVIL: el pin SE MANTIENE (80% del tráfico), pero la tarjeta es vertical y a pantalla completa */
@media (max-width: 768px) {
  .proceso-progress { margin: 0 auto 22px; max-width: 86%; }
  .proceso--pinned .steps { height: clamp(340px, 56svh, 520px); }
  .proceso--pinned .step { filter: none; --step-tf: translateX(calc(max(var(--depth, 0), 0) * -110vw)) translateY(calc(max(var(--depth, 0), 0) * -8vh)) translateZ(calc(min(var(--depth, 0), 0) * 240px + max(var(--depth, 0), 0) * 90px)) rotateY(calc(max(var(--depth, 0), 0) * -14deg)) scale(calc(1 + max(var(--depth, 0), 0) * 0.04)); }
  .pnav-label { font-size: 0.82rem; } .pnav-num { font-size: 0.66rem; }
  .proceso--pinned .step {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    align-content: center;
    column-gap: 0;
    row-gap: 11px;
    padding: 20px 22px;
  }
  .proceso--pinned .step-icon-large { grid-column: 1; grid-row: auto; max-width: 208px; margin: 0 auto; }
  .proceso--pinned .step-title { grid-column: 1; grid-row: auto; align-self: auto; font-size: 1.45rem; }
  .proceso--pinned .step-desc { grid-column: 1; grid-row: auto; align-self: auto; font-size: 0.9rem; line-height: 1.5; }
  .proceso--pinned .step-number { top: 6px; left: auto; right: 12px; transform: none; font-size: clamp(80px, 26vw, 120px); }
  .pv-url { font-size: 0.62rem; }
  .pv-bubble { font-size: 0.64rem; max-width: 64%; padding: 7px 9px; }
  .pv-bubble-who { font-size: 0.57rem; }
  .pv-dim { font-size: 0.56rem; padding: 2px 6px; }
  .pv-chip { font-size: 0.72rem; padding: 6px 11px; }
  .pv-pin { width: 22px; height: 22px; font-size: 0.68rem; border-width: 1.5px; }
  .proceso--pinned .steps { height: clamp(290px, 45svh, 430px); }
  .proceso--pinned .section-subtitle { display: none; }   /* móvil: nav + tarjeta + tagline ya explican; libera altura para el botón */
  .proceso--pinned .section-title { font-size: clamp(1.85rem, 6.4vw, 2.4rem); margin-bottom: 10px; }
  .proceso-promo { flex-direction: column; gap: 9px; padding: 66px 18px clamp(16px, 2.4vh, 24px); }
  .proceso-promo-txt { font-size: 0.8rem; gap: 4px 10px; }
  .proceso-promo-txt > span:not(:last-child), .proceso-promo-txt > i { display: none; }
  .proceso-promo-cta { font-size: 0.92rem; padding: 12px 30px; }
}

/* Solo reduced-motion: sin pin, 3 tarjetas verticales estáticas (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
  .proceso--pinned { padding: 66px 0; }
  .proceso-track { height: auto; }
  .proceso-sticky { position: static; height: auto; display: block; }
  .proceso-progress { display: none; }
  .proceso--pinned .steps { display: grid; grid-template-columns: 1fr; height: auto; gap: 24px; max-width: 480px; }
  .proceso-row { display: contents; transform: none; }
  .proceso--pinned .step { position: static; display: block; height: auto; text-align: center; padding: 40px 32px; opacity: 1; transform: none; transition: none; box-shadow: none; }
  .proceso--pinned .step-icon-large { max-width: 240px; margin: 0 auto 20px; }
  .proceso--pinned .step-title { font-size: 1.2rem; }
  .proceso--pinned .step-desc { font-size: 0.95rem; }
  .proceso--pinned .step-number { left: 50%; transform: translateX(-50%); }
  .proceso-promo { position: static; margin: 30px auto 0; padding: 0; background: none; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 32px 36px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  z-index: 1;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -18px rgba(59, 130, 246, 0.26);
  border-color: var(--color-accent-light);
}

/* Lift step when its tooltip is active so popover sits over neighbours */
.step:has(.info-tip:hover),
.step:has(.info-tip:focus-visible),
.step:has(.info-tip.is-open) {
  z-index: 200;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 28px;
  width: 34px;
  height: 34px;
  background: linear-gradient(145deg, var(--color-accent), var(--color-accent-hover));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px -5px rgba(59, 130, 246, 0.6), 0 0 0 4px var(--color-bg-alt);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.step:hover .step-number { transform: scale(1.1) rotate(-4deg); }

.step-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.step-icon-large {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.step:hover .step-icon-large { transform: scale(1.05); }

/* (Los SVG del visual .pv se dimensionan por sus atributos / reglas propias) */
.pv svg:not(.pv-guides):not(.pv-cursor) { width: auto; height: auto; }

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ============================================
   Proceso · visual "1 web en 3 estados" (Griny)
   ============================================ */
.pv { position: relative; width: 100%; }
.pv-window {
  position: relative;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04),
              0 34px 64px -26px rgba(15, 23, 42, 0.42);
  overflow: hidden;
}
.pv-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #fbfcfe, #eef2f8);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.pv-dots { display: inline-flex; gap: 6px; flex: none; }
.pv-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dfe4ec; }
.pv-dots i:nth-child(1) { background: #f6a5a0; }
.pv-dots i:nth-child(2) { background: #fbd28a; }
.pv-dots i:nth-child(3) { background: #9bd6a6; }
.pv-url {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
  padding: 5px 12px;
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.72rem; color: var(--color-text-light); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-url-ico { color: #94a3b8; flex: none; }
.pv-url--live { color: #047857; }
.pv-url--live .pv-url-ico { color: #10b981; }
.pv-screen { position: relative; overflow: hidden; line-height: 0; }
.pv-shot { display: block; width: 100%; height: auto; pointer-events: none; }

/* Chips flotantes */
.pv-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700; line-height: 1;
  box-shadow: 0 12px 26px -8px rgba(15, 23, 42, 0.45);
  z-index: 6;
}
.pv-chip--tool { top: -12px; left: -6px; background: #fff; color: #1e293b; border: 1px solid rgba(15, 23, 42, 0.08); }
.pv-chip--tool svg { color: var(--color-accent); }
.pv-chip--accent { background: linear-gradient(145deg, var(--color-accent), var(--color-accent-hover)); color: #fff; }
.pv-chip--br { bottom: -13px; right: -6px; }
.pv-chip--live { top: 16px; right: 16px; background: #fff; color: #047857; border: 1px solid rgba(16, 185, 129, 0.35); }
.pv-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); animation: pv-pulse 1.9s infinite; }
@keyframes pv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Estado BOCETO: guías de diseño + selección */
.pv--boceto .pv-shot { filter: saturate(0.72) contrast(0.98); }
.pv--boceto .pv-screen::after { content: ""; position: absolute; inset: 0; background: rgba(247, 250, 255, 0.30); pointer-events: none; }
.pv-guides { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.pv-g-dash { stroke: var(--color-accent); stroke-width: 1.4; stroke-dasharray: 7 7; opacity: 0.5; vector-effect: non-scaling-stroke; }
.pv-g-center { opacity: 0.72; }
.pv-sel {
  position: absolute; left: 56%; top: 22%; width: 33%; height: 74%;
  border: 1.5px solid var(--color-accent);
  z-index: 3; pointer-events: none;
}
.pv-h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--color-accent); border-radius: 2px; }
.pv-h.tl { left: -5px; top: -5px; }
.pv-h.tr { right: -5px; top: -5px; }
.pv-h.bl { left: -5px; bottom: -5px; }
.pv-h.br { right: -5px; bottom: -5px; }
.pv-dim {
  position: absolute; top: -10px; left: 50%; transform: translate(-50%, -100%);
  background: var(--color-accent); color: #fff; font-size: 0.66rem; font-weight: 700;
  padding: 3px 8px; border-radius: var(--radius-xs); white-space: nowrap;
}

/* Estado REVISIÓN: pins de comentario + globo + cursor */
.pv-pin {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.55);
}
.pv-pin--ok { background: #10b981; }
.pv-pin--warn { background: #f97316; }
.pv-pin--accent { background: var(--color-accent); }
.pv-bubble {
  position: absolute; z-index: 5; max-width: 46%;
  background: #fff; color: #1e293b;
  font-size: 0.72rem; line-height: 1.35; font-weight: 500;
  padding: 8px 11px; border-radius: 11px 11px 11px 3px;
  box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.5); border: 1px solid rgba(15, 23, 42, 0.06);
}
.pv-bubble-who { display: block; font-size: 0.62rem; font-weight: 700; color: var(--color-accent); margin-bottom: 2px; }
.pv-cursor { position: absolute; z-index: 6; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); }

/* Estado ENTREGA: móvil asomando (responsive) */
.pv-phone {
  position: absolute; right: -3%; bottom: -9%; width: 19%; min-width: 62px;
  border-radius: var(--radius-md); overflow: hidden; z-index: 5;
  border: 3px solid #1e293b; background: #1e293b;
  box-shadow: 0 20px 38px -12px rgba(15, 23, 42, 0.55);
}
.pv-phone img { display: block; width: 100%; height: auto; }

/* ============================================
   Testimonios · sección inmersiva premium
   ============================================ */
.testimonios {
  position: relative;
  padding: 74px 0 66px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.07), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
  overflow: hidden;
}
/* Comilla gigante de marca de agua (editorial), flotando suave */
.testimonios-watermark {
  position: absolute;
  top: 4px;
  left: 50%;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 340px;
  line-height: 0.8;
  font-weight: 600;
  color: var(--color-accent);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  animation: t-float 9s ease-in-out infinite;
}
@keyframes t-float {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 16px); }
}

/* Glow de fondo que respira */
.testimonios::after {
  content: '';
  position: absolute;
  top: 18%;
  left: 50%;
  width: 620px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12), transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: t-breathe 7s ease-in-out infinite;
}
@keyframes t-breathe {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}
.testimonios .container { position: relative; z-index: 1; }

.testimonios-head {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
}
.testimonios-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.testimonios-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px -10px rgba(26, 35, 50, 0.18);
}
.t-rating-stars { width: 88px; height: 16px; display: block; flex-shrink: 0; }
.t-rating-text { font-size: 0.86rem; color: var(--color-text); }
.t-rating-text strong { color: var(--color-dark); font-weight: 800; }

.testimonios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
}

.testimonio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 400px;
  max-width: 452px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
  box-shadow:
    0 1px 3px rgba(26, 35, 50, 0.04),
    0 26px 52px -30px rgba(26, 35, 50, 0.24);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease;
}
/* Línea de acento superior con gradiente */
.testimonio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}
.testimonio-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 3px rgba(26, 35, 50, 0.04),
    0 36px 70px -28px rgba(37, 99, 235, 0.34);
}

/* ===== Reseña DESTACADA: cita grande + captura real de la web (elogio + prueba) ===== */
.testimonio-card--featured {
  flex: 1 1 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: clamp(22px, 3vw, 42px);
  padding: clamp(28px, 3.4vw, 46px);
}
.tc-main { display: flex; flex-direction: column; min-width: 0; }
.tc-main .testimonio-quote { flex: 1; margin-bottom: 26px; }
.tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.tc-badge svg { color: #f5a623; }
.testimonio-quote--lg { font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.42; }
.tc-shot {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 22px 48px -24px rgba(26, 35, 50, 0.45);
  text-decoration: none;
  min-height: 210px;
  background: #eef3fb;
}
.tc-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.tc-shot:hover img { transform: scale(1.045); }
.tc-shot-cta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 34px 14px 13px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.9) 0%, rgba(11, 18, 32, 0.5) 55%, transparent 100%);
}
.tc-shot-cta span { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.tc-shot:hover .tc-shot-cta span { transform: translateX(5px); }
/* Marcador que resalta la frase clave de la cita */
.tc-hl {
  background: linear-gradient(transparent 56%, rgba(96, 165, 250, 0.34) 56%);
  font-weight: 600;
  padding: 0 1px;
}
/* Comilla decorativa grande arriba-derecha */
.testimonio-quotemark {
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 110px;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.1;
  pointer-events: none;
}

.testimonio-stars {
  width: 104px;
  height: 19px;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 0 rgba(245, 166, 35, 0));
  animation: t-stars-glow 3.4s ease-in-out infinite;
}
.testimonio-card:nth-child(2) .testimonio-stars { animation-delay: 0.8s; }
@keyframes t-stars-glow {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(245, 166, 35, 0.2)); }
  50%      { filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.65)); }
}

.testimonio-quote {
  font-family: 'Fraunces', 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.46;
  font-weight: 500;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  margin: 0 0 30px;
  flex: 1;
  position: relative;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.testimonio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px -4px rgba(26, 35, 50, 0.2);
}
.testimonio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testimonio-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  flex: 1;
}
.testimonio-author-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-dark);
}
.testimonio-author-link {
  font-size: 0.82rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
a.testimonio-author-link:hover {
  color: var(--color-accent);
}
.testimonio-author-link--static {
  cursor: default;
}
.testimonio-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(16, 185, 129, 0.10);
  color: #0e9f6e;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Barra de confianza */
.testimonios-trust {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 50px auto 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 34px -18px rgba(26, 35, 50, 0.2);
  overflow: hidden;
  position: relative;
}
.t-trust-item {
  flex: 1;
  text-align: center;
  padding: 22px 16px;
}
.t-trust-item + .t-trust-item {
  border-left: 1px solid var(--color-border);
}
.t-trust-item strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.t-trust-item span {
  font-size: 0.76rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================================
   RESEÑAS · PREMIUM CLARO (mesh de color suave + destacada en degradado)
   ============================================================ */
.testimonios {
  background:
    radial-gradient(48% 44% at 12% 6%, rgba(96, 165, 250, 0.22), transparent 70%),
    radial-gradient(44% 42% at 90% 10%, rgba(167, 139, 250, 0.20), transparent 70%),
    radial-gradient(62% 52% at 50% 112%, rgba(45, 212, 191, 0.13), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #eef2fb 100%);
  padding: 92px 0 84px;
}
.testimonios::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,35,50,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,35,50,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 42%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 42%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.testimonios .section-title { color: var(--color-dark); }

/* Tarjetas de apoyo: blancas, limpias, sombra suave grande */
.testimonio-card {
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.05);
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(26,35,50,0.03), 0 34px 66px -34px rgba(37, 99, 235, 0.28);
}
.testimonio-card::before { background: linear-gradient(90deg, #60a5fa, #818cf8); height: 3px; }
.testimonio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(26,35,50,0.03), 0 46px 88px -30px rgba(37, 99, 235, 0.42);
}
.testimonio-quote { color: var(--color-dark); }
/* Marcador en frases clave (tarjetas claras) */
.tc-hl {
  background: linear-gradient(transparent 56%, rgba(96, 165, 250, 0.34) 56%);
  -webkit-text-fill-color: currentColor;
  color: var(--color-dark);
  font-weight: 600;
  padding: 0 1px;
}
/* Chip de RESULTADO (prueba escaneable, patrón "quantified results") */
.tc-result {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 0 0 22px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-full);
}
.tc-result b { font-weight: 700; }
.tc-result svg { flex-shrink: 0; }
.testimonio-card--featured .tc-result {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.32);
}

/* === Reseña DESTACADA: tarjeta en DEGRADADO de marca (el gran cambio) === */
.testimonio-card--featured {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 52%, #3b82f6 100%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 46px 92px -34px rgba(37, 99, 235, 0.6);
}
.testimonio-card--featured::before { display: none; }
.testimonio-card--featured .testimonio-quote { color: #fff; }
.testimonio-card--featured .tc-hl { background: none; -webkit-text-fill-color: #c3ddff; color: #c3ddff; padding: 0; }
.testimonio-card--featured .tc-badge { color: #fff; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.34); }
.testimonio-card--featured .tc-badge svg { color: #fde047; }
.testimonio-card--featured .testimonio-author { border-top: 1px solid rgba(255,255,255,0.22); }
.testimonio-card--featured .testimonio-author-name { color: #fff; }
.testimonio-card--featured .testimonio-author-link { color: rgba(255,255,255,0.8); }
.testimonio-card--featured a.testimonio-author-link:hover { color: #fff; }
.testimonio-card--featured .testimonio-verified { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.34); }
.testimonio-card--featured .tc-shot { border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.4); background: #fff; }

/* Avatar: chip blanco */
.testimonio-avatar {
  background: #fff;
  border: 1px solid rgba(26,35,50,0.08);
  box-shadow: 0 4px 12px -4px rgba(26,35,50,0.2);
  padding: 5px;
}
.testimonio-avatar img { border-radius: 50%; }
.testimonio-card--featured .testimonio-avatar { border-color: rgba(255,255,255,0.6); box-shadow: 0 4px 14px -4px rgba(0,0,0,0.35); }

/* Respeta la preferencia de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .testimonios-watermark,
  .testimonios::after,
  .testimonio-stars { animation: none; }
}

@media (max-width: 720px) {
  .testimonios { padding: 76px 0 64px; }
  .testimonios-watermark { font-size: 240px; top: 8px; }
  .testimonios-grid { gap: 18px; }
  .testimonio-card { padding: 30px 26px 24px; border-radius: var(--radius-lg); flex: 1 1 100%; max-width: 100%; }
  .testimonio-card--featured { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; }
  .tc-shot { min-height: 150px; max-height: 200px; }
  .testimonio-quote--lg { font-size: 1.3rem; }
  .testimonio-author { flex-wrap: wrap; row-gap: 12px; }
  .testimonio-author-info { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
  .testimonio-verified { flex: 0 0 100%; margin: 0 0 0 61px; }
  .testimonios-trust {
    flex-direction: column;
    max-width: 320px;
  }
  .t-trust-item + .t-trust-item {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .t-trust-item { padding: 16px; }
}

/* ===== Garantías ===== */
.garantias {
  padding: 66px 0;
  background: var(--color-bg-alt);
}

.garantias-card {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--color-dark) 0%, #11192e 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 64px -24px rgba(15, 23, 41, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.garantias-bg {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.garantias-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.garantias-content {
  position: relative;
  z-index: 1;
  display: block;
}

.garantias-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.garantias-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.garantias-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: #fff;
}

.garantias-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
}

.garantias-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.garantias-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 26px 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  isolation: isolate;
}
.garantias-item .garantias-icon { flex-shrink: 0; }
.garantias-item .garantias-text { flex: 1; min-width: 0; }

/* Subtle accent glow on hover */
.garantias-item::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--gi-color, #60a5fa) 0%, transparent 70%);
  opacity: 0;
  filter: blur(40px);
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.garantias-item > * {
  position: relative;
  z-index: 1;
}

.garantias-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.garantias-item:hover::before { opacity: 0.18; }

/* Editorial number */
.garantias-icon {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.garantias-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.garantias-item:hover .garantias-icon {
  transform: translateY(-3px) scale(1.06);
}

.garantias-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Color variants */
.garantias-item--key    { --gi-color: #60a5fa; --gi-color-dark: #2563eb; }
.garantias-item--code   { --gi-color: #c084fc; --gi-color-dark: #7c3aed; }
.garantias-item--export { --gi-color: #34d399; --gi-color-dark: #059669; }
.garantias-item--free   { --gi-color: #fbbf24; --gi-color-dark: #d97706; }

.garantias-text {
  display: block;
}

.garantias-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.garantias-item span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .garantias { padding: 60px 0; }
  .garantias-card { padding: 36px 24px; border-radius: var(--radius-lg); }
  .garantias-desc { max-width: 100%; }
  .garantias-list { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
  .garantias-item {
    flex-direction: row;
    align-items: flex-start;
    padding: 18px 18px;
  }
  .garantias-icon { width: 64px; height: 64px; border-radius: var(--radius-md); }
}

/* ===== Precios ===== */
.precios {
  padding: 66px 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-bg) 100%);
}

/* Toggle Web / Mantenimiento — enseña una rejilla a la vez (menos scroll) */
.plans-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  padding: 5px;
  margin: 4px auto 30px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.plans-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 22px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.plans-tab span { font-weight: 500; font-size: 0.78rem; opacity: 0.85; }
.plans-tab:hover { color: var(--color-dark); }
.plans-tab.is-active {
  background: linear-gradient(135deg, #4f8ff7, #2563eb);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(59, 130, 246, 0.6);
}
.plans-tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.plans-panel { animation: plans-fade 0.4s ease; }
.plans-panel--hidden { display: none; }
@keyframes plans-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .plans-panel { animation: none; } }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 36px;
}

.plan-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Lift the entire card when its tooltip is active so popover sits on top of neighbours */
.plan-card:has(.info-tip:hover),
.plan-card:has(.info-tip:focus-visible),
.plan-card:has(.info-tip.is-open) {
  z-index: 200;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(26, 35, 50, 0.1);
  border-color: var(--color-accent-light);
}

.plan-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 20px 48px -16px rgba(59, 130, 246, 0.25);
  transform: translateY(-8px);
}

.plan-card.featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 56px -16px rgba(59, 130, 246, 0.32);
}

.plan-card.featured::before {
  content: 'Más elegido';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* ============================================
   Plan dorado · Cuidado Total para hostelería
   Destacado sin chocar con el "Más elegido" del Profesional.
   No usa translateY (deja al Profesional dominar el "lift" central).
   ============================================ */
.plan-card.plan-card--gold {
  border-color: #c89a3a;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 35%);
  box-shadow: 0 18px 44px -18px rgba(200, 154, 58, 0.32);
  position: relative;
}
.plan-card.plan-card--gold:hover {
  box-shadow: 0 22px 52px -18px rgba(200, 154, 58, 0.42);
}
.plan-card.plan-card--gold::before {
  content: 'Más completo';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4a017 0%, #b88a10 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(200, 154, 58, 0.45);
  white-space: nowrap;
}
.plan-card.plan-card--gold .plan-tier {
  color: #b88a10;
}
.plan-card.plan-card--gold .plan-num,
.plan-card.plan-card--gold .plan-currency {
  color: #b88a10;
}

/* Caja "Recomendado para…" dentro del Cuidado Total */
.plan-recommended-for {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #5a4310;
}
.plan-recommended-for svg {
  color: #c89a3a;
  flex-shrink: 0;
  margin-top: 2px;
}
.plan-recommended-for strong {
  color: #8a6809;
  font-weight: 700;
}

/* Recuadro-consejo (hermano del dorado, tinte azul → guiña al Profesional) */
.plan-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-light);
}
.plan-tip svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-tip strong {
  color: var(--color-dark);
  font-weight: 700;
}

.plan-tier {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.plan-tier.muted-tier {
  color: var(--color-text-light);
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.plan-summary {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin-bottom: 20px;
  min-height: 44px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.plan-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.plan-note {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  padding: 24px 0 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.5;
}

.plan-features li.muted {
  color: var(--color-text-light);
  opacity: 0.55;
}

.check-sm {
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 3px;
}

.plan-features li.muted .check-sm {
  color: var(--color-text-light);
}

/* ===== COMBINATOR (refined, compact) ===== */
.combinator {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(165deg, #16203a 0%, #0b1120 100%);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 48px -20px rgba(15, 23, 41, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

/* Single static accent glow */
.combo-glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.13) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Subtle blueprint grid */
.combo-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.combinator > *:not(.combo-glow):not(.combo-grid-bg) {
  position: relative;
  z-index: 1;
}

/* Header */
.combo-header {
  margin-bottom: 24px;
}

.combo-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.combo-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.combo-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 420px;
}

/* Columns */
.combo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.combo-col-title {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.combo-col-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #60a5fa;
}
.combo-col-ico svg { width: 15px; height: 15px; }

.combo-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Option button */
.combo-option {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* indicador radio/check */
.combo-radio {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.combo-radio::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.combo-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.combo-amount {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.combo-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.combo-option:hover .combo-radio { border-color: rgba(255, 255, 255, 0.5); }

.combo-option.selected {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.06));
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35), 0 10px 26px -10px rgba(59, 130, 246, 0.55);
}
.combo-option.selected .combo-radio { border-color: #60a5fa; background: #3b82f6; }
.combo-option.selected .combo-radio::after { transform: rotate(45deg) scale(1); }
.combo-option.selected .combo-name { color: #fff; }
.combo-option.selected .combo-amount { color: #bfdbfe; }

/* Result */
.combo-result {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.combo-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.combo-result-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.combo-savings-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.combo-savings-chip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Big amount — clean, refined */
.combo-result-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}

.combo-result-amount {
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 35%, #7db5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: inline-block;
}

.combo-result-currency {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.01em;
}

/* Breakdown */
.combo-breakdown {
  margin-bottom: 14px;
}

.combo-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 5px 0;
}

.combo-breakdown-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.combo-breakdown-label strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.combo-breakdown-pill {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
}

.combo-breakdown-pill--alt {
  background: rgba(255, 255, 255, 0.35);
}

.combo-breakdown-value {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}

.combo-breakdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.combo-result-detail {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.combo-result-detail strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.combo-cta {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; }
  .plans-tabs { width: 100%; max-width: 400px; }
  .plans-tab { flex: 1; justify-content: center; padding: 10px 8px; font-size: 0.88rem; }
  .plans-tab span { display: none; }
  .plan-card.featured { transform: none; }
  .combo-row { grid-template-columns: 1fr; gap: 16px; }
  .combinator { padding: 24px 20px 22px; max-width: 460px; }
  .combo-title { font-size: 1.2rem; }
  .combo-desc { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .combo-result-amount { font-size: 1.9rem; }
  .combo-option { padding: 11px 13px; }
}

/* ===== Contacto ===== */
.contacto {
  padding: 66px 0;
  background: var(--color-bg-alt);
}

/* Contacto a 2 columnas: foto real (humaniza) + formulario */
.contacto-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 980px;
  margin: 40px auto 0;
}
.contacto-aside { position: relative; align-self: stretch; }
.contacto-photo {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.38), 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: block;
}
.contacto-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.35);
}
.contacto-photo-badge svg { color: var(--color-accent); flex-shrink: 0; }
.contacto-formwrap .contact-form { max-width: none; margin: 0; }

@media (max-width: 768px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 26px; max-width: 480px; }
  .contacto-photo { min-height: 0; max-height: 260px; }
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark-soft);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-dark);
  transition: all 0.2s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 240px;
  padding: 16px 40px;
  border-radius: var(--radius-md);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--color-success);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 60px 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  visibility: hidden;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transition: opacity 0.4s ease 0.15s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, visibility 0.4s;
}

.form-success.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  height: auto;
  padding-top: 60px;
  padding-bottom: 60px;
}

.contact-form {
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.contact-form.fading {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.form-error {
  display: none;
  align-items: flex-start;
  gap: 12px;
  max-width: 640px;
  margin: 20px auto 0;
  padding: 16px 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #dc2626;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-error.visible {
  display: flex;
}

.form-error svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.form-error a {
  color: #dc2626;
  font-weight: 600;
  text-decoration: underline;
}

/* Button spinner */
.btn-submit .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading {
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-submit.loading .btn-label {
  display: none;
}

.btn-submit.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Trabajos / Portfolio ===== */
.trabajos {
  padding: 66px 0;
  background: var(--color-bg-alt);
}

/* Trabajos · rejilla compacta de proyectos (el hero ya muestra las capturas) */
.works-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(50% - 11px);
  max-width: calc(50% - 11px);
  min-width: 280px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* línea de acento superior, color por proyecto (--wc inline) */
.work-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--wc, var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -18px rgba(26, 35, 50, 0.18);
  border-color: var(--color-accent-light);
}
.work-card:hover::before { transform: scaleX(1); }

/* Miniatura de la captura real (a sangre, parte superior) */
.work-shot {
  display: block;
  height: 156px;
  overflow: hidden;
  background: #0f172a;
  border-bottom: 1px solid var(--color-border);
}
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-shot img { transform: scale(1.05); }

/* Cuerpo de la tarjeta (texto) */
.work-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.work-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.work-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #fff;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.07), 0 6px 16px -6px rgba(15, 23, 42, 0.22);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-logo { transform: scale(1.06) rotate(-3deg); }
.work-head-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.work-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  background: var(--color-accent-bg);
  padding: 4px 10px;
  border-radius: var(--radius-lg);
}

.work-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.work-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: gap 0.25s ease, color 0.2s ease;
}

.work-link:hover {
  color: var(--color-accent-hover);
  gap: 10px;
}

@media (max-width: 768px) {
  .works-grid { gap: 16px; }
  .work-card { flex-basis: 100%; max-width: 100%; }
  .work-shot { height: 172px; }
  .work-body { padding: 20px; }
}

/* ===== Info Tip (tooltip / popover) ===== */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-light);
  cursor: help;
  border-radius: 50%;
  vertical-align: middle;
  transition: color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.info-tip:hover,
.info-tip:focus-visible,
.info-tip.is-open {
  color: var(--color-accent);
  transform: scale(1.1);
  outline: none;
  z-index: 30;
}

.info-tip__icon {
  display: block;
}

/* Popover */
.info-tip__pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(calc(-50% + var(--tip-shift, 0px))) translateY(4px);
  width: max-content;
  max-width: 280px;
  padding: 14px 16px;
  background: rgba(15, 23, 41, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  cursor: default;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 500;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 41, 0.55);
}

.info-tip:hover .info-tip__pop,
.info-tip:focus-visible .info-tip__pop,
.info-tip.is-open .info-tip__pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(calc(-50% + var(--tip-shift, 0px))) translateY(0);
}

/* Arrow under the popover */
.info-tip__pop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: calc(50% - var(--tip-shift, 0px));
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15, 23, 41, 0.96);
}

.info-tip__pop strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.info-tip__pop p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.info-tip__pop .info-tip__note {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(147, 197, 253, 0.85);
  font-size: 0.75rem;
}

/* Right-edge cards: align popover to the right to avoid overflow */
.info-tip--align-right .info-tip__pop {
  left: auto;
  right: -8px;
  transform: translateX(0) translateY(4px);
}

.info-tip--align-right:hover .info-tip__pop,
.info-tip--align-right:focus-visible .info-tip__pop,
.info-tip--align-right.is-open .info-tip__pop {
  transform: translateX(0) translateY(0);
}

.info-tip--align-right .info-tip__pop::after {
  left: auto;
  right: 14px;
  transform: none;
}

/* Popover hacia ABAJO cuando arriba chocaría con el navbar fijo (lo decide el JS) */
.info-tip--below .info-tip__pop {
  bottom: auto;
  top: calc(100% + 12px);
  transform: translateX(calc(-50% + var(--tip-shift, 0px))) translateY(-4px);
}
.info-tip--below:hover .info-tip__pop,
.info-tip--below:focus-visible .info-tip__pop,
.info-tip--below.is-open .info-tip__pop {
  transform: translateX(calc(-50% + var(--tip-shift, 0px))) translateY(0);
}
.info-tip--below .info-tip__pop::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(15, 23, 41, 0.96);
}
.info-tip--align-right.info-tip--below .info-tip__pop { transform: translateX(0) translateY(-4px); }
.info-tip--align-right.info-tip--below:hover .info-tip__pop,
.info-tip--align-right.info-tip--below:focus-visible .info-tip__pop,
.info-tip--align-right.info-tip--below.is-open .info-tip__pop { transform: translateX(0) translateY(0); }
.info-tip--align-right.info-tip--below .info-tip__pop::after { left: auto; right: 14px; transform: none; }

/* On dark backgrounds (combinator) inverse the popover */
.combinator .info-tip {
  color: rgba(255, 255, 255, 0.5);
}

.combinator .info-tip:hover,
.combinator .info-tip:focus-visible,
.combinator .info-tip.is-open {
  color: #fff;
}

@media (max-width: 540px) {
  .info-tip__pop { max-width: 240px; }
  .info-tip { cursor: pointer; }
}

/* ===== FAQ ===== */
.faq {
  padding: clamp(70px, 9vh, 112px) 0;
  background:
    radial-gradient(52% 42% at 88% 0%, rgba(96, 165, 250, 0.08), transparent 70%),
    var(--color-bg);
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}

/* Izquierda: intro + ayuda (sticky en desktop) */
.faq-intro { position: sticky; top: 108px; }
.faq-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 14px;
}
.faq-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.03em;
  color: var(--color-dark); margin: 0 0 16px;
}
.faq-title-hl {
  background: linear-gradient(120deg, #3b82f6, #818cf8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.faq-sub { font-size: 1rem; line-height: 1.6; color: var(--color-text-light); margin: 0 0 26px; max-width: 340px; }
.faq-help {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--color-border);
  box-shadow: 0 14px 34px -22px rgba(26, 35, 50, 0.3);
  text-decoration: none; color: var(--color-dark);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.faq-help:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -20px rgba(37, 99, 235, 0.4); border-color: var(--color-accent-light); }
.faq-help-ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4f8ff7, #2563eb); color: #fff;
}
.faq-help-tx { flex: 1; font-size: 0.88rem; line-height: 1.45; color: var(--color-text-light); }
.faq-help-tx strong { display: block; color: var(--color-dark); font-size: 0.95rem; margin-bottom: 2px; }
.faq-help-ar { color: var(--color-accent); font-weight: 700; font-size: 1.1rem; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-help:hover .faq-help-ar { transform: translateX(4px); }

/* Filtros */
.faq-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.faq-filter {
  font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: var(--radius-full);
  background: #fff; border: 1px solid var(--color-border); color: var(--color-text-light);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-filter:hover { border-color: var(--color-accent-light); color: var(--color-accent); }
.faq-filter.is-active {
  background: linear-gradient(135deg, #4f8ff7, #2563eb); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
}

/* Lista + tarjetas */
.faq-list { display: flex; flex-direction: column; gap: 12px; transition: opacity 0.2s ease; }
.faq-list.is-filtering { opacity: 0; }
.faq-item {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.faq-item.faq-hide { display: none; }
.faq-item[open] { border-color: var(--color-accent-light); box-shadow: 0 16px 44px -24px rgba(37, 99, 235, 0.3); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 22px; cursor: pointer; list-style: none;
  font-size: 1.02rem; font-weight: 600; color: var(--color-dark);
  transition: color 0.3s ease;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-item[open] .faq-question { color: var(--color-accent-hover); }
.faq-q-text { flex: 1; }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.16); color: var(--color-accent);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.faq-item[open] .faq-icon { background: linear-gradient(135deg, #4f8ff7, #2563eb); border-color: transparent; color: #fff; transform: rotate(180deg); }
.faq-plus { position: relative; width: 14px; height: 14px; }
.faq-plus::before, .faq-plus::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2.2px; border-radius: 2px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Apertura/cierre por ALTURA en px (la controla el JS) — suave y fiable en todo navegador */
.faq-answer-wrap { overflow: hidden; }
.faq-item.is-closing { border-color: var(--color-border); box-shadow: none; }
.faq-item.is-closing .faq-question { color: var(--color-dark); }
.faq-item.is-closing .faq-icon { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.16); color: var(--color-accent); transform: none; }
.faq-answer { padding: 2px 22px 22px; font-size: 0.95rem; color: var(--color-text-light); line-height: 1.7; opacity: 0; transition: opacity 0.28s ease 0.06s; }
.faq-item[open] .faq-answer { opacity: 1; }
.faq-item.is-closing .faq-answer { opacity: 1; }
.faq-answer strong { color: var(--color-dark); }

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .faq-intro { position: static; }
  .faq-title { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .faq-sub { max-width: none; }
  .faq-help { max-width: 480px; }
}

/* ===== CTA Banner ===== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 32px;
}

.btn-cta {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  color: #fff;
  padding: 18px 44px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cta:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 0;
  background: var(--color-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer .logo-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

.footer-nav li,
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-legal { justify-content: center; }
}

/* ===== 3D Tilt effect ===== */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Los children con data-tilt-depth flotan sobre la tarjeta */
.tilt [data-tilt-depth] {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* Glare: reflejo luminoso que sigue al cursor */
.tilt::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0) 45%
  );
  opacity: var(--glare-opacity, 0);
  transition: opacity 0.3s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* El contenido por encima del glare */
.tilt > * {
  position: relative;
  z-index: 2;
}

/* Sombra dinámica al hacer tilt */
.tilt {
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.06);
  transition: box-shadow 0.3s ease;
}

.tilt:hover {
  box-shadow:
    0 20px 40px -12px rgba(26, 35, 50, 0.12),
    0 8px 16px -8px rgba(59, 130, 246, 0.15);
}

/* Dejar fuera el efecto en tactil / reduced-motion */
@media (prefers-reduced-motion: reduce), (hover: none) {
  .tilt { transform: none !important; }
  .tilt [data-tilt-depth] { transform: none !important; }
  .tilt::before { display: none; }
}

/* ===== Scroll animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  /* el delay (cascada) va SOLO en la animación de entrada, no en los hovers */
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* Cascada escalonada dentro de las rejillas (por columna) */
.services-grid > *:nth-child(3n + 2) { --reveal-delay: 0.09s; }
.services-grid > *:nth-child(3n + 3) { --reveal-delay: 0.18s; }
.steps > *:nth-child(2) { --reveal-delay: 0.12s; }
.steps > *:nth-child(3) { --reveal-delay: 0.24s; }
.garantias-list > *:nth-child(2) { --reveal-delay: 0.08s; }
.garantias-list > *:nth-child(3) { --reveal-delay: 0.16s; }
.garantias-list > *:nth-child(4) { --reveal-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* Subtler entry animation for FAQ items with staggered delay */
.faq-item.animate-on-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-list .faq-item:nth-child(1) { transition-delay: 0ms; }
.faq-list .faq-item:nth-child(2) { transition-delay: 60ms; }
.faq-list .faq-item:nth-child(3) { transition-delay: 120ms; }
.faq-list .faq-item:nth-child(4) { transition-delay: 180ms; }
.faq-list .faq-item:nth-child(5) { transition-delay: 240ms; }
.faq-list .faq-item:nth-child(6) { transition-delay: 300ms; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 32px);
    top: 8px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(26, 35, 50, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  .navbar.scrolled .nav-links {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }

  .navbar.scrolled .nav-links a {
    color: var(--color-text);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    justify-self: center;
  }

  /* Showcase en móvil: MISMO efecto (apilado + teléfono al lado), ajustado al ancho */
  .sc-card { width: 80%; top: 15%; }
  .sc-deck { aspect-ratio: 13 / 11; }
  .sc-phone { width: 27%; right: -1%; bottom: -8%; border-radius: var(--radius-md); }
  .sc-pill { font-size: 0.74rem; padding: 5px 11px 5px 6px; }
  .sc-pill-logo { width: 20px; height: 20px; }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 22px 18px;
  }
  .hero-stat-number { font-size: 1.8rem; }
  .hero-stat-label { font-size: 0.72rem; }

  /* Reducir el alto de las secciones en móvil — "todo más compacto" */
  .servicios, .proceso, .trabajos, .testimonios,
  .garantias, .comparativa, .precios, .contacto, .faq {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .garantias-card { padding: 40px 22px; }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-number {
    font-size: 2.8rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: var(--scroll-pct, 0%);
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 50%, #6366f1 100%);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.55);
  z-index: 1000;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ===== Mobile sticky CTA ===== */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  background: rgba(15, 23, 41, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px -8px rgba(15, 23, 41, 0.4);
  color: #fff;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.mobile-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-cta__price {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.mobile-cta__from {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.mobile-cta__price strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.mobile-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4f8ff7 0%, #2563eb 100%);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-cta__btn:hover,
.mobile-cta__btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
  .mobile-cta { display: flex; }
  body.mobile-cta-visible { padding-bottom: 80px; }
}

/* Hide near contacto / footer to avoid duplication */
.mobile-cta.hidden-near-form {
  opacity: 0 !important;
  transform: translateY(40px) !important;
  pointer-events: none !important;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 92px; /* apilado encima del .whatsapp-fab (56px tall + 22px bottom + 14px gap) */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 41, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 41, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
  transform: translateY(-3px) scale(1);
}

@media (max-width: 768px) {
  .back-to-top {
    /* Móvil: stack derecho de abajo a arriba.
       Por defecto (sin barra): whatsapp(20) → back-to-top(82).
       Con barra visible: barra → whatsapp(86) → back-to-top(150). */
    right: 18px;
    bottom: 82px;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.mobile-cta-visible .back-to-top {
    bottom: 150px;
  }
}

/* ===== Floating WhatsApp button =====
   Stack inferior derecha: mobile-cta (móvil) < whatsapp-fab < back-to-top.
   Cookie banner vive en bottom-LEFT así que no choca. */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 950;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease,
              background 0.18s ease,
              bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 14px 32px -6px rgba(37, 211, 102, 0.6),
              0 4px 12px rgba(37, 211, 102, 0.35);
  background: #20bd5a;
  outline: none;
}

.whatsapp-fab:active {
  transform: scale(0.98);
}

.whatsapp-fab svg {
  display: block;
}

/* Móvil: WhatsApp APILADO ENCIMA de la .mobile-cta en la esquina derecha.
   - .mobile-cta: barra horizontal en bottom: 12px (~62px alto)
   - .whatsapp-fab: bottom 88px (justo encima)
   - .back-to-top: bottom 152px (encima del WhatsApp)
   Cookie banner sigue en bottom-left sin colisión. */
@media (max-width: 768px) {
  /* Por defecto el WhatsApp va abajo del todo (no hay barra de presupuesto) */
  .whatsapp-fab {
    bottom: 20px;
    right: 14px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }
  /* Cuando aparece la barra "Desde 590€", el WhatsApp sube por encima de ella */
  body.mobile-cta-visible .whatsapp-fab {
    bottom: 86px;
  }
}

/* ===== Work card: micro-stats verificables =====
   Una línea entre la descripción y el link, separadores "·". */
.work-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  /* desc ya trae margin-bottom: 20px → margin-top mínimo aquí */
  margin: -2px 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.01em;
}

.work-stats li {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.work-stats li:not(:last-child)::after {
  content: '·';
  margin-left: 10px;
  color: rgba(15, 23, 41, 0.25);
  font-weight: 700;
}

@media (max-width: 480px) {
  .work-stats {
    font-size: 0.72rem;
    gap: 4px 8px;
    margin: 12px 0 14px;
  }
  .work-stats li:not(:last-child)::after {
    margin-left: 8px;
  }
}

/* ===== Antes / Después deslizable ===== */
.ba { max-width: 760px; margin: 0 auto 44px; }
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 26px 60px -26px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.06);
  cursor: ew-resize;
  --pos: 50%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba-slider:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.ba-side { position: absolute; inset: 0; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); will-change: clip-path; }
.ba-doc { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.ba-anim .ba-before { transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.ba-anim .ba-handle { transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
/* Durante el arrastre: cero transición → el clip y el tirador siguen al cursor al instante */
.ba-slider.ba-dragging .ba-before,
.ba-slider.ba-dragging .ba-handle { transition: none !important; }

/* barra superior tipo navegador */
.ba-topbar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #eef2f7; border-bottom: 1px solid #dde3ec; flex-shrink: 0; }
.ba-topbar--old { background: #d6cdb9; border-bottom: 1px solid #b3a684; }
.ba-dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }
.ba-topbar--old .ba-dot { background: #a3946f; }
.ba-url { flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 0.6rem; color: #64748b; background: #fff; border: 1px solid #dde3ec; border-radius: var(--radius-xs); padding: 3px 8px; margin: 0 6px; white-space: nowrap; overflow: hidden; }
.ba-url svg { color: #94a3b8; flex-shrink: 0; }
.ba-url--old { background: #fffdf3; border: 1px solid #c4b48f; border-radius: 2px; color: #7a6f53; font-family: Georgia, 'Times New Roman', serif; }
.ba-score { font-size: 0.62rem; font-weight: 800; padding: 2px 7px; border-radius: var(--radius-xs); white-space: nowrap; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ba-score small { font-weight: 600; opacity: 0.55; }
.ba-score--good { color: #0f9d58; background: rgba(16, 185, 129, 0.15); }
.ba-score--bad { color: #d93025; background: rgba(217, 48, 37, 0.15); }
.ba-page { flex: 1; padding: 14px 16px; overflow: hidden; }

/* Paneles con captura real (antes cutre / después limpia) */
.ba-page--shot { padding: 0; display: block; }
.ba-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }

/* tirador */
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); z-index: 3; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12); pointer-events: none; }
.ba-handle-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3); display: grid; place-items: center; color: var(--color-accent); animation: ba-pulse 2.4s ease-in-out infinite; }
.ba-handle-grip svg { display: block; }
.ba-slider.ba-dragging .ba-handle-grip { animation: none; }
@keyframes ba-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3), 0 0 0 0 rgba(59, 130, 246, 0.45); }
  50% { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3), 0 0 0 9px rgba(59, 130, 246, 0); }
}

.ba-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 0.82rem; font-weight: 600; }
.ba-legend-item--bad { color: var(--color-text-light); }
.ba-legend-item--good { color: var(--color-accent); }

@media (max-width: 540px) {
  .ba-legend { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-handle-grip { animation: none; }
  .ba-anim .ba-before, .ba-anim .ba-handle { transition: none; }
}

/* ===== Comparativa ===== */
.comparativa {
  padding: 66px 0;
  background: var(--color-bg);
}

.compare {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr 1fr;
}

.compare__row {
  display: contents;
}

.compare__cell {
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.45;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.compare__row:last-of-type .compare__cell {
  border-bottom: none;
}

.compare__cell--label {
  font-weight: 600;
  color: var(--color-dark);
  background: var(--color-bg);
  font-size: 0.88rem;
}

.compare__cell--us {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(99, 102, 241, 0.04) 100%);
  border-left: 1px solid rgba(59, 130, 246, 0.18);
  border-right: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--color-dark);
  font-weight: 500;
}

.compare__cell--alt {
  color: var(--color-text-light);
}

.compare__row--head .compare__cell {
  padding: 24px 20px 20px;
  font-weight: 700;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.compare__row--head .compare__cell--us {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.04) 100%);
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 18px;
}

.compare__row--head .compare__cell--us::before {
  content: 'Recomendado';
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  margin-bottom: 4px;
}

.compare__option {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.3;
}

.compare__sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-top: 4px;
}

.compare__option--us {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1rem;
}

.compare__us-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  aspect-ratio: 1;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex: 0 0 26px;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3);
}
.compare__us-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmp-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.cmp-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.cmp-partial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(217, 119, 6, 0.16);
  color: #b45309;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.compare__note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 28px auto 0;
  max-width: 720px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.55;
  padding: 14px 18px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
}

.compare__note svg {
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--color-text-light);
}

.compare-wrap {
  display: block;
}

@media (max-width: 900px) {
  /* Stacked cards, one per criterion */
  .compare {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    max-width: 520px;
  }
  .compare__row {
    display: block;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 0;
  }
  .compare__row--head { display: none; }
  .compare__cell {
    display: block;
    border: none;
    padding: 14px 16px 14px 16px;
    font-size: 0.92rem;
    background: transparent;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.4;
  }
  .compare__cell:last-child { border-bottom: none; }
  .compare__cell--label {
    background: var(--color-bg);
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 16px;
  }
  .compare__cell:not(.compare__cell--label)::before {
    display: block;
    content: '';
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 4px;
  }
  .compare__cell--alt:nth-child(2)::before { content: 'Plantillas'; }
  .compare__cell--us::before {
    content: 'Mutilva Web';
    color: var(--color-accent);
    padding-left: 24px;
    line-height: 18px;
    min-height: 18px;
    background: url('../images/logo-mutilva-icon.png') left center / 18px 18px no-repeat;
  }
  .compare__cell--alt:nth-child(4)::before { content: 'Agencia tradicional'; }
  .compare__cell--us {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
    color: var(--color-dark);
    font-weight: 600;
    position: relative;
  }
  .compare__cell--us::after {
    content: '★ Recomendado';
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.04em;
  }
  .compare__note { margin-top: 18px; font-size: 0.82rem; padding: 12px 16px; }
}

@media (max-width: 480px) {
  .compare__cell { font-size: 0.88rem; padding: 12px 14px; }
  .compare__cell--label { padding: 10px 14px; font-size: 0.72rem; }
  .compare__cell--us::after { display: none; }
}


.work-tag--mei {
  color: #c4361c;
  background: rgba(196, 54, 28, 0.08);
}

.work-link--mei { color: #c4361c; }
.work-link--mei:hover { color: #8e2010; }


/* Tag/link colors — keep per-brand */
.work-tag--alam {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.10);
}
.work-link--alam { color: #dc2626; }
.work-link--alam:hover { color: #991b1b; }

.work-tag--etxea {
  color: #b88a3a;
  background: rgba(184, 138, 58, 0.10);
}
.work-link--etxea { color: #b88a3a; }
.work-link--etxea:hover { color: #8e6a25; }



/* ===== Mockup: Griny (boutique floral lookbook) ===== */
.work-tag--griny {
  color: #7d8c6e;
  background: rgba(125, 140, 110, 0.13);
}

.work-link--griny { color: #7d8c6e; }
.work-link--griny:hover { color: #5d6c4e; }

