/* =========================================================
   AmityLabs — design system
   ========================================================= */
/* La fuente Inter se carga con <link> en includes/header.php (más rápido que @import). */

:root {
  /* brand colors (from logo: navy / bright blue / slate) */
  --navy-900: #0a1638;
  --navy-800: #0e1d47;
  --navy-700: #142a5e;
  --blue-600: #1e5eff;
  --blue-500: #3b7bff;
  --blue-400: #6d9dff;
  --slate-500: #8791a3;
  --slate-300: #c3c9d4;
  --slate-100: #eef1f6;
  --white: #ffffff;
  --ink: #10162b;
  --paragraph: #4b5468;

  --gradient-hero: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 130%);
  --gradient-accent: linear-gradient(135deg, var(--blue-600), var(--blue-400));

  --radius-s: 10px;
  --radius-m: 12px;
  --radius-l: 15px;
  --radius-full: 500px;

  --shadow-card: 0 2px 8px rgba(10, 22, 56, 0.12);
  --shadow-card-hover: 0 8px 24px rgba(10, 22, 56, 0.18);
  --shadow-header: 0 4px 20px rgba(10, 22, 56, 0.07);

  --container: 1300px;
  --gap: clamp(1.25rem, 2vw, 2rem);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; color: var(--paragraph); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-accent); color: var(--white); box-shadow: 0 10px 24px rgba(30, 94, 255, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 94, 255, 0.36); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.btn-outline { background: transparent; color: var(--navy-900); border: 1.5px solid var(--slate-300); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-block { width: 100%; }

/* ---------- header (floating rounded pill: transparent at top, solid on scroll/hover/open dropdown) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: 14px;
  z-index: 500;
}
/* top bar: contacto + acceso clientes; se pliega al hacer scroll para dejar solo el pill */
.topbar {
  max-height: 44px;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  transition: max-height .2s ease, margin-bottom .2s ease, opacity .2s ease;
}
.site-header--scrolled .topbar { max-height: 0; margin-bottom: 0; opacity: 0; pointer-events: none; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 4px; padding-bottom: 4px; }
.topbar__contact { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: inherit; font-weight: 500; white-space: nowrap; }
.topbar__contact a:hover { color: var(--white); text-decoration: underline; }
.topbar a.topbar__client {
  padding: 5px 14px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: var(--radius-full);
  font-weight: 700; color: var(--white); transition: background-color .15s ease, border-color .15s ease;
}
.topbar a.topbar__client:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); text-decoration: none; }
/* selector de idioma: banderas a la izquierda de "Acceso Clientes"; el idioma actual va resaltado y subrayado */
.lang-switch { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-switch .lang-switch__link {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 3px 5px; border-radius: 4px; opacity: .55; transition: opacity .15s ease;
}
.lang-switch__link .flag {
  display: block; flex-shrink: 0; width: 22px; height: 15px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.45);
}
.lang-switch .lang-switch__link:hover { opacity: .9; }
.lang-switch .lang-switch__link[aria-current="true"] { opacity: 1; }
.lang-switch .lang-switch__link[aria-current="true"]::after {
  content: ""; position: absolute; left: 3px; right: 3px; bottom: 0; height: 2px; border-radius: 2px; background: var(--white);
}
.lang-switch .lang-switch__link:focus-visible { opacity: 1; outline: 2px solid var(--blue-400); outline-offset: 1px; }
/* en el menú móvil: fila con bandera + nombre del idioma */
.lang-switch--mobile { margin: 22px 0 0; gap: 10px; }
.lang-switch--mobile .lang-switch__link {
  flex: 1; justify-content: center; padding: 12px 14px; border-radius: var(--radius-m);
  background: rgba(255,255,255,0.05); font-weight: 600; opacity: .7;
}
.lang-switch--mobile .lang-switch__link[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--blue-400); }
.lang-switch--mobile .lang-switch__link[aria-current="true"]::after { display: none; }
.lang-switch--mobile .lang-switch__link:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 900px) { .topbar__mail { display: none; } }
@media (max-width: 560px) { .topbar__label { display: none; } .topbar__contact { gap: 16px; } }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
  box-shadow: none;
  padding: 16px 20px 16px 34px;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.site-header--solid .site-header__inner {
  background: var(--white);
  box-shadow: var(--shadow-header);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
}
.logo img { display: block; height: 38px; width: auto; }
.logo .logo-img--solid { display: none; }
.site-header--solid .logo .logo-img--transparent { display: none; }
.site-header--solid .logo .logo-img--solid { display: block; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 12px 18px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color .15s ease, color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.nav-link:hover { background: rgba(255,255,255,0.12); }
.site-header--solid .nav-link { color: var(--navy-900); }
.site-header--solid .nav-link:hover { background: var(--slate-100); color: var(--blue-600); }
.nav-link .chev { font-size: 0.65em; transition: transform .2s ease; }
.has-dropdown[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-item { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(10,22,56,0.06);
  border-radius: var(--radius-m);
  box-shadow: 0 20px 50px rgba(10,22,56,0.16);
  padding: 10px;
  min-width: 300px;
  z-index: 50;
}
/* puente invisible que cubre el hueco entre el link y el panel,
   para que el desplegable no se cierre al mover el mouse hacia él */
.dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -18px;
  height: 18px;
}
.dropdown-panel[hidden] { display: none; }
.dropdown-panel a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  color: var(--navy-900);
  transition: background-color .15s ease;
}
.dropdown-panel a:hover { background: var(--slate-100); }
.dropdown-panel a .dd-icon {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--slate-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background-color .15s ease, color .15s ease;
}
.dropdown-panel a:hover .dd-icon { background: var(--gradient-accent); color: var(--white); }
.dropdown-panel a .dd-icon .ico { width: 18px; height: 18px; display: block; }
.mobile-menu__link .ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 10px; }
.dropdown-panel a strong { display: block; font-size: 0.92rem; font-weight: 700; }
.dropdown-panel a span { font-size: 0.8rem; color: var(--slate-500); }

.site-header__actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--white);
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.12); }
.site-header--solid .icon-btn { color: var(--navy-900); }
.site-header--solid .icon-btn:hover { background: var(--slate-100); }
.site-header__actions .btn-primary { padding: 11px 18px 11px 22px; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.4);
  background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px;
  position: relative;
  transition: background-color .15s ease;
}
.site-header--solid .menu-toggle { border-color: var(--slate-300); }
.site-header--solid .menu-toggle span,
.site-header--solid .menu-toggle::before,
.site-header--solid .menu-toggle::after { background: var(--navy-900); }
.menu-toggle::before { position: absolute; transform: translateY(-6px); }
.menu-toggle::after { position: absolute; transform: translateY(6px); }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 900;
  background: var(--navy-900);
  color: var(--white);
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(1.25rem, 4vw, 2.5rem);
}
.mobile-menu__close {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.3); background: transparent; color: var(--white);
  font-size: 1.1rem; cursor: pointer;
}
.mobile-menu__body { padding: 10px clamp(1.25rem, 4vw, 2.5rem) 40px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__group-title { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-400); margin: 18px 0 6px; font-weight: 700; }
.mobile-menu__group-title:hover { color: var(--white); }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: var(--radius-m);
  background: rgba(255,255,255,0.05);
  font-weight: 600;
}
.mobile-menu__link small { display: block; font-weight: 400; color: var(--slate-300); font-size: 0.78rem; margin-top: 2px; }
.mobile-menu__link:hover { background: rgba(255,255,255,0.1); }
.mobile-menu__cta { margin-top: 22px; }

/* ---------- hero ---------- */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 170px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 12% 40%, rgba(255,255,255,0.1), transparent 42%),
                     radial-gradient(circle at 88% 32%, rgba(61,123,255,0.45), transparent 45%),
                     radial-gradient(circle at 60% 100%, rgba(30,94,255,0.25), transparent 50%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__inner { min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin: 18px 0 20px; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.15rem; }
.hero__stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 56px; flex-wrap: wrap; position: relative; }
.hero__stat strong { display: block; font-size: 1.9rem; font-weight: 800; }
.hero__stat span { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.hero__visual { position: relative; }
.hero__illustration,
.page-hero__illustration {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

.page-hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 45%, rgba(61,123,255,0.35), transparent 45%);
  pointer-events: none;
}
.page-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.page-hero__inner { position: relative; max-width: 720px; min-width: 0; }
.page-hero__visual { position: relative; }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__visual { display: none; }
}
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 16px 0 16px; }
.page-hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.05rem; }

/* ---------- legal pages (terms) ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 14px; scroll-margin-top: 110px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 14px; line-height: 1.7; }
.legal ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal li { margin: 0 0 8px; line-height: 1.65; }
.legal strong { color: var(--navy-900); }
.legal ol { margin: 0 0 16px; padding-left: 22px; list-style: decimal; }
.legal a { color: var(--blue-600); font-weight: 600; text-decoration: underline; }
.legal-note { margin: 0 0 16px; padding: 14px 18px; background: var(--slate-100); border-left: 4px solid var(--blue-600); border-radius: var(--radius-s); }
.legal-note p { margin: 0; }
.legal-table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--slate-200, #e2e8f0); border-radius: var(--radius-s); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--slate-200, #e2e8f0); }
.legal-table thead th { background: var(--slate-100, #f1f5f9); color: var(--navy-900); font-weight: 700; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.page-hero--legal { padding-bottom: 56px; }
/* aviso de traducción de cortesía (páginas legales en inglés) */
.legal-courtesy { margin: 0 0 32px; padding: 12px 16px; border: 1px dashed var(--slate-300); border-radius: var(--radius-s); }
.legal .legal-courtesy p { margin: 0; font-size: 0.92rem; line-height: 1.6; }
.legal-courtesy + h2 { margin-top: 0; }
.about-text { max-width: 820px; margin: 0 auto; }
.about-text p { font-size: 1.08rem; line-height: 1.75; margin: 0 0 18px; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- sections ---------- */
section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 14px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.section-alt { background: var(--slate-100); }

.grid {
  display: grid;
  gap: var(--gap);
}
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }   /* minmax(0,…): una tarjeta con texto ancho no empuja a las demás fuera del contenedor */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1180px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10,22,56,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card .icon {
  width: 48px; height: 48px; border-radius: var(--radius-s);
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--blue-600); font-size: 0.9rem; }

/* ---------- pricing ---------- */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-l);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pricing-card.is-featured {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-card-hover);
  position: relative;
}
.pricing-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-accent); color: var(--white);
  font-size: 0.75rem; font-weight: 700; padding: 6px 16px; border-radius: var(--radius-full);
}
.pricing-card__name { font-size: 1.05rem; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .04em; }
.pricing-card__price { font-size: 2.4rem; font-weight: 800; color: var(--navy-900); }
/* en la grilla de 5 planes el precio se adapta al ancho de la tarjeta y «/mes» baja de línea si no cabe */
.grid-5 .pricing-card__price { font-size: clamp(1.6rem, 2.15vw, 2.4rem); line-height: 1.1; overflow-wrap: anywhere; }
.grid-5 .pricing-card__price span { display: inline-block; }
.pricing-card__price span { font-size: 0.95rem; font-weight: 500; color: var(--slate-500); }
.pricing-card__annual { font-size: 0.85rem; color: var(--slate-500); margin-top: -6px; }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 0.92rem;
}
.spec-table th, .spec-table td { padding: 14px 18px; text-align: center; }
.spec-table thead th:first-child,
.spec-table tbody th { text-align: left; }
.spec-table thead th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.spec-table thead th.is-featured { background: var(--blue-600); }
.spec-table tbody th {
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
}
.spec-table tbody td { color: var(--paragraph); }
.spec-table tbody tr + tr th, .spec-table tbody tr + tr td { border-top: 1px solid var(--slate-100); }
.spec-table tbody td.is-featured { background: rgba(30, 94, 255, 0.05); font-weight: 600; color: var(--navy-900); }
.spec-table td.yes { color: var(--blue-600); font-weight: 800; }
.spec-table td.no { color: var(--slate-500); font-weight: 600; }
.spec-table tr.is-price th, .spec-table tr.is-price td { font-weight: 800; color: var(--navy-900); font-size: 1rem; }
.pricing-card ul { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.pricing-card ul li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--paragraph); }
.pricing-card ul li::before { content: "✓"; color: var(--blue-600); font-weight: 800; }
.pricing-note { text-align: center; margin-top: 34px; color: var(--slate-500); font-size: 0.9rem; }
.placeholder-flag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--blue-600);
  background: rgba(30,94,255,0.08); padding: 3px 9px; border-radius: var(--radius-full);
  margin-left: 8px; vertical-align: middle;
}

/* ---------- steps / process ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid var(--slate-300); }
.step:first-child { border-top: none; }
.step__num {
  counter-increment: step;
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--slate-100); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.93rem; }

/* ---------- logos strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; opacity: 0.6; }
.logo-strip span { font-weight: 700; color: var(--slate-500); font-size: 1.05rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-hero);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 56px clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 20%, rgba(61,123,255,0.4), transparent 45%);
  pointer-events: none;
}
.cta-band__text { position: relative; z-index: 1; max-width: 520px; }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: 10px; }
.cta-band__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--gap); padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: rgba(255,255,255,0.55); margin-top: 14px; font-size: 0.92rem; max-width: 260px; }
.footer-brand .logo { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col h4 a:hover { color: var(--blue-400); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ---------- responsive header/menu breakpoint ---------- */
@media (max-width: 940px) {
  .primary-nav, .site-header__actions .icon-btn { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- misc ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 7px 14px; border-radius: var(--radius-full);
  background: var(--slate-100); font-size: 0.85rem; font-weight: 600; color: var(--navy-900);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.stat-block { text-align: center; }
.stat-block strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--navy-900); }
.stat-block span { color: var(--slate-500); font-size: 0.9rem; }

/* ---------- contact form (js/main.js sends it to /contacto.php) ---------- */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.9rem; font-weight: 600; color: var(--paragraph); }
.form-status[data-state="ok"] { color: #0a7a3d; }
.form-status[data-state="error"] { color: #b42318; }

/* ---------- etiquetas «Ideal para agentes de IA» del hero de /vps/ ---------- */
.hero-agents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; font-size: 0.9rem; color: rgba(255,255,255,0.78); }
.hero-agents span { font-weight: 600; }
.hero-agents a {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); font-weight: 700; font-size: 0.85rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.hero-agents a:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.75); }

/* ---------- tarjetas de logos de agentes de IA (/vps/) ---------- */
.agent-card { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 132px; padding: 28px 24px; }
.agent-card img { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.agent-card__name { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-900); line-height: 1; }

/* comparativa: celdas con ✗ (no incluido) */
.spec-table td.no { color: #c0392b; opacity: .75; font-weight: 700; }
.spec-table tbody td.no.is-featured { color: #c0392b; opacity: .75; }   /* la columna destacada también marca las ✗ en rojo */

/* ---------- preguntas frecuentes (acordeón <details>) ---------- */
.faq { width: 100%; display: flex; flex-direction: column; gap: 12px; }   /* ocupa todo el ancho del contenedor: alineado con el título y centrado en la página */
.faq__item { background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 700; color: var(--navy-900); position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--blue-600); line-height: 1;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: var(--radius-m); }
.faq__item p { padding: 0 22px 20px; margin: 0; line-height: 1.7; }
