/* ============================================================
   SOPORTEK · 2026 — Sistema de diseño
   Paleta extraída del logo: azul cobalto + champagne dorado + perla
   Hoja de estilos compartida por todo el sitio multi-página.
   ============================================================ */
:root {
  /* Brand */
  --ink:           #0b1430;
  --navy:          #16275c;
  --navy-deep:     #0e1c45;
  --navy-soft:     #2a3d7a;
  --cobalt:        #3a5cc7;
  --gold:          #c9a96a;
  --gold-bright:   #e0c486;
  --gold-deep:     #a58543;
  --pearl:         #f5f1e8;
  --cream:         #faf7f0;
  --paper:         #ffffff;
  --line:          rgba(22, 39, 92, 0.10);
  --line-strong:   rgba(22, 39, 92, 0.18);
  --muted:         #5a6885;
  --danger:        #c0392b;
  --success:       #2d7a4d;

  /* Tipografía */
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1280px;
  --radius: 18px;
  --radius-sm: 10px;

  /* Sombras refinadas */
  --shadow-sm: 0 1px 2px rgba(11, 20, 48, 0.04), 0 2px 8px rgba(11, 20, 48, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 20, 48, 0.06), 0 12px 36px rgba(11, 20, 48, 0.08);
  --shadow-lg: 0 12px 28px rgba(11, 20, 48, 0.08), 0 32px 80px rgba(11, 20, 48, 0.14);

  /* Easing */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Las anclas (#tecnologias, #soporte, etc.) no quedan ocultas bajo el header fijo */
section[id], article[id] { scroll-margin-top: 104px; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--navy); color: var(--gold-bright); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 400; }
h2 em { font-style: italic; color: var(--navy); font-weight: 400; }
h3 { font-size: 1.5rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

/* ============================================================
   LOGO (imagen — header, footer y drawer)
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  transition: transform .4s var(--ease);
}
.brand-img {
  height: 50px;
  width: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(11, 20, 48, 0.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.brand:hover .brand-img {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 20, 48, 0.12);
}
/* Variante para fondos oscuros (footer / drawer): borde dorado sutil */
.brand-img--footer {
  box-shadow: 0 0 0 1px rgba(201, 169, 106, 0.28), 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar .pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #65d68f;
  box-shadow: 0 0 0 0 rgba(101, 214, 143, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(101, 214, 143, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(101, 214, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(101, 214, 143, 0); }
}
.topbar-links { display: flex; gap: 22px; opacity: 0.85; align-items: center; }
.topbar-links a:hover { color: var(--gold-bright); }

/* ============================================================
   HEADER + NAV
   ============================================================ */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease), box-shadow .3s var(--ease);
}
header.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding .3s var(--ease);
}
header.nav.scrolled .nav-inner { padding-top: 11px; padding-bottom: 11px; }

nav.menu ul {
  display: flex;
  gap: 38px;
  list-style: none;
}
nav.menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
nav.menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
nav.menu a:hover::after,
nav.menu a.active::after { width: 100%; }
nav.menu a:hover { color: var(--navy); }
nav.menu a.active { color: var(--navy); font-weight: 600; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform .3s var(--ease), background .3s;
}
.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }
.nav-cta svg { transition: transform .3s var(--ease); }
.nav-cta:hover svg { transform: translateX(3px); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--cream);
  place-items: center;
}
.menu-toggle .bars { position: relative; width: 20px; height: 14px; }
.menu-toggle .bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 48, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 380px);
  background: var(--ink);
  color: var(--cream);
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 24px 28px 32px;
  overflow-y: auto;
}
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer.open .drawer__backdrop { opacity: 1; }
.drawer.open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}
.drawer__close {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: background .2s;
}
.drawer__close:hover { background: rgba(201, 169, 106, 0.18); }
.drawer__nav { list-style: none; margin-top: 12px; }
.drawer__nav li { border-bottom: 1px solid rgba(245, 241, 232, 0.08); }
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--cream);
  transition: color .2s, padding .25s var(--ease);
}
.drawer__nav a::after {
  content: '→';
  font-family: var(--body);
  font-size: 1rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .25s var(--ease);
}
.drawer__nav a:hover,
.drawer__nav a.active { color: var(--gold-bright); padding-left: 10px; }
.drawer__nav a:hover::after,
.drawer__nav a.active::after { opacity: 1; transform: translateX(0); }
.drawer__foot { margin-top: auto; padding-top: 28px; }
.drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
}
.drawer__contact {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(245, 241, 232, 0.7);
}
.drawer__contact a:hover { color: var(--gold-bright); }

body.no-scroll { overflow: hidden; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .35s var(--ease);
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary svg { transition: transform .3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  color: var(--navy-deep);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(22, 39, 92, 0.04);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-gold svg { transition: transform .3s var(--ease); }
.btn-gold:hover svg { transform: translateX(4px); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--pearl) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 30%, rgba(201, 169, 106, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(58, 92, 199, 0.06), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /><feColorMatrix values='0 0 0 0 0.08, 0 0 0 0 0.10, 0 0 0 0 0.18, 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--navy-deep);
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--navy); font-weight: 400; position: relative; }
.hero h1 .underline {
  background-image: linear-gradient(120deg, var(--gold) 0%, var(--gold-bright) 100%);
  background-repeat: no-repeat;
  background-size: 100% 8px;
  background-position: 0 90%;
  padding-bottom: 2px;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Trust strip */
.trust-strip {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-num {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--navy-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num sup {
  font-size: 1rem;
  color: var(--gold-deep);
  font-weight: 500;
  margin-left: 2px;
  top: -0.8em;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero visual — dashboard card */
.hero-visual { position: relative; }
.dashboard-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold));
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.dash-title { font-family: var(--display); font-size: 1.15rem; color: var(--navy-deep); }
.dash-sub {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; margin-top: 4px;
}
.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(76, 175, 110, 0.12);
  color: #2d7a4d;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}
.dash-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4caf6e;
  animation: pulse 2s infinite;
}
.dash-metric {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dash-metric:last-child { border-bottom: none; }
.metric-label { font-size: 0.88rem; color: var(--muted); }
.metric-value {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-deep);
}
.metric-bar {
  margin-top: 4px;
  width: 80px;
  height: 4px;
  background: rgba(22, 39, 92, 0.08);
  border-radius: 100px;
  overflow: hidden;
}
.metric-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--cobalt));
  border-radius: 100px;
  transform-origin: left;
  animation: barFill 1.6s var(--ease) forwards;
}
@keyframes barFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.floating-badge {
  position: absolute;
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.floating-badge.uptime { bottom: -24px; left: -30px; animation: float 6s ease-in-out infinite; }
.floating-badge.response { top: 30px; right: -36px; animation: float 6s ease-in-out infinite 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  display: grid;
  place-items: center;
  color: var(--gold-bright);
}
.badge-text strong {
  font-family: var(--display);
  color: var(--navy-deep);
  font-size: 1.1rem;
  font-weight: 400;
}
.badge-text span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   PAGE HEADER (páginas interiores)
   ============================================================ */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--pearl) 100%);
  border-bottom: 1px solid var(--line);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(201, 169, 106, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(58, 92, 199, 0.07), transparent 60%);
  pointer-events: none;
}
.page-header__inner { position: relative; max-width: 760px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--navy-deep); }
.page-header h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  font-weight: 400;
  color: var(--navy-deep);
  letter-spacing: -0.025em;
  margin: 18px 0 22px;
}
.page-header h1 em { font-style: italic; color: var(--navy); }
.page-header p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ============================================================
   CLIENTS LOGO STRIP
   ============================================================ */
.clients {
  padding: 56px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.clients-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 220px;
}
.clients-logos {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: center;
}
.client-logo {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--navy);
  opacity: 0.55;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: opacity .3s;
}
.client-logo:hover { opacity: 1; }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: 120px 0; }
.section--tight { padding: 88px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
}
.section-head h2 { margin-top: 18px; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width .5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(22, 39, 92, 0.18);
  flex-shrink: 0;
}
.service-card h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--navy-deep);
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-card ul {
  list-style: none;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.service-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--ink);
}
.service-card li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.service-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

/* Servicio en detalle (página servicios) */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }
.service-detail--flip .service-detail__media { order: 2; }
.service-detail__media {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--cream);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.service-detail__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><defs><pattern id='g' width='38' height='38' patternUnits='userSpaceOnUse'><path d='M 38 0 L 0 0 0 38' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/></pattern></defs><rect width='400' height='400' fill='url(%23g)'/></svg>");
  pointer-events: none;
}
.service-detail__media .num {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 4.5rem;
  font-style: italic;
  color: var(--gold-bright);
  line-height: 1;
}
.service-detail__media .glyph {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  border-radius: 14px;
  background: rgba(201, 169, 106, 0.16);
  border: 1px solid rgba(201, 169, 106, 0.3);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
}
.service-detail__media .cap {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.65);
}
.service-detail h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--navy-deep);
  margin-bottom: 16px;
}
.service-detail > div:last-child > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink);
}
.feature-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-deep); }

/* ============================================================
   PROCESO
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
  padding: 32px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.process-step .step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.process-step h4 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 14px 0 10px;
  color: var(--navy-deep);
}
.process-step p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.about {
  background: linear-gradient(180deg, var(--pearl) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 106, 0.08), transparent 70%);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 40px;
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.about-visual::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(201, 169, 106, 0.18), transparent 60%);
  pointer-events: none;
}
.about-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><defs><pattern id='g' width='40' height='40' patternUnits='userSpaceOnUse'><path d='M 40 0 L 0 0 0 40' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/></pattern></defs><rect width='400' height='400' fill='url(%23g)'/></svg>");
  pointer-events: none;
}
.about-quote {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 32px;
  color: var(--cream);
}
.about-quote::before {
  content: '\201C';
  font-family: var(--display);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: -20px;
}
.about-signature {
  position: relative;
  z-index: 2;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 241, 232, 0.2);
  margin-top: auto;
}
.about-signature strong {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold-bright);
  display: block;
}
.about-signature span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.7);
}
.about-visual .corner {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
}
.about-visual .corner strong {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.about-content h2 { margin-bottom: 28px; }
.about-content > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.values-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.value-item h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.value-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold-deep);
  font-weight: 500;
}
.value-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 24px;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(201,169,106,0.15));
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--gold);
}
.timeline-year {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}
.timeline-item h4 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 6px 0 8px;
  color: var(--navy-deep);
}
.timeline-item p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ============================================================
   PLANES
   ============================================================ */
.plans {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.plans::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 169, 106, 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(58, 92, 199, 0.10), transparent 50%);
  pointer-events: none;
}
.plans h2 { color: var(--cream); }
.plans h2 em { color: var(--gold-bright); }
.plans .section-head p { color: rgba(245, 241, 232, 0.65); }
.plans .eyebrow { color: var(--gold-bright); }
.plans .eyebrow::before { background: var(--gold); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  align-items: start;
}
.plan-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(12px);
  transition: all .4s var(--ease);
  position: relative;
}
.plan-card.featured {
  background: linear-gradient(180deg, rgba(201, 169, 106, 0.10) 0%, rgba(201, 169, 106, 0.02) 100%);
  border-color: rgba(201, 169, 106, 0.35);
  transform: scale(1.02);
}
.plan-card.featured::before {
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 106, 0.4);
}
.plan-card.featured:hover { transform: translateY(-4px) scale(1.02); }
.plan-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-bright);
  margin-bottom: 8px;
  font-style: italic;
}
.plan-tag {
  font-size: 0.88rem;
  color: rgba(245, 241, 232, 0.6);
  margin-bottom: 28px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.plan-price strong {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-price span {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(245, 241, 232, 0.5);
}
.plan-features { list-style: none; margin-bottom: 32px; }
.plan-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.85);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(201, 169, 106, 0.15);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5l3 3 6-7' stroke='%23c9a96a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}
.plan-cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .3s var(--ease);
  border: 1.5px solid rgba(245, 241, 232, 0.2);
  color: var(--cream);
}
.plan-cta:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201, 169, 106, 0.08);
}
.plan-card.featured .plan-cta {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.plan-card.featured .plan-cta:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--ink);
}

/* Tabla comparativa */
.compare-wrap { margin-top: 24px; overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.compare th, .compare td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.compare th {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--navy-deep);
}
.compare thead th { border-bottom: 2px solid var(--line-strong); }
.compare td:first-child, .compare th:first-child {
  text-align: left;
  color: var(--ink);
  font-weight: 500;
}
.compare td { color: var(--muted); }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: var(--line-strong); }
.compare tbody tr:hover { background: rgba(201, 169, 106, 0.05); }
.compare .col-featured { background: rgba(201, 169, 106, 0.07); }

/* ============================================================
   FAQ (acordeón nativo)
   ============================================================ */
.faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--navy-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.faq-item[open] summary .ico {
  transform: rotate(45deg);
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}
.faq-item .faq-body {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============================================================
   TECNOLOGÍAS
   ============================================================ */
.tech { background: var(--cream); }
.tech-marquee {
  margin-top: 60px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}
.tech-track {
  display: flex;
  gap: 56px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.tech-item {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--navy-deep);
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0.5;
  display: flex;
  align-items: center;
  gap: 56px;
}
.tech-item::after { content: '\2726'; color: var(--gold); font-size: 0.7rem; opacity: 0.5; }
.tech-item:hover { opacity: 1; color: var(--navy); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--paper); }
.cta-card {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  border-radius: 32px;
  padding: 72px 60px;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201, 169, 106, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-card .eyebrow { color: var(--gold-bright); justify-content: center; }
.cta-card .eyebrow::before { background: var(--gold); }
.cta-card h2 { color: var(--cream); margin: 18px 0 16px; }
.cta-card h2 em { color: var(--gold-bright); }
.cta-card p {
  color: rgba(245, 241, 232, 0.75);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
}
.cta-card .hero-cta-row { justify-content: center; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--paper); }
.contact-card {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  border-radius: 32px;
  padding: 64px 56px;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201, 169, 106, 0.25), transparent 60%);
  pointer-events: none;
}
.contact-card::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 60%;
  height: 200px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' fill='none'><path d='M 20 180 Q 300 -40 580 180' stroke='url(%23g)' stroke-width='3' fill='none' opacity='0.4'/><defs><linearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='0%25'><stop offset='0%25' stop-color='%23c9a96a' stop-opacity='0'/><stop offset='50%25' stop-color='%23e0c486' stop-opacity='1'/><stop offset='100%25' stop-color='%23c9a96a' stop-opacity='0'/></linearGradient></defs></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-card h2 { color: var(--cream); }
.contact-card h2 em { color: var(--gold-bright); }
.contact-card .eyebrow { color: var(--gold-bright); }
.contact-card .eyebrow::before { background: var(--gold); }
.contact-intro p {
  color: rgba(245, 241, 232, 0.75);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 22px 0 32px;
  max-width: 460px;
}
.contact-channels { display: grid; gap: 14px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: all .3s var(--ease);
}
a.contact-channel:hover {
  background: rgba(201, 169, 106, 0.08);
  border-color: rgba(201, 169, 106, 0.4);
  transform: translateX(6px);
}
.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.channel-info span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
  margin-bottom: 4px;
}
.channel-info strong {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
}

/* ============================================================
   FORMULARIO
   ============================================================ */
.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px;
}
.contact-form { display: grid; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: grid; gap: 7px; }
.form-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-deep);
  font-weight: 500;
}
.form-field label .req { color: var(--gold-deep); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'><path d='M3 5l4 4 4-4' stroke='%235a6885' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9aa4ba; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(22, 39, 92, 0.08);
}
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: var(--danger);
  background: rgba(192, 57, 43, 0.04);
}
.form-field.invalid input:focus,
.form-field.invalid select:focus,
.form-field.invalid textarea:focus {
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.10);
}
.field-error {
  font-size: 0.78rem;
  color: var(--danger);
  display: none;
  align-items: center;
  gap: 5px;
}
.form-field.invalid .field-error { display: flex; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.form-consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: var(--shadow-md);
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.form-submit:hover:not(:disabled) {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.form-submit .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--cream);
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.form-submit.loading .spinner { display: block; }
.form-submit.loading .label,
.form-submit.loading svg.arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-status.show { display: block; }
.form-status.error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  color: var(--danger);
}
.form-status.ok {
  background: rgba(45, 122, 77, 0.08);
  border: 1px solid rgba(45, 122, 77, 0.25);
  color: var(--success);
}
.form-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

/* Bloque de info de contacto (página contacto) */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.info-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.info-tile .info-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.info-tile h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.info-tile p, .info-tile a {
  font-size: 1rem;
  color: var(--navy-deep);
  font-weight: 500;
  line-height: 1.5;
}
.info-tile a:hover { color: var(--cobalt); }
.info-tile small {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

/* ============================================================
   GRACIAS
   ============================================================ */
.thanks {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cream), var(--pearl));
  position: relative;
  overflow: hidden;
}
.thanks::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 45% at 50% 28%, rgba(201,169,106,0.16), transparent 65%);
  pointer-events: none;
}
.thanks-inner { position: relative; max-width: 620px; }
.thanks-check {
  width: 92px; height: 92px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  box-shadow: 0 16px 40px rgba(22, 39, 92, 0.28);
  position: relative;
}
.thanks-check::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 169, 106, 0.4);
  animation: pulse-ring 2.4s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}
.thanks h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--navy-deep);
  margin-bottom: 18px;
}
.thanks h1 em { font-style: italic; color: var(--navy); }
.thanks p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.thanks-next {
  margin: 36px 0;
  padding: 26px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}
.thanks-next h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.thanks-next ol { padding-left: 20px; display: grid; gap: 8px; }
.thanks-next li { color: var(--ink); font-size: 0.95rem; }
.thanks-next li::marker { color: var(--gold-deep); font-family: var(--mono); }
.thanks .hero-cta-row { justify-content: center; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0;
  background: #25d366;
  color: #fff;
  border-radius: 100px;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.42);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(37, 211, 102, 0.5); }
.wa-float .wa-ico {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wa-float .wa-label {
  max-width: 0;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  transition: max-width .4s var(--ease), padding .4s var(--ease);
}
.wa-float:hover .wa-label { max-width: 200px; padding-right: 22px; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: pulse-ring 2.6s var(--ease) infinite;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.65);
  line-height: 1.6;
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: rgba(245, 241, 232, 0.75);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; color: rgba(245, 241, 232, 0.7); }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 232, 0.5);
}
.footer-bottom a:hover { color: var(--gold-bright); }

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  /* Solo se neutraliza la aparición progresiva al hacer scroll.
     El carrusel de tecnologías y demás animaciones decorativas se mantienen. */
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .services-grid, .plans-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-info-grid { grid-template-columns: 1fr 1fr; }
  .floating-badge.uptime { left: 0; }
  .floating-badge.response { right: 0; }
  .section-head { grid-template-columns: 1fr; gap: 28px; }
  .service-detail { grid-template-columns: 1fr; gap: 36px; }
  .service-detail--flip .service-detail__media { order: 0; }
  .service-detail__media { aspect-ratio: 16/9; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .topbar-inner { padding: 8px 20px; }
  .topbar-links { display: none; }
  nav.menu { display: none; }
  .menu-toggle { display: grid; }
  .nav-cta { display: none; }
  .hero { padding: 60px 0 64px; }
  .section { padding: 76px 0; }
  .section--tight { padding: 60px 0; }
  .page-header { padding: 56px 0 52px; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .services-grid, .plans-grid, .values-grid, .footer-grid,
  .process-grid, .contact-info-grid, .form-row { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-4px); }
  .contact-card { padding: 44px 24px; }
  .cta-card { padding: 52px 26px; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .clients-inner { justify-content: center; text-align: center; gap: 28px; }
  .clients-logos { gap: 30px; justify-content: center; }
  .clients-label { max-width: none; }
  .floating-badge.uptime { left: 12px; bottom: -18px; }
  .floating-badge.response { right: 12px; top: 18px; }
  .about-visual { padding: 28px; }
  .about-quote { font-size: 1.25rem; }
  .brand-img { height: 42px; }
  .wa-float .wa-label { display: none; }
}
@media (max-width: 420px) {
  .floating-badge { display: none; }
  .hero h1 { font-size: 2.5rem; }
}

/* ============================================================
   BUSCADOR DEL SITIO
   ============================================================ */
.search-btn {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--navy-deep);
  background: transparent;
  border: 1.5px solid var(--line-strong);
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
  flex-shrink: 0;
}
.search-btn:hover {
  border-color: var(--navy);
  background: rgba(22, 39, 92, 0.05);
  color: var(--navy);
  transform: translateY(-1px);
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}
.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 48, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.search-modal__panel {
  position: absolute;
  left: 50%;
  top: 84px;
  transform: translate(-50%, -14px);
  width: min(92vw, 640px);
  max-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.search-modal.open { visibility: visible; pointer-events: auto; }
.search-modal.open .search-modal__backdrop { opacity: 1; }
.search-modal.open .search-modal__panel { opacity: 1; transform: translate(-50%, 0); }

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.search-box > svg { color: var(--muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
}
.search-input::placeholder { color: #9aa4ba; }
.search-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.search-close:hover { background: rgba(22, 39, 92, 0.07); color: var(--navy); }

.search-hint {
  padding: 13px 20px 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-results { overflow-y: auto; padding: 6px 8px 10px; }
.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  transition: background .15s;
}
.search-result:hover,
.search-result.active { background: rgba(22, 39, 92, 0.06); }
.search-result__body { flex: 1; min-width: 0; }
.search-result__title {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-deep);
}
.search-result__desc {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result__tag {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(201, 169, 106, 0.14);
  padding: 4px 10px;
  border-radius: 100px;
}
.search-empty {
  padding: 38px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  .search-modal__panel { top: 62px; width: 94vw; max-height: calc(100vh - 100px); }
  .search-result__desc { white-space: normal; }
}
