/* ==========================================================================
   Coonverso — hoja de estilos principal
   Un solo archivo, sin frameworks. Tokens primero, luego componentes.
   ========================================================================== */

:root {
  /* Marca (tomados del logotipo: azul #3B60DD, verde #3BDD86, tinta #222) */
  --brand: #3b60dd;
  --brand-700: #2d4bc0;
  --brand-50: #eef2ff;
  --green: #3bdd86;
  --green-700: #1fae63;
  --green-50: #e9fbf1;

  /* Neutros: azul marino casi negro para fondos oscuros, grises fríos para el resto */
  --ink: #0b1220;
  --ink-2: #111a2e;
  --footer: #070c17;
  --text: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef1f5;

  /* Tipografía */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Forma */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 3px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(11, 18, 32, 0.16);
  --shadow-lg: 0 30px 60px -20px rgba(11, 18, 32, 0.28);
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Utilidades de layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section--tight {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section--surface {
  background: var(--surface);
}

.section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.section-head p {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
}

.section--dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
}

.section--dark .eyebrow {
  color: var(--green);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--brand {
  fill: currentColor;
  stroke: none;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-700);
}

.btn--accent {
  background: var(--green);
  color: var(--ink);
}

.btn--accent:hover {
  background: #4ff09a;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
}

.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 38px;
  width: auto;
}

.brand__light {
  display: none;
}

.site-header[data-variant="hero"]:not(.is-scrolled) .brand__dark {
  display: none;
}

.site-header[data-variant="hero"]:not(.is-scrolled) .brand__light {
  display: block;
}

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

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}

.site-nav__links a:hover {
  text-decoration: none;
  background: var(--surface-2);
  color: var(--brand);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__actions .btn {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.925rem;
}

.site-nav__login {
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  padding: 8px 14px;
}

.site-header.is-scrolled,
.site-header[data-variant="solid"] {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(20, 18, 43, 0.25);
}

/* Variante sobre el hero oscuro (antes de hacer scroll) */
.site-header[data-variant="hero"]:not(.is-scrolled) .site-nav__links a,
.site-header[data-variant="hero"]:not(.is-scrolled) .site-nav__login {
  color: rgba(255, 255, 255, 0.88);
}

.site-header[data-variant="hero"]:not(.is-scrolled) .site-nav__links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.site-header[data-variant="hero"]:not(.is-scrolled) .nav-toggle {
  color: #fff;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, background-color 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, top 0.25s;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(72px, 9vw, 120px);
  color: #fff;
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.hero__badge .pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--green);
}

.hero__lead {
  max-width: 560px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__checks .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.hero__channels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

.hero__channels span:first-child {
  margin-right: 4px;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 500;
}

.channel-chip svg {
  width: 22px;
  height: 22px;
}

/* Visual del hero */
.hero__visual {
  position: relative;
  padding: 24px 0 24px 24px;
}

.device {
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.device__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f2f8;
  border-bottom: 1px solid var(--line);
}

.device__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8dae6;
}

.device__bar span:nth-child(1) {
  background: #ff5f57;
}

.device__bar span:nth-child(2) {
  background: #febc2e;
}

.device__bar span:nth-child(3) {
  background: #28c840;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.float-card span {
  color: var(--muted);
}

.float-card--a {
  top: 2px;
  left: -8px;
  animation-delay: -1s;
}

.float-card--b {
  right: -10px;
  top: 34%;
  animation-delay: -3s;
}

.float-card--c {
  left: 8%;
  bottom: -6px;
  animation-delay: -2s;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand);
}

.float-card__icon--green {
  background: var(--green-50);
  color: var(--green-700);
}

.float-card__icon .icon {
  width: 20px;
  height: 20px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(59, 221, 134, 0.25);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* --------------------------------------------------------------------------
   Logos de clientes
   -------------------------------------------------------------------------- */
.logos {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}

.logos__title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 28px;
}

.logos__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 32px;
  align-items: center;
}

.logos__grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.logos__grid img {
  max-height: 60px;
  width: auto;
  max-width: 160px;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.logos__grid img:hover {
  filter: none;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Métricas
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.stat__value {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.stat__value sup {
  font-size: 0.5em;
  vertical-align: top;
  top: 0.35em;
  position: relative;
  color: var(--brand);
}

.stat__label {
  font-size: 0.925rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Cómo funciona
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Producto (tabs)
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin: 0 auto 40px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--surface-2);
}

.tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.tabs__btn .icon {
  width: 18px;
  height: 18px;
}

.tabs__btn:hover {
  color: var(--ink);
}

.tabs__btn[aria-selected="true"] {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}

.tab-panel > div > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.tab-panel__media {
  position: relative;
}

.tab-panel__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.tab-panel--reverse > div:first-child {
  order: 2;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.975rem;
}

.check-list .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  stroke-width: 3;
}

.section--dark .check-list .icon {
  background: rgba(59, 221, 134, 0.18);
  color: var(--green);
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.channel-row .channel-chip {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Sección IA
   -------------------------------------------------------------------------- */
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.ai-grid__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.ai-grid__media img {
  width: min(100%, 460px);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}

.ai-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  line-height: 1.2;
}

.ai-chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.ai-chip span {
  color: var(--muted);
}

.ai-chip--a {
  left: 0;
  bottom: 14%;
}

.ai-chip--b {
  right: 0;
  top: 14%;
}

.ai-grid p.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   Grid de tarjetas (beneficios / industrias / diferenciadores)
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
}

.card__icon .icon {
  width: 24px;
  height: 24px;
}

.card__icon--green {
  background: var(--green-50);
  color: var(--green-700);
}

.card__icon--purple {
  background: var(--surface-2);
  color: var(--ink);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.card__tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}

/* Diferenciadores */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-list li {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.why-list .card__icon {
  margin: 0;
  flex: none;
  width: 44px;
  height: 44px;
}

.why-list h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.why-list p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted);
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.partner-badge img {
  height: 44px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Precios
   -------------------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 40px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-2);
}

.billing-toggle__btn {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.billing-toggle__btn[aria-pressed="true"] {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.billing-toggle__save {
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan--featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-md);
}

.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan__name {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.plan__desc {
  min-height: 3em;
  margin-bottom: 18px;
  font-size: 0.925rem;
  color: var(--muted);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.plan__currency {
  font-weight: 600;
  color: var(--muted);
}

.plan__amount {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.plan__period {
  color: var(--muted);
}

.plan__note {
  min-height: 1.5em;
  margin-bottom: 22px;
  font-size: 0.825rem;
  color: var(--muted);
}

.plan__features {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 0.925rem;
}

.plan__features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan__features .icon {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  stroke-width: 3;
}

.plan .btn {
  margin-top: auto;
}

.pricing-foot {
  margin: 28px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow: var(--shadow-md);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314122b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--brand-50);
}

.faq .faq__body {
  padding: 0 22px 22px;
  color: var(--muted);
}

.faq .faq__body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Contacto / CTA final
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact__intro h2 {
  color: #fff;
}

.contact__intro p.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact__methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact__methods a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.contact__methods a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

.contact__methods .card__icon {
  margin: 0;
  flex: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.contact__methods strong {
  display: block;
  font-size: 0.95rem;
}

.contact__methods span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.form-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.form-card > p {
  font-size: 0.925rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(59, 96, 221, 0.15);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #e5484d;
}

.field__error {
  display: none;
  font-size: 0.8rem;
  color: #c62828;
}

.field.is-invalid .field__error {
  display: block;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.825rem;
  color: var(--muted);
}

.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.form-status.is-success {
  display: block;
  background: var(--green-50);
  color: #0f5132;
}

.form-status.is-error {
  display: block;
  background: #fdecec;
  color: #8a1c1c;
}

.form-status.is-info {
  display: block;
  background: var(--brand-50);
  color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
  font-size: 0.925rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 320px;
}

.footer-brand .partner {
  margin-top: 18px;
  height: 60px;
  opacity: 0.9;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Páginas internas (legales, 404)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
}

.legal__toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}

.legal__toc a {
  display: block;
  padding: 6px 0;
  color: var(--text);
}

.legal__toc a:hover {
  color: var(--brand);
  text-decoration: none;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2em 0 0.6em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text);
  line-height: 1.75;
}

.prose ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose .notice {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--brand-50);
  border-left: 4px solid var(--brand);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}

.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Animaciones de aparición
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-card,
  .btn,
  .card,
  .step,
  .plan {
    animation: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1140px) {
  .site-nav {
    gap: 12px;
  }

  .site-nav__links a {
    padding: 8px 9px;
    font-size: 0.9rem;
  }

  .site-nav__login {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1080px) {
  .stats,
  .steps,
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .logos__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 24px;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__links a {
    padding: 14px 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-header[data-variant="hero"]:not(.is-scrolled) .site-nav__links a,
  .site-header[data-variant="hero"]:not(.is-scrolled) .site-nav__login {
    color: var(--ink);
  }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__actions .btn,
  .site-nav__login {
    width: 100%;
    text-align: center;
    min-height: 50px;
  }

  .site-header.nav-is-open {
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
  }

  .site-header.nav-is-open .brand__light {
    display: none !important;
  }

  .site-header.nav-is-open .brand__dark {
    display: block !important;
  }

  .site-header.nav-is-open .nav-toggle {
    color: var(--ink) !important;
  }

  .hero .container,
  .tab-panel,
  .ai-grid,
  .why-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .tab-panel--reverse > div:first-child {
    order: 0;
  }

  .hero__visual {
    padding: 16px 0 16px 8px;
    max-width: 640px;
  }

  .float-card--a {
    left: 0;
  }

  .float-card--b {
    right: 0;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .plan--featured {
    order: -1;
  }

  .legal {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal__toc {
    position: static;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__checks {
    flex-direction: column;
    gap: 8px;
  }

  .float-card {
    font-size: 0.75rem;
    padding: 10px 12px;
  }

  .float-card strong {
    font-size: 1.1rem;
  }

  .float-card--c {
    display: none;
  }

  .stats,
  .steps,
  .cards,
  .cards--4,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
  }

  .logos__grid img {
    max-height: 48px;
  }

  .tabs {
    width: 100%;
    border-radius: 16px;
  }

  .tabs__btn {
    flex: 1 1 45%;
    justify-content: center;
    padding: 10px 12px;
  }

  .ai-chip--a,
  .ai-chip--b {
    position: static;
    margin-top: 12px;
  }

  .ai-grid__media {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
