/* =====================================================================
   M3 Digital Services — Landing page de conversión
   Misma arquitectura que /ia-hoy/, con la identidad de marca de M3
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Base — azul marino M3 */
  --bg: #020C1B;
  --bg-alt: #0A192F;
  --surface: #112240;
  --surface-2: #1A2F52;
  --line: #233554;

  /* Texto */
  --text: #E6F1FF;
  --text-soft: #A8B2D1;
  --text-dim: #8892B0;

  /* Marca — menta y dorado M3 */
  --brand: #64FFDA;
  --brand-2: #D4AF37;
  --brand-grad: linear-gradient(100deg, #64FFDA 0%, #3FE0C4 100%);
  --glow: rgba(100, 255, 218, 0.30);
  --glow-2: rgba(212, 175, 55, 0.22);

  /* Semánticos */
  --ok: #2FD08A;
  --warn: #D4AF37;
  --danger: #FF3F5E;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

a { color: var(--brand-2); text-decoration: none; transition: color .25s var(--ease); }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }

::selection { background: var(--brand); color: #fff; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: 12px; }

/* ------------------------------- Tipos ------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .22);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 18px;
}

.section-lead {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 640px;
}

.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--alt { background: var(--bg-alt); }

.section-head { margin-bottom: 54px; }

/* ------------------------------ Botones ----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  text-align: center;
  font-family: inherit;
}

.btn svg { flex: 0 0 auto; }

.btn-primary {
  background: var(--brand-grad);
  color: #020C1B;
  box-shadow: 0 10px 30px var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--glow), 0 0 0 1px var(--brand-2) inset;
  color: #020C1B;
}

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--brand-2);
  color: #fff;
  transform: translateY(-2px);
  background: rgba(212, 175, 55, .07);
}

.btn-wa {
  background: #25D366;
  color: #05230F;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .28);
}
.btn-wa:hover { transform: translateY(-2px); color: #05230F; box-shadow: 0 16px 36px rgba(37, 211, 102, .38); }

.btn-sm { padding: 11px 20px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.text-center .btn-row { justify-content: center; }

/* ------------------------------ Header ------------------------------ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 16px 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(2, 12, 27, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: #fff; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-grad);
  display: grid;
  place-items: center;
  color: #020C1B;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: -.04em;
  box-shadow: 0 6px 18px var(--glow);
}

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

.nav a {
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover { color: #fff; }

.header-cta { display: inline-flex; gap: 12px; align-items: center; }

/* Selector de idioma */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .2s var(--ease);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { color: var(--brand-2); }

.lang-sep { color: var(--line); font-size: .75rem; }

/* -------------------------------- Hero ------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(100, 255, 218, .30), transparent 60%),
    radial-gradient(800px 500px at 85% 25%, rgba(212, 175, 55, .18), transparent 60%),
    linear-gradient(180deg, rgba(2, 12, 27, .78) 0%, rgba(2, 12, 27, .90) 55%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.05rem, 5.1vw, 3.5rem);
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: .93rem;
  font-weight: 500;
}
.hero-points svg { color: var(--ok); flex: 0 0 auto; }

/* Tarjeta de auditoría flotante */
.audit-card {
  background: linear-gradient(160deg, rgba(26, 30, 60, .95), rgba(10, 12, 27, .95));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.audit-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand-grad);
}

.audit-card h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.audit-card > p {
  color: var(--text-soft);
  font-size: .95rem;
  margin-bottom: 20px;
}

.audit-list { display: grid; gap: 12px; margin-bottom: 22px; }

.audit-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .95rem;
  color: var(--text-soft);
}
.audit-list b { color: #fff; font-weight: 600; display: block; }
.audit-list .tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(47, 208, 138, .12);
  border: 1px solid rgba(47, 208, 138, .35);
  display: grid;
  place-items: center;
  color: var(--ok);
  margin-top: 2px;
}

.audit-card-foot {
  font-size: .82rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 12px;
}

/* --------------------------- Barra de prueba ------------------------ */

.proof-bar {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  padding: 22px 0;
}

.proof-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 42px;
}

.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: .93rem;
  font-weight: 600;
}
.proof-item svg { color: var(--brand-2); }

/* ------------------------------ Dolores ----------------------------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.pain-card:hover { transform: translateY(-4px); border-color: rgba(255, 77, 109, .45); }

.pain-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 77, 109, .1);
  color: var(--danger);
  border: 1px solid rgba(255, 77, 109, .25);
  margin-bottom: 18px;
}

.pain-icon--brand {
  background: rgba(212, 175, 55, .1);
  border-color: rgba(212, 175, 55, .25);
  color: var(--brand-2);
}
.pain-card:has(.pain-icon--brand):hover { border-color: rgba(212, 175, 55, .5); }

.pain-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pain-card p { color: var(--text-soft); font-size: .95rem; }

.pain-note {
  margin-top: 40px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 600;
}
.pain-note span { color: var(--brand-2); }

/* ----------------------------- Servicios ---------------------------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: 0 20px 44px rgba(100, 255, 218, .22);
}

.svc-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}
.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.svc-card:hover .svc-media img { transform: scale(1.06); }

.svc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

.svc-body h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-body h3 svg { color: var(--brand-2); flex: 0 0 auto; }
.svc-body p { color: var(--text-soft); font-size: .95rem; margin-bottom: 16px; }

.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.svc-tags span {
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ------------------------------ Caminos ----------------------------- */

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.path-card {
  border-radius: var(--radius);
  padding: 34px 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.path-card--hi {
  background: linear-gradient(160deg, rgba(100, 255, 218, .16), rgba(10, 25, 47, .9));
  border-color: rgba(100, 255, 218, .5);
}

.path-tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 12px;
}

.path-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.path-card > p { color: var(--text-soft); margin-bottom: 20px; }

.path-list { display: grid; gap: 10px; margin-bottom: 26px; }
.path-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--text-soft);
  font-size: .95rem;
}
.path-list svg { color: var(--brand-2); margin-top: 5px; }

/* ------------------------------ Proceso ----------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}

.step-n {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #020C1B;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px var(--glow);
}

.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: .94rem; }

.step-time {
  display: inline-block;
  margin-top: 14px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-2);
  background: rgba(212, 175, 55, .08);
  border-radius: 999px;
  padding: 4px 12px;
}

/* --------------------------- Prueba social -------------------------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.quote-stars { color: var(--warn); letter-spacing: 3px; margin-bottom: 14px; font-size: .95rem; }
.quote p { color: var(--text-soft); font-style: italic; margin-bottom: 18px; }

.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-weight: 800;
  font-size: .85rem;
}
.quote-who b { display: block; font-size: .93rem; color: #fff; font-weight: 600; }
.quote-who span { font-size: .82rem; color: var(--text-dim); }

/* -------------------------------- FAQ ------------------------------- */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.faq details[open] { border-color: rgba(100, 255, 218, .55); }

.faq summary {
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 600;
  color: #fff;
  list-style: none;
  position: relative;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(225deg); }

.faq .faq-a { padding: 0 22px 22px; color: var(--text-soft); font-size: .96rem; }

/* ----------------------------- Formulario --------------------------- */

.form-wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.form-side h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.form-side > p { color: var(--text-soft); margin-bottom: 26px; }

.form-side .audit-list { margin-bottom: 26px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.field .req { color: var(--brand-2); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: .96rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, .18);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238892B0' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field select option { background: var(--bg-alt); color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .88rem;
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 500;
  transition: all .2s var(--ease);
  user-select: none;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: var(--brand); color: #fff; }
.chip:has(input:checked),
.chip.is-checked {
  border-color: var(--brand-2);
  background: rgba(212, 175, 55, .1);
  color: #fff;
}
.chip:has(input:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.form-error {
  display: none;
  color: var(--danger);
  font-size: .82rem;
  margin-top: 6px;
  font-weight: 500;
}
.field.has-error input,
.field.has-error select { border-color: var(--danger); }
.field.has-error .form-error { display: block; }

.form-legal {
  font-size: .8rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
}

.form-alt {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .9rem;
  color: var(--text-dim);
}

.form-success {
  display: none;
  text-align: center;
  padding: 22px 6px 6px;
}
.form-success.is-visible { display: block; }
.form-card.is-sent .form-body { display: none; }

.success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(47, 208, 138, .12);
  border: 1px solid rgba(47, 208, 138, .4);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.form-success h3 { font-size: 1.25rem; margin-bottom: 10px; }
.form-success p { color: var(--text-soft); font-size: .95rem; margin-bottom: 18px; }

/* ------------------------------ CTA final --------------------------- */

.cta-final {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  isolation: isolate;
}

.cta-final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('robot cta.webp');
  background-size: cover;
  background-position: 72% 25%;
}
.cta-final-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 12, 27, .96) 0%, rgba(2, 12, 27, .82) 45%, rgba(2, 12, 27, .25) 100%);
}

.cta-final h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 620px;
  margin-bottom: 18px;
}
.cta-final p {
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ------------------------------- Footer ----------------------------- */

.footer {
  background: #03040B;
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer p, .footer li { color: var(--text-dim); font-size: .93rem; }
.footer h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--text-dim); }
.footer ul a:hover { color: var(--brand-2); }
.footer .brand { margin-bottom: 14px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: .86rem;
}

/* --------------------------- CTA fijo móvil ------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(2, 12, 27, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: none;
  gap: 10px;
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; padding: 14px 12px; font-size: .92rem; }

/* Botón flotante de WhatsApp (escritorio) */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 190;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #05230F;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .35);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #05230F; }

/* ----------------------------- Animación ---------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.pain-grid--stagger .pain-card {
  opacity: 0;
  transform: scale(.55);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.pain-grid--stagger .pain-card.is-in { opacity: 1; transform: scale(1); }
.pain-grid--stagger .pain-card:nth-child(1) { transition-delay: 0s; }
.pain-grid--stagger .pain-card:nth-child(2) { transition-delay: .18s; }
.pain-grid--stagger .pain-card:nth-child(3) { transition-delay: .36s; }
.pain-grid--stagger .pain-card:nth-child(4) { transition-delay: .54s; }

.svc-grid--stagger .svc-card {
  opacity: 0;
  transform: scale(.6) translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.svc-grid--stagger .svc-card.is-in { opacity: 1; transform: scale(1) translateY(0); }
.svc-grid--stagger .svc-card:nth-child(1) { transition-delay: 0s; }
.svc-grid--stagger .svc-card:nth-child(2) { transition-delay: .18s; }
.svc-grid--stagger .svc-card:nth-child(3) { transition-delay: .36s; }
.svc-grid--stagger .svc-card:nth-child(4) { transition-delay: .54s; }

.steps--stagger .step {
  opacity: 0;
  transform: scale(.6) translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.steps--stagger .step.is-in { opacity: 1; transform: scale(1) translateY(0); }
.steps--stagger .step:nth-child(1) { transition-delay: 0s; }
.steps--stagger .step:nth-child(2) { transition-delay: .18s; }
.steps--stagger .step:nth-child(3) { transition-delay: .36s; }
.steps--stagger .step:nth-child(4) { transition-delay: .54s; }

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pain-grid--stagger .pain-card.is-in,
.svc-grid--stagger .svc-card.is-in,
.steps--stagger .step.is-in {
  animation: card-float 4.2s ease-in-out infinite;
}
.pain-grid--stagger .pain-card:nth-child(1).is-in,
.svc-grid--stagger .svc-card:nth-child(1).is-in,
.steps--stagger .step:nth-child(1).is-in { animation-delay: .55s; }
.pain-grid--stagger .pain-card:nth-child(2).is-in,
.svc-grid--stagger .svc-card:nth-child(2).is-in,
.steps--stagger .step:nth-child(2).is-in { animation-delay: 1.15s; }
.pain-grid--stagger .pain-card:nth-child(3).is-in,
.svc-grid--stagger .svc-card:nth-child(3).is-in,
.steps--stagger .step:nth-child(3).is-in { animation-delay: 1.75s; }
.pain-grid--stagger .pain-card:nth-child(4).is-in,
.svc-grid--stagger .svc-card:nth-child(4).is-in,
.steps--stagger .step:nth-child(4).is-in { animation-delay: 2.35s; }

.pain-card:hover, .svc-card:hover, .step:hover { animation-play-state: paused; }

/* ---------------------------- Responsive ---------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero-sub { max-width: none; }
  .form-wrap { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .eyebrow { font-size: .72rem; letter-spacing: .1em; }
  .header-inner { gap: 10px; }
  .header-cta { gap: 8px; }
  .brand { font-size: 1.08rem; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: .82rem; }
  .lang-switcher { padding: 5px 9px; gap: 4px; }
  .lang-btn { font-size: .72rem; }
  .btn-sm { padding: 10px 14px; font-size: .85rem; }
  .hero-sub { font-size: 1.02rem; }
  .audit-card { padding: 24px 20px; }
  .header-cta .btn span.hide-sm { display: none; }
  .form-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sticky-cta { display: flex; }
  .wa-float { display: none; }
  body { padding-bottom: 76px; }
  .cta-final-bg::after {
    background: linear-gradient(180deg, rgba(2, 12, 27, .70) 0%, rgba(2, 12, 27, .93) 60%, rgba(2, 12, 27, .97) 100%);
  }
  .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pain-grid--stagger .pain-card { opacity: 1; transform: none; }
  .svc-grid--stagger .svc-card { opacity: 1; transform: none; }
  .steps--stagger .step { opacity: 1; transform: none; }
  .pain-card.is-in, .svc-card.is-in, .step.is-in { animation: none; }
}

/* =====================================================================
   Añadidos propios de M3 (no existen en la landing de IA Hoy)
   ===================================================================== */

/* Logo real en lugar del monograma */
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
}

/* Banda de confianza: agencia bilingüe local + video de ejemplo */
.trust-band {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.trust-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 18px;
  text-wrap: balance;
}

.trust-copy > p {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.trust-facts { display: grid; gap: 14px; margin-bottom: 30px; }

.trust-facts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-soft);
  font-size: .98rem;
}
.trust-facts svg { color: var(--brand); margin-top: 4px; }
.trust-facts b { color: #fff; font-weight: 600; }

.trust-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.trust-media video { width: 100%; height: auto; display: block; }

.trust-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 20px 14px;
  background: linear-gradient(180deg, transparent, rgba(2, 12, 27, .92));
  font-size: .84rem;
  color: var(--text-soft);
}

/* Enlace a Instagram en el pie */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-dim);
}
.social-link:hover { color: var(--brand); }

@media (max-width: 980px) {
  .trust-band { grid-template-columns: 1fr; gap: 32px; }
}

/* Dorado M3 para palabras destacadas en titulares */
.text-gold { color: var(--brand-2); }

/* Video de fondo para una sección (proceso) */
.section--video { position: relative; overflow: hidden; isolation: isolate; }

.section-video-bg { position: absolute; inset: 0; z-index: -1; }
.section-video-bg video { width: 100%; height: 100%; object-fit: cover; }
.section-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 47, .93) 0%, rgba(2, 12, 27, .96) 100%);
}
