/* ==========================================================================
   InjuryPro AI Solutions (IPS) — Landing page
   Identidad de marca (Manual PMV):
     Principal  Azul profundo   #232A54
     Secundario Verde esmeralda #56BBAC
     Acento     Amarillo        #FFCD02
   Tipografía: Roboto Serif (titulares) + Lato (cuerpo)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy: #232A54;
  --navy-deep: #1A2043;
  --navy-soft: #2E3768;
  --teal: #56BBAC;
  --yellow: #FFCD02;

  /* Neutrals */
  --ink: #191D33;
  --body: #4B5168;
  --muted: #6E7489;
  --line: #E4E6EF;
  --surface: #F6F7FB;
  --white: #FFFFFF;

  /* On dark */
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, .76);
  --on-dark-line: rgba(255, 255, 255, .16);

  /* Type */
  --font-display: "Roboto Serif", Georgia, "Times New Roman", serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --header-h: 84px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(25, 29, 51, .06), 0 2px 8px rgba(25, 29, 51, .05);
  --shadow-md: 0 10px 30px rgba(25, 29, 51, .10);
  --shadow-lg: 0 24px 60px rgba(25, 29, 51, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h3, h4 { font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

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

table { border-collapse: collapse; width: 100%; }

blockquote { margin: 0; }

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

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--yellow);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.1;
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { --btn-bg: var(--navy); --btn-fg: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { --btn-bg: var(--navy-deep); box-shadow: var(--shadow-md); }

.btn-accent { --btn-bg: var(--yellow); --btn-fg: var(--navy); box-shadow: 0 8px 24px rgba(255, 205, 2, .28); }
.btn-accent:hover { background: #FFD733; box-shadow: 0 12px 30px rgba(255, 205, 2, .4); }

.btn-ghost-light {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn-lg { padding: 17px 34px; font-size: 17.5px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(35, 42, 84, 0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease),
              backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(26, 32, 67, .94);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 6px 26px rgba(10, 14, 30, .28);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 40px;
  width: auto;
  aspect-ratio: 1024 / 244;
}

/* Nav */
.site-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list a {
  position: relative;
  color: var(--on-dark-soft);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-list a:hover { color: #fff; text-decoration: none; }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-cta { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--on-dark-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active {
  background: var(--yellow);
  color: var(--navy);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { content: ""; top: -6px; margin-top: 0; left: 0; transform: none; }
.nav-toggle-bars::after  { content: ""; top: 6px;  margin-top: 0; left: 0; transform: none; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 76px) 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/hero-injury.jpg");
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(86, 187, 172, .18), transparent 62%),
    linear-gradient(180deg, rgba(16, 20, 44, .86) 0%, rgba(22, 27, 56, .93) 46%, rgba(28, 34, 70, .97) 100%);
}

.hero-inner {
  max-width: 880px;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-light { color: rgba(255, 255, 255, .82); }

.hero-title {
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-bottom: 22px;
  max-width: 15ch;
}

.hero-lead {
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.66;
  color: var(--on-dark-soft);
  max-width: 62ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-note {
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  margin: 0;
}

.hero-claim {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 -28px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--on-dark-line);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  color: #fff;
  font-style: italic;
  transform: translateY(28px);
}
.hero-claim-mark {
  flex: 0 0 auto;
  width: 44px; height: 3px;
  border-radius: 3px;
  background: var(--yellow);
}

/* ==========================================================================
   TRUST / PARTNERS
   ========================================================================== */
.trust {
  background: var(--white);
  padding: 84px 0 62px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.trust-title {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.trust-logo {
  width: auto;
  object-fit: contain;
  filter: grayscale(0%);
}
.trust-logo-ucam { height: clamp(52px, 7vw, 74px); }
.trust-logo-aygloo { height: clamp(30px, 4vw, 40px); }

.trust-plus {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--line);
  line-height: 1;
}

.trust-sub {
  max-width: 62ch;
  margin: 0 auto;
  font-size: 15.5px;
  color: var(--muted);
}

.pillar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.pillar-list li {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section-surface { background: var(--surface); }
.section-navy { background: var(--navy); color: var(--on-dark); }
.section-navy h2,
.section-navy h3,
.section-navy h4 { color: #fff; }
.section-navy p { color: var(--on-dark-soft); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 62px); }
.section-head-center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(1.85rem, 4.1vw, 2.85rem);
  letter-spacing: -.02em;
}

.section-intro {
  font-size: 1.08rem;
  color: var(--body);
  max-width: 68ch;
}
.section-navy .section-intro { color: var(--on-dark-soft); }

.pull-quote {
  margin-top: 22px;
  padding-left: 20px;
  border-left: 4px solid var(--yellow);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-style: italic;
  color: var(--navy);
}

.sub-title {
  font-size: 1.32rem;
  margin-top: 30px;
  margin-bottom: 10px;
}
.sub-title:first-child { margin-top: 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: clamp(46px, 6vw, 72px);
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stat-card-accent { border-top-color: var(--yellow); }

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -.03em;
}
.stat-unit { font-size: .92rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }

.stat-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--body);
  line-height: 1.45;
}

/* ---------- Problem split ---------- */
.problem-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.problem-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.problem-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.problem-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(35, 42, 84, .30), rgba(35, 42, 84, .02) 55%);
  pointer-events: none;
}

.problem-text p { font-size: 1.03rem; }

.check-list { margin-top: 18px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 1rem;
  color: var(--body);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.source {
  margin-top: 34px;
  font-size: 13.5px;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   FLOW (how it works)
   ========================================================================== */
.flow {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 320px at 100% 0%, rgba(86, 187, 172, .10), transparent 60%),
    var(--white);
  padding: clamp(30px, 4vw, 52px);
  box-shadow: var(--shadow-sm);
}

.flow-title {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 30px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  counter-reset: none;
}

.flow-step {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(86, 187, 172, .55);
}

.flow-index {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--teal);
}

.flow-step h4 { font-size: 1.08rem; margin-bottom: 8px; }
.flow-step p { font-size: .97rem; margin: 0; color: var(--body); }

.flow-step-highlight {
  background: var(--navy);
  border-color: var(--navy);
}
.flow-step-highlight .flow-index { color: var(--yellow); }
.flow-step-highlight h4 { color: #fff; }
.flow-step-highlight p { color: var(--on-dark-soft); }

.flow-sources {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px dashed var(--line);
}
.flow-sources-label {
  display: block;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 20px;
}

.card {
  padding: 30px 28px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(3px);
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(86, 187, 172, .5);
}
.card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.card p { font-size: .98rem; margin: 0; color: var(--on-dark-soft); }

.card-accent {
  background: rgba(255, 205, 2, .12);
  border-color: rgba(255, 205, 2, .42);
}
.card-accent:hover { background: rgba(255, 205, 2, .18); border-color: var(--yellow); }

.center-claim {
  margin: clamp(38px, 5vw, 56px) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.6vw, 1.5rem);
  font-style: italic;
  color: var(--yellow);
}

/* ==========================================================================
   WHY
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: clamp(52px, 7vw, 84px);
}

.why-item {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.why-num {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--navy);
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 205, 2, .28);
}
.why-item h3 { font-size: 1.18rem; margin-bottom: 10px; }
.why-item p { font-size: .99rem; margin: 0; }

/* ---------- KPI ---------- */
.kpi {
  padding: clamp(30px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(86, 187, 172, .12), transparent 62%),
    var(--surface);
  border: 1px solid var(--line);
}
.kpi-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 26px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.kpi-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
}
.kpi-card h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.kpi-card p { margin: 0; font-size: 1rem; color: var(--ink); font-weight: 400; }

.kpi-quote {
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.3vw, 1.32rem);
  font-style: italic;
  color: var(--navy);
}

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.team-copy p { font-size: 1.04rem; }

.signature {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.signature-name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy);
}
.signature-role { margin: 0; font-size: .96rem; color: var(--muted); }

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-style: italic;
  color: var(--navy);
  margin: 0;
}

.team-photo {
  margin: 0;
  position: relative;
  align-self: stretch;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.team-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}

/* ==========================================================================
   VIDEO — "IPS en 60 segundos"
   ========================================================================== */
.video-section { overflow: hidden; }

.video-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.video-copy .section-title { margin-bottom: 18px; }
.video-text {
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: #fff;
  font-weight: 400;
  max-width: 44ch;
}

/* Marco vertical 9:16 */
.video-frame {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 348px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 30px 70px rgba(8, 11, 24, .55);
  border: 1px solid rgba(255, 255, 255, .14);
}

.ips-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy-deep);
  cursor: pointer;
}

.video-fallback {
  position: absolute;
  inset: auto 18px 18px;
  margin: 0;
  font-size: 14px;
  color: var(--on-dark-soft);
}
.video-fallback a { color: var(--yellow); }

/* Botón de reproducción grande, centrado */
.video-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(8, 11, 24, .5);
  transition: left .28s var(--ease), top .28s var(--ease), width .28s var(--ease),
              height .28s var(--ease), transform .22s var(--ease),
              opacity .22s var(--ease), background-color .22s var(--ease);
  z-index: 2;
}
.video-toggle:hover { transform: translate(-50%, -50%) scale(1.07); }

.video-toggle-icon { display: block; width: 34px; height: 34px; transition: width .28s var(--ease), height .28s var(--ease); }
.video-toggle-icon svg { width: 100%; height: 100%; fill: currentColor; display: block; }

.video-toggle-icon .icon-pause { display: none; }

/* Estado reproduciendo: el botón pasa a la esquina y se convierte en "pausa" */
.video-frame.is-playing .video-toggle {
  left: auto;
  right: 14px;
  top: auto;
  bottom: 14px;
  transform: none;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, .92);
  opacity: .95;
}
.video-frame.is-playing .video-toggle:hover { transform: scale(1.08); background: #fff; }
.video-frame.is-playing .video-toggle-icon { width: 20px; height: 20px; }
.video-frame.is-playing .video-toggle-icon .icon-play { display: none; }
.video-frame.is-playing .video-toggle-icon .icon-pause { display: block; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta {
  position: relative;
  background: var(--surface);
  color: var(--body);
  padding: clamp(76px, 9vw, 118px) 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(820px 420px at 50% -10%, rgba(86, 187, 172, .14), transparent 66%),
    radial-gradient(600px 320px at 88% 110%, rgba(255, 205, 2, .14), transparent 62%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 820px; }

.cta-title {
  color: var(--navy);
  font-size: clamp(1.8rem, 4.4vw, 2.85rem);
  margin-bottom: 18px;
}
.cta-lead {
  font-size: 1.1rem;
  color: var(--body);
  margin: 0 auto 34px;
  max-width: 60ch;
}
.cta-button { margin-bottom: 22px; }
.cta-note { font-size: 15px; color: var(--muted); margin: 0; }
.cta-mail { color: var(--navy); font-weight: 700; text-decoration: underline; }
.cta-mail:hover { color: var(--teal); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark-soft);
  padding: clamp(52px, 6vw, 76px) 0 0;
  font-size: 15px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 56px);
  padding-bottom: 46px;
}
.footer-logo { height: 38px; width: auto; aspect-ratio: 1024 / 244; margin-bottom: 18px; }
.footer-tag { max-width: 40ch; margin: 0; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a, .footer-contact a { color: var(--on-dark-soft); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--yellow); }
.footer-partners { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .58); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter) 26px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .58);
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   LEGAL PAGE
   ========================================================================== */
.legal-header {
  background: var(--navy);
  padding: 26px 0;
}
.legal-header .brand-logo { height: 38px; }

.legal-main { padding: clamp(52px, 7vw, 88px) 0 clamp(66px, 8vw, 104px); }
.legal-doc { max-width: 820px; margin-inline: auto; }
.legal-doc h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
  margin-bottom: 10px;
}
.legal-updated {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.legal-doc h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  margin: 46px 0 14px;
  padding-top: 8px;
}
.legal-doc h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
}
.legal-doc p, .legal-doc li { font-size: 1rem; }
.legal-doc ul { display: grid; gap: 9px; margin: 0 0 18px; }
.legal-doc ul li {
  position: relative;
  padding-left: 22px;
}
.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 44px;
  font-weight: 700;
}
.legal-note {
  margin-top: 34px;
  padding: 20px 24px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  font-size: .96rem;
}

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1040px) {
  .problem-split,
  .team-inner,
  .video-inner { grid-template-columns: 1fr; }
  .problem-figure { aspect-ratio: 16 / 10; }
  .team-photo { order: -1; }
  .video-copy { order: -1; text-align: left; }
  .video-text { max-width: 58ch; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: block;
    margin: 0;
    padding: 18px var(--gutter) 26px;
    background: var(--navy-deep);
    box-shadow: 0 22px 40px rgba(10, 14, 30, .38);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li { border-bottom: 1px solid var(--on-dark-line); }
  .nav-list a { display: block; padding: 15px 2px; font-size: 17px; color: #fff; }
  .nav-list a::after { display: none; }

  .nav-cta {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .lang-switch-desktop { display: none; }

  .header-cta { display: none; }

  .hero { padding-top: calc(var(--header-h) + 54px); }
  .hero-title { max-width: 100%; }
  .hero-claim { transform: none; margin-bottom: 0; }

  .section-navy .cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }

  .brand-logo { height: 32px; }
  .header-inner { gap: 14px; }
  .header-actions { margin-left: auto; }

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

  /* En móvil el hero es más alto: acercamos el encuadre al jugador y
     aligeramos el degradado para que la fotografía se distinga. */
  .hero-bg { background-position: 42% 58%; }
  .hero-overlay {
    background:
      radial-gradient(680px 400px at 72% 2%, rgba(86, 187, 172, .18), transparent 62%),
      linear-gradient(180deg, rgba(16, 20, 44, .80) 0%, rgba(22, 27, 56, .88) 48%, rgba(28, 34, 70, .95) 100%);
  }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-claim { font-size: 1.02rem; gap: 12px; padding: 22px 0 0; }
  .hero-claim-mark { width: 28px; }

  .trust { padding: 62px 0 48px; }
  .trust-logos { gap: 22px; }
  .trust-logo-ucam { height: 46px; }
  .trust-logo-aygloo { height: 27px; }

  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stat-card { padding: 24px 22px 22px; }

  .flow-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-button, .cta-button.btn { width: 100%; }

  .signature { padding: 18px 20px; }

  /* El vídeo se centra y ocupa el ancho disponible */
  .video-frame { max-width: 320px; }
  .video-toggle { width: 72px; height: 72px; }
  .video-toggle-icon { width: 28px; height: 28px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .lang-switch, .cta-button { display: none !important; }
  body { font-size: 12pt; }
  .hero, .section-navy, .cta, .site-footer { background: #fff !important; color: #000 !important; }
  .hero-bg, .hero-overlay { display: none !important; }
  h1, h2, h3, h4 { color: #000 !important; }
  .hero-title, .section-navy h2, .cta-title { color: #000 !important; }
}
