/* ============================================================================
   GARMIL AGENCY · main.css
   Oscuro premium · azul eléctrico + violeta · Sora / Inter / JetBrains Mono
   ============================================================================ */

/* ---------- Variables ---------- */
:root {
  --bg:        #07080d;
  --bg-soft:   #0b0d15;
  --panel:     rgba(255, 255, 255, 0.03);
  --panel-2:   rgba(255, 255, 255, 0.055);
  --line:      rgba(255, 255, 255, 0.09);
  --text:      #e9ebf3;
  --muted:     #9aa1b5;
  --blue:      #4f7dff;
  --violet:    #8b5cf6;
  --cyan:      #22d3ee;
  --grad:      linear-gradient(92deg, var(--blue), var(--violet));
  --glow:      0 10px 45px rgba(79, 125, 255, 0.35);
  --f-display: 'Sora', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
  --radius:    20px;
  --pad-x:     clamp(1.25rem, 5vw, 4.5rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: rgba(79, 125, 255, 0.4); }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; }

section[id], div[id] { scroll-margin-top: 100px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Fondo reactivo + grano ---------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(38rem 38rem at calc(var(--mx, 50) * 1%) calc(var(--my, 30) * 1%),
      rgba(79, 125, 255, 0.16), transparent 60%),
    radial-gradient(30rem 30rem at calc(100% - var(--mx, 50) * 0.6%) calc(90% - var(--my, 30) * 0.4%),
      rgba(139, 92, 246, 0.12), transparent 65%),
    var(--bg);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-soft { background: rgba(255, 255, 255, 0.022); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem var(--pad-x);
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 0.8rem var(--pad-x);
  background: rgba(7, 8, 13, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav-brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.nav-cta:hover {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(79, 125, 255, 0.35);
  transform: translateY(-1px);
}

/* Burger + menú móvil */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(7, 8, 13, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.mobile-menu-links a {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.mobile-menu-links .btn { font-size: 1rem; margin-top: 0.8rem; }
body.menu-open { overflow: hidden; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 55px rgba(79, 125, 255, 0.5); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
}
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }

.btn-block { display: block; text-align: center; }
.btn-lg { font-size: 1.1rem; padding: 1.1rem 2.2rem; }

/* ---------- Animación de aparición ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Secciones: cabecera común ---------- */
.section-head {
  padding: 0 var(--pad-x);
  max-width: 1200px;
  margin: 0 auto 3.2rem;
}

.section-kicker {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.section-title em,
.hero-title em,
.contact-title em,
.error404-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem var(--pad-x) 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-kicker {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

.hero-title {
  font-size: clamp(3.1rem, 10.5vw, 7.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 1.8rem;
}
.hero-line { display: block; }

.hero-sub {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  margin: 0 0 2.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-offer {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  width: fit-content;
  margin: 0;
}
.hero-offer s { opacity: 0.65; }
.hero-offer strong {
  font-family: var(--f-display);
  color: var(--text);
  font-weight: 700;
}
.hero-offer-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(79, 125, 255, 0.8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll span {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(var(--blue), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Barra de confianza ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem var(--pad-x);
}
.trust-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.4rem;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--muted);
}
.trust-ic { color: var(--blue); margin-right: 0.4rem; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: rgba(233, 235, 243, 0.35);
  white-space: nowrap;
  padding-right: 1rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Manifesto ---------- */
.manifesto {
  padding: clamp(5rem, 12vw, 9rem) var(--pad-x);
  max-width: 1100px;
  margin: 0 auto;
}
.manifesto-text {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
}
.manifesto-text .w { color: rgba(233, 235, 243, 0.16); transition: color 0.4s ease; }
.manifesto-text .w.on { color: var(--text); }
/* La palabra de marca «Magnet» siempre en el degradado (gana al .on) */
.manifesto-text .brand,
.manifesto-text .w-brand,
.manifesto-text .w-brand.on {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Servicios ---------- */
.services { padding: clamp(4rem, 9vw, 7rem) 0; }

.services-list {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  align-items: center;
  gap: 1.6rem;
  padding: 2.2rem var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s ease;
}
.service-row:hover { background: var(--panel); }

.service-num {
  font-family: var(--f-mono);
  font-size: 1rem;
  color: var(--muted);
  transition: color 0.3s;
}
.service-row:hover .service-num { color: var(--blue); }

.service-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.5rem;
}
.service-name {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.service-text {
  color: var(--muted);
  max-width: 54rem;
  margin: 0;
}

.service-arrow {
  font-size: 1.5rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
}
.service-row:hover .service-arrow {
  opacity: 1;
  transform: none;
  color: var(--blue);
}

/* ---------- Demo: agente en acción ---------- */
.demo { padding: clamp(4.5rem, 10vw, 8rem) var(--pad-x); }

.demo-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.demo-copy .section-title { margin-bottom: 1.4rem; }
.demo-text {
  color: var(--muted);
  max-width: 30rem;
  margin: 0 0 2rem;
}

/* Móvil */
.phone {
  width: min(340px, 100%);
  margin: 0 auto;
  background: #0d0f18;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 1.1rem 1rem 1.3rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(79, 125, 255, 0.08);
}

.phone-notch {
  width: 108px; height: 22px;
  background: #07080d;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto 0.9rem;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.phone-avatar {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.phone-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
}
.phone-title small {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: #4ade80;
}

.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 0.35rem 0.4rem;
  min-height: 320px;
}

.chat-day {
  align-self: center;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin: 0 0 0.4rem;
}

.chat-msg {
  max-width: 85%;
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 0.6rem 0.8rem 0.9rem;
  border-radius: 14px;
  position: relative;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.chat-msg.show { opacity: 1; transform: none; }

.chat-msg--in {
  align-self: flex-start;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-msg--out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(79, 125, 255, 0.28), rgba(139, 92, 246, 0.28));
  border: 1px solid rgba(79, 125, 255, 0.35);
  border-bottom-right-radius: 4px;
}

.chat-time {
  position: absolute;
  right: 0.7rem;
  bottom: 0.28rem;
  font-size: 0.62rem;
  color: var(--muted);
}

.phone-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1.1rem 0 0;
}

/* ---------- Cómo funciona ---------- */
.steps { padding: clamp(4.5rem, 10vw, 8rem) var(--pad-x); }

.steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.step:hover { transform: translateY(-6px); border-color: rgba(79, 125, 255, 0.45); }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.3rem;
  box-shadow: var(--glow);
}
.step-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.7rem; }
.step-text { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Antes / Después ---------- */
.compare { padding: clamp(4.5rem, 10vw, 8rem) var(--pad-x); }

.compare-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.compare-col {
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  border: 1px solid var(--line);
}
.compare-col--before { background: var(--panel); }
.compare-col--after {
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 60px rgba(79, 125, 255, 0.14);
}

.compare-label {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  color: var(--muted);
}
.compare-col--after .compare-label { color: var(--blue); }

.compare-listx {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.compare-listx li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--muted);
}
.compare-col--before .compare-listx li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #f87171;
  font-size: 0.85rem;
}
.compare-col--after .compare-listx li { color: var(--text); }
.compare-col--after .compare-listx li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ---------- Planes ---------- */
.plans { padding: clamp(4.5rem, 10vw, 8rem) var(--pad-x); }

.plans-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(79, 125, 255, 0.4); }

.plan--featured {
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 24px 70px rgba(79, 125, 255, 0.18);
  position: relative;
}

.plan-flag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--glow);
  margin: 0;
}

.plan-name { font-size: 1.35rem; font-weight: 700; }
.plan-for {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 1.4rem;
  min-height: 2.6em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.plan-price-old {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--muted);
  text-decoration: line-through;
}
.plan-price-now {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-badge {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px dashed rgba(79, 125, 255, 0.45);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  margin: 0 0 1.3rem;
}
.plan-badge--soft {
  color: var(--muted);
  border-color: var(--line);
}

.plan-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: var(--muted);
  flex-grow: 1;
}
.plan-list li {
  padding-left: 1.5rem;
  position: relative;
}
.plan-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.85rem;
}
.plan-list strong { color: var(--text); font-weight: 600; }

.plan-mensual {
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin: 0 0 1.4rem;
}
.plan-mensual strong { color: var(--text); font-family: var(--f-display); }

/* Garantía */
.plans-guarantee {
  max-width: 1200px;
  margin: 2.4rem auto 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
}
.plans-guarantee p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.plans-guarantee strong { color: var(--text); }
.guarantee-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--glow);
}

/* Add-ons */
.addons {
  max-width: 1200px;
  margin: 2.4rem auto 0;
  text-align: center;
}
.addons-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}
.addons-sub { color: var(--muted); font-size: 0.94rem; margin: 0 0 1.4rem; }
.addons-chips {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.addons-chips li {
  font-size: 0.86rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: border-color 0.25s, color 0.25s;
}
.addons-chips li:hover { border-color: var(--blue); color: var(--text); }
.addons-chips .chip-star {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.08);
}
.addons-cta {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.addons-cta:hover { text-decoration: underline; }

/* ---------- Trabajo ---------- */
.work { padding: clamp(4.5rem, 10vw, 8rem) var(--pad-x); }

.work-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.4rem;
  align-items: stretch;
}

.work-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(79, 125, 255, 0.4); }

/* Mini-navegador con la web de Villen */
.browser {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #06070c;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.browser-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.browser-bar span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: 0.7rem;
  background: var(--panel);
  border-radius: 6px;
  padding: 0.15rem 0.7rem;
}
.browser-view {
  padding: 2.4rem 1.6rem 2.2rem;
  background:
    radial-gradient(24rem 14rem at 80% -20%, rgba(79, 125, 255, 0.22), transparent 65%),
    #06070c;
}
.bv-kicker {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--blue);
  margin: 0 0 0.7rem;
}
.bv-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
}
.bv-btn {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

.work-name { font-size: 1.3rem; font-weight: 700; }
.work-sector { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }

.work-transform {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.85rem;
  margin-top: auto;
}
.work-before {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.work-arrow { color: var(--blue); }
.work-after {
  color: var(--text);
  border: 1px solid rgba(79, 125, 255, 0.45);
  background: rgba(79, 125, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.work-card--soon {
  justify-content: center;
  align-items: flex-start;
  border-style: dashed;
  background: transparent;
}
.work-cta {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-top: 1rem;
}
.work-cta:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(4.5rem, 10vw, 8rem) var(--pad-x); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 1.4rem;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(79, 125, 255, 0.4); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1.2rem 2.2rem 1.2rem 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p {
  color: var(--muted);
  margin: 0 0 1.3rem;
  animation: faq-in 0.4s ease;
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Contacto ---------- */
.contact {
  padding: clamp(6rem, 13vw, 10rem) var(--pad-x);
  text-align: center;
}

.contact-kicker {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.2rem;
}

.contact-title {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 1.3rem;
}

.contact-sub {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.contact-link {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.25s;
}
.contact-link:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem var(--pad-x) 2.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.footer-brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.5rem 0 1.6rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--text); }

.footer-legal {
  font-size: 0.8rem;
  color: rgba(154, 161, 181, 0.6);
  margin: 0;
}

/* ---------- Páginas legales ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 9rem var(--pad-x) 5rem;
}
.legal-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
}
.legal-back:hover { color: var(--blue); }
.legal-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.legal-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
}
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body a { color: var(--blue); }
.legal-updated {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.legal-fill {
  background: rgba(139, 92, 246, 0.14);
  border: 1px dashed rgba(139, 92, 246, 0.5);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  color: var(--text);
}

/* ---------- 404 ---------- */
.error404-main {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem var(--pad-x) 4rem;
}
.error404-title {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.6rem 0 1.2rem;
}
.error404-sub { color: var(--muted); margin: 0 0 2rem; }
.error404-main .hero-actions { justify-content: center; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .demo-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 520px; }
  .plan--featured { order: -1; }
  .work-grid { grid-template-columns: 1fr; max-width: 560px; }

  .service-row { grid-template-columns: 3rem 1fr; }
  .service-arrow { display: none; }
}

@media (max-width: 560px) {
  .hero { padding-top: 6.5rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-offer { border-radius: 18px; }
  .hero-scroll { display: none; }
  .trust-list { justify-content: flex-start; }
  .plans-guarantee { flex-direction: column; text-align: center; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .chat-msg { opacity: 1; transform: none; }
  .manifesto-text .w { color: var(--text); }
}
