:root {
  --bg: #000000;
  --bg-alt: #0a0a0c;
  --surface: #141417;
  --surface-2: #1c1c20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --accent: #ff7a1f;
  --accent-2: #ffb35c;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

h1, h2, h3 { margin: 0; font-weight: 700; color: var(--text); }

h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p { margin: 0 0 1em; }

.accent {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Barra superior: material translúcido */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 300ms var(--ease), background 300ms var(--ease);
}

.topbar.is-scrolled {
  background: rgba(10, 10, 12, 0.72);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}

.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-icon { width: 26px; height: 26px; }
.logo-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.03em; }
.logo-sub { font-weight: 400; color: var(--muted); margin-left: 5px; }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 200ms var(--ease);
}

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

.nav .nav-cta {
  color: #111;
  background: var(--text);
  padding: 7px 15px;
  border-radius: 999px;
  font-weight: 600;
}

.nav .nav-cta:hover { color: #111; background: #fff; }

/* Botones: respuesta inmediata al presionar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 100ms ease-out, background 250ms var(--ease), border-color 250ms var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn svg { width: 19px; height: 19px; }
.btn:active, .nav .nav-cta:active, .card:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #140a02; }
.btn-primary:hover { background: #ff8a38; }

.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Inicio */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 16vw, 190px) 0 clamp(90px, 13vw, 160px);
  text-align: center;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(1100px, 140vw);
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 122, 31, 0.22), rgba(255, 122, 31, 0.06) 55%, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; }
.hero h1 { max-width: 15ch; margin: 0 auto; }
.hero .actions { justify-content: center; }

.lead {
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
  margin: 26px auto 0;
  letter-spacing: -0.01em;
}

/* Secciones */
.section { padding: clamp(96px, 13vw, 150px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }

.section-intro {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 20px auto 0;
  max-width: 620px;
  letter-spacing: -0.01em;
}

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 36px;
  transition: transform 450ms var(--ease), border-color 300ms var(--ease), background 300ms var(--ease);
}

.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }

.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 122, 31, 0.12);
  color: var(--accent);
  margin-bottom: 22px;
}

.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.55; }

.closing { text-align: center; margin: 48px 0 0; font-size: 1.1rem; color: var(--muted); }
.closing a { color: var(--accent); text-decoration: none; font-weight: 600; }
.closing a:hover { text-decoration: underline; }

/* Pasos */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 34px;
}

.step-num {
  display: block;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 26px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; line-height: 1.55; }

.offer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, rgba(255, 122, 31, 0.8), rgba(255, 179, 92, 0.25) 60%, rgba(255, 255, 255, 0.06)) border-box;
  border: 1px solid transparent;
}

.offer-title { font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.offer-text { margin: 0; color: var(--muted); max-width: 640px; }
.offer-text strong { color: var(--text); font-weight: 600; }
.offer .btn { flex-shrink: 0; }

/* Comparación */
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }

.compare-col { border-radius: var(--radius-lg); padding: 36px 34px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.compare-col li { position: relative; padding-left: 34px; line-height: 1.5; }

.compare-col li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.compare-title { font-weight: 600; font-size: 1.05rem; margin: 0 0 24px; letter-spacing: -0.01em; }

.compare-col-old { background: transparent; border: 1px solid var(--line); }
.compare-col-old .compare-title { color: var(--faint); }
.compare-col-old li { color: var(--faint); }
.compare-col-old li::before { content: "✕"; color: var(--faint); background: rgba(255, 255, 255, 0.05); }

.compare-col-new { background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -40px rgba(255, 122, 31, 0.35); }
.compare-col-new .compare-title { color: var(--accent); }
.compare-col-new li { color: var(--muted); }
.compare-col-new li strong { color: var(--text); font-weight: 600; }
.compare-col-new li::before { content: "✓"; color: #140a02; background: var(--accent); }

/* Nosotros */
.about {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 64px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.about-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { display: none; }
.about-photo.is-empty { aspect-ratio: 16 / 9; }
.about-photo.is-empty .photo-placeholder { display: grid; place-items: center; position: absolute; inset: 0; color: var(--muted); }

.about-text p { color: var(--muted); }
.about-text .about-lead { color: var(--text); font-size: 1.25rem; line-height: 1.5; letter-spacing: -0.015em; font-weight: 500; }

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 96px; }

.mvv-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 38px;
}

.mvv-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 122, 31, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.mvv-item h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 14px; }
.mvv-item p { color: var(--muted); margin: 0; }

.mvv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mvv-list li { color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.mvv-list strong { color: var(--text); font-weight: 600; }

/* Preguntas */
.faq { border-top: 1px solid var(--line); }

details { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 2px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  -webkit-tap-highlight-color: transparent;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 350ms var(--ease);
}

details[open] summary::after { transform: translateY(2px) rotate(-135deg); }

details p { color: var(--muted); margin: 0; padding: 0 2px 26px; max-width: 680px; }

/* Contacto */
.contact-card {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 28px;
  border-radius: 36px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 122, 31, 0.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}

.contact-card h2 { max-width: 16ch; margin: 0 auto; }
.contact-card .actions { justify-content: center; }
.contact-meta { margin: 28px 0 0; color: var(--faint); font-size: 0.95rem; }
.pending { color: var(--accent); }

.footer { padding: 34px 0 44px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 26px; }
.footer p { margin: 0; color: var(--faint); font-size: 0.88rem; }
.footer strong { color: var(--muted); font-weight: 600; }

/* Aparición al hacer scroll (solo con JavaScript activo) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* Adaptación a pantallas */
@media (max-width: 980px) {
  .nav a:not(.nav-cta) { display: none; }
  .cards, .mvv { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .about-photo { max-width: 280px; }
  .offer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .cards, .mvv, .steps { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 44px; }
  .actions { flex-direction: column; align-items: stretch; }
  .hero .actions { align-items: stretch; }
  .btn { width: 100%; }
  .offer { padding: 28px 24px; }
  .offer .btn { width: 100%; }
  .compare-col { padding: 28px 24px; }
  .card, .step, .mvv-item { padding: 28px 24px 30px; }
}

/* Accesibilidad: movimiento, transparencia y contraste */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 200ms ease; }
  .card, .card:hover { transform: none; transition: none; }
  .btn:active, .nav .nav-cta:active, .card:active { transform: none; }
  summary::after { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar, .topbar.is-scrolled { background: #0a0a0c; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #d2d2d7; --faint: #b0b0b5; --line: rgba(255, 255, 255, 0.3); }
}
