/* ═══════════════════════════════════════════
   NEXUS CAPA 4 — Landing Page
   Dark tech · cyan/blue accents
   ═══════════════════════════════════════════ */

:root {
  --bg: #05080f;
  --bg-alt: #070c16;
  --surface: rgba(13, 22, 38, 0.65);
  --surface-hover: rgba(20, 32, 54, 0.8);
  --border: rgba(34, 211, 238, 0.14);
  --border-strong: rgba(34, 211, 238, 0.4);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --text: #e6edf7;
  --muted: #8b9bb4;
  --grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 60%, #818cf8 100%);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #16233b; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #1f3355; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); }

.mono { font-family: var(--font-mono); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.accent-text { color: var(--cyan); }

/* ── Botones ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #04101c;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 34px rgba(34, 211, 238, 0.45);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(34, 211, 238, 0.04);
}
.btn-ghost:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(4, 16, 28, 0.3);
  border-top-color: #04101c;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.contact-form.is-loading .btn-spinner { display: inline-block; }
.contact-form.is-loading .btn svg { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navbar ──────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 8, 15, 0.9);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 4px 12px;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12), inset 0 0 14px rgba(34, 211, 238, 0.06);
}

.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.logo-text {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.logo-text strong { color: var(--text); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(34, 211, 238, 0.07); }
.nav-link.active { color: var(--cyan); }

.btn-nav {
  background: var(--grad);
  color: #04101c !important;
  font-weight: 600;
  margin-left: 8px;
}
.btn-nav:hover { box-shadow: 0 4px 22px rgba(34, 211, 238, 0.4); background: var(--grad); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 56px) 0 0;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: drift 14s ease-in-out infinite alternate;
}
.glow-1 { width: 560px; height: 560px; background: #0e7490; top: -180px; right: -120px; }
.glow-2 { width: 480px; height: 480px; background: #1d4ed8; bottom: -160px; left: -140px; animation-delay: -7s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 40px) scale(1.15); }
}

.hero-content { text-align: center; padding-bottom: 64px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.05);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.pulse-dot-sm { width: 6px; height: 6px; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.hero-sub strong { color: var(--text); }
.hero-sub .mono { color: var(--cyan); font-size: 0.95em; }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.stat {
  padding: 22px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Marquee tecnologías ─────────────────── */
.tech-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 12, 22, 0.7);
  padding: 18px 0;
  overflow: hidden;
}

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: scroll-x 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.2s;
}
.marquee-track span:hover { color: var(--cyan); }
.marquee-track i { color: rgba(34, 211, 238, 0.35); font-size: 0.6rem; font-style: normal; }

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Secciones ───────────────────────────── */
.section { padding: 110px 0; scroll-margin-top: var(--nav-h); }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }

.kicker {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  opacity: 0.9;
}

.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ── Cards de servicios ──────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  padding: 34px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 211, 238, 0.07);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  margin-bottom: 22px;
  transition: var(--transition);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon {
  background: var(--grad);
  color: #04101c;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.45);
}

.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 18px; }

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ── Nosotros ────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 22px; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text strong { color: var(--text); }

.check-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.85rem;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}

/* Panel OSI */
.osi-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.osi-header {
  padding: 14px 20px;
  background: rgba(5, 8, 15, 0.8);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.osi-stack { padding: 20px; display: grid; gap: 8px; }

.osi-layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 8, 15, 0.5);
  font-size: 0.9rem;
  color: var(--muted);
  transition: var(--transition);
}

.osi-n {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(139, 155, 180, 0.1);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.osi-active {
  border-color: var(--border-strong);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12), inset 0 0 18px rgba(34, 211, 238, 0.05);
  animation: layer-glow 3s ease-in-out infinite;
}
.osi-active .osi-n {
  background: var(--grad);
  color: #04101c;
  border-color: transparent;
}

@keyframes layer-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(34, 211, 238, 0.1), inset 0 0 14px rgba(34, 211, 238, 0.04); }
  50%      { box-shadow: 0 0 30px rgba(34, 211, 238, 0.22), inset 0 0 20px rgba(34, 211, 238, 0.08); }
}

.osi-tag {
  margin-left: auto;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
}

.osi-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 15, 0.8);
  font-size: 0.74rem;
  flex-wrap: wrap;
}
.term-line { color: var(--muted); }
.term-ok { color: #34d399; }

/* ── Proceso ─────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

/* Línea conectora entre pasos */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -22px;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.step-num {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ── Pricing (modelo por inventario) ─────── */
.pricing-table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pricing-table thead {
  background: rgba(34, 211, 238, 0.05);
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  padding: 16px 24px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr { transition: var(--transition); }
.pricing-table tbody tr:hover { background: rgba(34, 211, 238, 0.03); }

.pricing-device { display: flex; align-items: center; gap: 16px; }

.pricing-device-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border);
  color: var(--cyan);
}
.pricing-device-icon svg { width: 22px; height: 22px; }

.pricing-device strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.pricing-device span { font-size: 0.8rem; color: var(--muted); }

.pricing-range {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.pricing-range small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  margin-top: 2px;
}

/* Hora técnica presencial */
.field-hour-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.field-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border);
  color: var(--cyan);
}
.field-icon svg { width: 22px; height: 22px; }

.field-info strong { display: block; font-family: var(--font-head); font-size: 1rem; margin-bottom: 3px; }
.field-info span { font-size: 0.85rem; color: var(--muted); }

.field-price {
  margin-left: auto;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
  text-align: right;
}
.field-price small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); }

/* Cotizador instantáneo */
.calculator {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 32px;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.08);
}

.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.calc-head h3 { font-size: 1.3rem; }
.calc-head > span { color: var(--muted); font-size: 0.75rem; }

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.calc-label { font-size: 0.95rem; }
.calc-label em { font-style: normal; color: var(--muted); font-size: 0.78rem; margin-left: 6px; }

.stepper { display: flex; align-items: center; gap: 10px; }

.step-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(34, 211, 238, 0.06);
  color: var(--cyan);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.step-btn:hover { background: var(--grad); color: #04101c; border-color: transparent; }

.calc-input {
  width: 64px;
  text-align: center;
  background: rgba(5, 8, 15, 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  appearance: textfield;
  -moz-appearance: textfield;
}
.calc-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12); }
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}
.calc-total > span:first-child { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }

.calc-total-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pricing-note {
  text-align: center;
  padding: 24px;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pricing-note p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.pricing-note a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.pricing-note a:hover { text-decoration: underline; }

/* ── FAQ ─────────────────────────────────── */
.faq-list { display: grid; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-hover); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 0.93rem; }

/* ── Contacto ────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { margin-bottom: 18px; display: flex; flex-direction: column; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(5, 8, 15, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.93rem;
  transition: var(--transition);
  resize: vertical;
}

.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9bb4' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: #4a5a75; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.form-status {
  margin-top: 14px;
  font-size: 0.8rem;
  min-height: 1.2em;
  text-align: center;
  color: #34d399;
}
.form-status.error { color: #f87171; }

.consent-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.consent-field input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--cyan);
}
.consent-field a { color: var(--cyan); }
.form-status.loading { color: var(--muted); }
.form-status.success {
  color: #34d399;
  animation: status-in 0.35s ease-out;
}
.form-status.success::before {
  content: '✔';
  display: inline-block;
  margin-right: 8px;
  animation: check-in 0.45s ease-out;
}

@keyframes status-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes check-in {
  0% { opacity: 0; transform: scale(0.4); }
  60% { transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

.contact-form.is-sent .cf-turnstile,
.contact-form.is-sent button[type="submit"] { display: none; }

/* Honeypot: fuera de pantalla, invisible para personas */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin: 4px 0 14px; }

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-info { display: grid; gap: 14px; }

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

a.info-card:hover {
  border-color: var(--border-strong);
  transform: translateX(5px);
  background: var(--surface-hover);
}

.info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border);
  color: var(--cyan);
}
.info-icon svg { width: 20px; height: 20px; }

.info-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2px;
}
.info-value { font-size: 0.92rem; font-weight: 500; line-height: 1.4; }

.info-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.info-actions a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}
.info-actions a:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

/* ── Footer ──────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(3, 6, 12, 0.9);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 18px; max-width: 340px; }

.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links h4, .footer-social h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--text); padding-left: 5px; }

.social-row { display: flex; gap: 10px; }

.social-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: var(--transition);
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover {
  color: var(--cyan);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.15);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-status { display: inline-flex; align-items: center; gap: 8px; color: #34d399; }

/* ── Botón flotante WhatsApp ─────────────── */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #04120a;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: var(--transition);
  animation: float-y 3.5s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6); }

@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}

/* ── Animaciones de aparición ────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .step:not(:last-child)::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .field-hour-strip { flex-wrap: wrap; }
  .field-price { margin-left: 0; }
  .calc-row { flex-wrap: wrap; gap: 12px; }
  .calculator { padding: 24px 20px; }
  .pricing-table th, .pricing-table td { padding: 14px 16px; }
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    background: rgba(4, 7, 13, 0.97);
    backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.15rem; padding: 12px 24px; }
  .btn-nav { margin-left: 0; margin-top: 10px; }

  .section { padding: 80px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px; }
  .osi-tag { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .logo-text { display: none; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
