/* ==========================================================================
   Dental IO · Clínica Odontológica — hoja de estilos
   Paleta tomada del logotipo: azul marino → azul eléctrico → cian.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca */
  --navy-950: #04101f;
  --navy-900: #071a30;
  --navy-800: #0b2544;
  --navy-700: #103257;
  --blue-700: #0f63bd;
  --blue-600: #1573d6;
  --blue-500: #2b8cef;
  --blue-400: #58a9f8;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-300: #7fe6f7;

  /* Neutros */
  --ink: #0a1c30;
  --ink-2: #26415e;
  --muted: #5e7a95;
  --muted-light: #a9c6e0;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-tint: #eff6fd;
  --line: #dde9f5;
  --line-dark: rgba(140, 200, 255, .16);

  /* Gradientes */
  --grad: linear-gradient(120deg, var(--blue-700) 0%, var(--blue-500) 48%, var(--cyan-400) 100%);
  --grad-text-light: linear-gradient(100deg, var(--blue-400) 0%, var(--cyan-400) 55%, var(--cyan-300) 100%);
  --grad-text-dark: linear-gradient(100deg, var(--blue-700) 0%, var(--blue-500) 45%, var(--cyan-500) 100%);

  /* Tipografía */
  --ff-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --ff-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Formas */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 2px 8px rgba(10, 40, 70, .06);
  --sh: 0 12px 34px -12px rgba(10, 40, 70, .18);
  --sh-lg: 0 32px 70px -28px rgba(8, 35, 65, .38);
  --sh-glow: 0 18px 44px -18px rgba(21, 115, 214, .58);

  /* Medidas */
  --container: 1180px;
  --header-h: 78px;
}

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

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: 50%; top: 8px; z-index: 200;
  transform: translate(-50%, -160%);
  background: var(--white); color: var(--ink);
  padding: 10px 18px; border-radius: var(--r-pill);
  box-shadow: var(--sh); font-weight: 600;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

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

/* Iconos SVG en trazo */
.ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ico--solid { fill: currentColor; stroke: none; }

/* ---------- 3. Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .75s cubic-bezier(.22,.7,.3,1), transform .75s cubic-bezier(.22,.7,.3,1);
}
.js .reveal[data-delay="1"].is-visible { transition-delay: .07s; }
.js .reveal[data-delay="2"].is-visible { transition-delay: .14s; }
.js .reveal[data-delay="3"].is-visible { transition-delay: .21s; }
.js .reveal[data-delay="4"].is-visible { transition-delay: .28s; }
.js .reveal[data-delay="5"].is-visible { transition-delay: .35s; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--ff-display); font-weight: 600; font-size: .96rem;
  letter-spacing: .005em; cursor: pointer; white-space: nowrap;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}
.btn .ico { width: 19px; height: 19px; }
.btn--sm { padding: 10px 19px; font-size: .88rem; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--grad);
  background-size: 160% 160%;
  color: var(--white);
  box-shadow: var(--sh-glow);
}
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 22px 50px -18px rgba(34, 211, 238, .7); }

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(168, 214, 255, .3);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: var(--cyan-400); transform: translateY(-2px); }

.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); }

.btn--ig {
  color: var(--white);
  background: linear-gradient(115deg, #7b3fc4 0%, #d6366d 48%, #f4a04a 100%);
  box-shadow: 0 16px 38px -16px rgba(200, 60, 110, .6);
}
.btn--ig:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -16px rgba(200, 60, 110, .72); }

.link {
  color: var(--blue-700); font-weight: 600;
  border-bottom: 1px solid rgba(21, 115, 214, .3);
  transition: color .2s, border-color .2s;
}
.link:hover { color: var(--cyan-500); border-color: var(--cyan-500); }

/* ---------- 5. Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, height .3s ease;
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(10, 40, 70, .5);
}
.header__inner { display: flex; align-items: center; gap: 28px; width: 100%; }

.brand { position: relative; display: block; flex: none; }
.brand__logo { width: auto; height: 48px; transition: opacity .3s ease, height .3s ease; }
.brand__logo--dark { position: absolute; inset: 0; opacity: 0; }
.site-header.is-scrolled .brand__logo { height: 42px; }
.site-header.is-scrolled .brand__logo--light { opacity: 0; }
.site-header.is-scrolled .brand__logo--dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__link {
  position: relative;
  font-family: var(--ff-display); font-weight: 500; font-size: .95rem;
  color: rgba(255, 255, 255, .84);
  transition: color .2s ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -7px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.22,.7,.3,1);
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .nav__link { color: var(--ink-2); }
.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active { color: var(--blue-700); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(168, 214, 255, .28); border-radius: 13px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background-color .25s, border-color .25s;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--white);
  transition: transform .3s cubic-bezier(.22,.7,.3,1), opacity .2s;
}
.site-header.is-scrolled .nav-toggle { background: var(--surface-tint); border-color: var(--line); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 74px) 0 0;
  background: radial-gradient(120% 120% at 78% 8%, var(--navy-700) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: rgba(226, 240, 252, .88);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg, .tech__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.orb--1 { width: 520px; height: 520px; top: -160px; right: -80px; background: radial-gradient(circle, rgba(34,211,238,.55), transparent 68%); animation: float 17s ease-in-out infinite; }
.orb--2 { width: 460px; height: 460px; bottom: -180px; left: -120px; background: radial-gradient(circle, rgba(21,115,214,.6), transparent 68%); animation: float 21s ease-in-out infinite reverse; }
.orb--3 { width: 320px; height: 320px; top: 38%; left: 46%; background: radial-gradient(circle, rgba(88,169,248,.42), transparent 70%); animation: float 25s ease-in-out infinite; }
.orb--4 { width: 560px; height: 560px; top: -140px; left: -140px; background: radial-gradient(circle, rgba(34,211,238,.4), transparent 68%); animation: float 23s ease-in-out infinite; }
.orb--5 { width: 620px; height: 620px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(123,63,196,.34), transparent 66%); }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(34px, -42px, 0) scale(1.09); }
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140, 205, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 205, 255, .075) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 8%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 8%, transparent 72%);
}

.hero__inner {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: 60px; align-items: center;
  padding-bottom: 92px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 7px 16px 7px 13px;
  border: 1px solid rgba(140, 205, 255, .26); border-radius: var(--r-pill);
  background: rgba(140, 205, 255, .07);
  font-family: var(--ff-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan-300);
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, .65);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.eyebrow--dark { border-color: rgba(21, 115, 214, .2); background: rgba(21, 115, 214, .07); color: var(--blue-700); }

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
  font-weight: 700; color: var(--white);
  letter-spacing: -.035em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero__title em, .section__title--light em {
  font-style: normal;
  background: var(--grad-text-light);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.03rem, 1.35vw, 1.16rem);
  max-width: 34em;
  color: rgba(206, 228, 247, .8);
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: start; gap: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}
.stat__value {
  font-family: var(--ff-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700; color: var(--white); line-height: 1.1;
  margin: 0 0 3px;
}
.stat__label { font-size: .82rem; color: var(--muted-light); order: 2; line-height: 1.4; }
.stat { display: flex; flex-direction: column; }

/* Retrato con órbitas (guiño al isotipo) */
.hero__visual { display: flex; justify-content: center; }
.portrait { position: relative; width: min(100%, 420px); }

.portrait__ring {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.portrait__ring--outer {
  inset: -9% -13%;
  border: 1px solid rgba(140, 205, 255, .22);
  border-top-color: var(--cyan-400);
  border-right-color: rgba(34, 211, 238, .5);
  animation: spin 26s linear infinite;
}
.portrait__ring--inner {
  inset: 4% -4% 12% 2%;
  border: 1px dashed rgba(88, 169, 248, .3);
  animation: spin 34s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portrait__frame {
  position: relative;
  border-radius: 28px 28px 26px 26px;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(34,211,238,.16), rgba(11,37,68,.9));
  border: 1px solid rgba(140, 205, 255, .2);
  box-shadow: var(--sh-lg);
}
.portrait__frame img { width: 100%; aspect-ratio: 595 / 700; object-fit: cover; object-position: 50% 12%; }
.portrait__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,16,31,.93) 2%, rgba(4,16,31,.25) 28%, transparent 52%);
}
.portrait__caption {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2;
  display: flex; flex-direction: column;
}
.portrait__caption strong { font-family: var(--ff-display); font-size: 1.16rem; color: var(--white); letter-spacing: -.01em; }
.portrait__caption span { font-size: .84rem; color: var(--cyan-300); }

.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  border-radius: var(--r-pill);
  background: rgba(8, 25, 46, .72);
  border: 1px solid rgba(140, 205, 255, .26);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .8);
  font-family: var(--ff-display); font-size: .82rem; font-weight: 500;
  color: var(--white); white-space: nowrap;
}
.chip .ico { width: 17px; height: 17px; color: var(--cyan-400); }
.chip--a { top: 15%; left: -13%; animation: bob 6s ease-in-out infinite; }
.chip--b { bottom: 24%; right: -11%; animation: bob 7.5s ease-in-out infinite 1.2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* Píxeles del isotipo como detalle decorativo */
.pixels { position: absolute; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.pixels i { width: 9px; height: 9px; border-radius: 2px; background: var(--cyan-400); opacity: .85; }
.pixels i:nth-child(1) { grid-area: 1 / 2; }
.pixels i:nth-child(2) { grid-area: 1 / 3; opacity: .45; }
.pixels i:nth-child(3) { grid-area: 2 / 1; }
.pixels i:nth-child(4) { grid-area: 2 / 3; opacity: .6; }
.pixels--hero { top: -4%; right: 6%; }
.pixels--tech { bottom: -14px; left: -14px; }

/* Cinta inferior del hero */
.marquee {
  position: relative;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(4, 16, 31, .45);
  overflow: hidden;
  padding: 15px 0;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 30px; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--ff-display); font-size: .82rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(169, 198, 224, .72); white-space: nowrap;
}
.marquee__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-400); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 7. Secciones ---------- */
.section { position: relative; padding: clamp(74px, 9vw, 122px) 0; }
.section--light { background: var(--surface); }
.section--tint { background: linear-gradient(180deg, var(--surface-tint), #f7fbff); }
.section--dark {
  background: radial-gradient(110% 110% at 22% 0%, var(--navy-800) 0%, var(--navy-900) 48%, var(--navy-950) 100%);
  color: rgba(206, 228, 247, .82);
  overflow: hidden; isolation: isolate;
}

.section__head { max-width: 640px; margin: 0 auto clamp(46px, 5vw, 64px); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__title { font-size: clamp(1.95rem, 3.9vw, 3rem); font-weight: 700; margin-bottom: 18px; text-wrap: balance; }
.section__title em { font-style: normal; background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section__title--light { color: var(--white); }
.section__lead { font-size: 1.05rem; color: var(--muted); }
.section__lead--light { color: rgba(186, 214, 240, .78); }

/* ---------- 8. Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.pillar {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 38px 32px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  transition: transform .34s cubic-bezier(.22,.7,.3,1), box-shadow .34s ease, border-color .34s ease;
}
.pillar::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.22,.7,.3,1);
}
.pillar:hover { transform: translateY(-7px); box-shadow: var(--sh); border-color: rgba(43, 140, 239, .34); }
.pillar:hover::before { transform: scaleX(1); }

.pillar--featured {
  background: linear-gradient(168deg, #0b2544 0%, #04101f 100%);
  border-color: rgba(140, 205, 255, .2);
  color: rgba(206, 228, 247, .8);
  box-shadow: var(--sh-lg);
}
.pillar--featured::before { transform: scaleX(1); }
.pillar--featured .pillar__title { color: var(--white); }
.pillar--featured .pillar__num { color: rgba(140, 205, 255, .3); }
.pillar--featured .pillar__list li { color: rgba(186, 214, 240, .82); }
.pillar--featured .pillar__list li::before { background: var(--cyan-400); }
.pillar--featured .pillar__icon { background: rgba(34, 211, 238, .14); border-color: rgba(34, 211, 238, .3); color: var(--cyan-300); }

.pillar__num {
  position: absolute; top: 26px; right: 30px;
  font-family: var(--ff-display); font-size: 2.6rem; font-weight: 700;
  color: rgba(21, 115, 214, .1); line-height: 1; letter-spacing: -.04em;
}
.pillar__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 24px;
  border-radius: 18px;
  background: rgba(21, 115, 214, .08);
  border: 1px solid rgba(21, 115, 214, .16);
  color: var(--blue-600);
}
.pillar__icon .ico { width: 27px; height: 27px; }
.pillar__title { font-size: 1.52rem; margin-bottom: 12px; }
.pillar__text { font-size: .97rem; margin-bottom: 22px; }
.pillar__list { display: grid; gap: 11px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.pillar--featured .pillar__list { border-color: var(--line-dark); }
.pillar__list li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--muted); }
.pillar__list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--blue-500);
}

/* ---------- 9. Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; overflow: hidden;
  padding: 34px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .34s cubic-bezier(.22,.7,.3,1), box-shadow .34s ease, border-color .34s ease;
}
.service::after {
  content: ''; position: absolute; top: -60%; right: -30%;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 68%);
  opacity: 0; transition: opacity .4s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: rgba(43, 140, 239, .34); }
.service:hover::after { opacity: 1; }
.service:hover .service__icon { background: var(--grad); border-color: transparent; color: var(--white); transform: scale(1.06) rotate(-4deg); }

.service__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 22px;
  border-radius: 16px;
  background: var(--surface-tint);
  border: 1px solid rgba(21, 115, 214, .14);
  color: var(--blue-600);
  transition: background .34s ease, color .34s ease, transform .34s cubic-bezier(.22,.7,.3,1), border-color .34s ease;
}
.service__icon .ico { width: 26px; height: 26px; }
.service__title { position: relative; font-size: 1.16rem; margin-bottom: 10px; }
.service__text { position: relative; font-size: .94rem; color: var(--muted); }

.services__note { margin-top: 38px; text-align: center; color: var(--muted); font-size: 1rem; }
.services__note strong { color: var(--ink); font-weight: 600; }

/* ---------- 10. Tecnología ---------- */
.tech { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 82px); align-items: center; }
.tech__media { position: relative; padding-bottom: 54px; }
.tech__shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; position: relative; border: 1px solid rgba(140, 205, 255, .2); }
.tech__shot img { width: 100%; object-fit: cover; }
.tech__shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 20px 15px;
  background: linear-gradient(to top, rgba(4,16,31,.92), transparent);
  font-family: var(--ff-display); font-size: .84rem; font-weight: 500; color: var(--white);
}
.tech__shot--main { box-shadow: var(--sh-lg); aspect-ratio: 4 / 4.4; }
.tech__shot--sub {
  position: absolute; right: -4%; bottom: 0;
  width: 46%; aspect-ratio: 1 / 1.16;
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .8);
  border-width: 3px; border-color: var(--navy-900);
}
.tech__shot--sub figcaption { font-size: .74rem; padding: 22px 14px 11px; }

.tech__list { display: grid; gap: 15px; margin-top: 36px; }
.tech__list li {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 17px 20px;
  border: 1px solid var(--line-dark); border-radius: var(--r);
  background: rgba(140, 205, 255, .04);
  transition: border-color .3s ease, background-color .3s ease, transform .3s ease;
}
.tech__list li:hover { border-color: rgba(34, 211, 238, .42); background: rgba(34, 211, 238, .07); transform: translateX(5px); }
.tech__list .ico { width: 20px; height: 20px; margin-top: 3px; color: var(--cyan-400); stroke-width: 2.4; }
.tech__list strong { display: block; font-family: var(--ff-display); font-size: 1rem; color: var(--white); font-weight: 600; }
.tech__list span { font-size: .89rem; color: rgba(186, 214, 240, .72); }

/* ---------- 11. Doctora ---------- */
.doctor { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(38px, 6vw, 78px); align-items: center; }
.doctor__media { position: relative; }
.doctor__frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
}
.doctor__frame::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(200deg, rgba(34, 211, 238, .1), transparent 45%);
}
.doctor__frame img { width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: 50% 18%; }
.doctor__badge {
  position: absolute; right: -18px; bottom: 34px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1px solid var(--line);
}
.doctor__badge .ico { width: 24px; height: 24px; color: var(--blue-600); }
.doctor__badge strong { display: block; font-family: var(--ff-display); font-size: .95rem; color: var(--ink); }
.doctor__badge span { font-size: .8rem; color: var(--muted); }

.doctor__role {
  font-family: var(--ff-display); font-size: 1.05rem; font-weight: 500;
  color: var(--blue-700); margin-bottom: 22px;
}
.doctor__text { margin-bottom: 16px; color: var(--muted); font-size: 1.01rem; }
.doctor__chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 32px; }
.doctor__chips li {
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--surface-tint); border: 1px solid rgba(21, 115, 214, .14);
  font-family: var(--ff-display); font-size: .85rem; font-weight: 500; color: var(--blue-700);
}
.doctor__actions { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- 12. Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 34px 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .34s cubic-bezier(.22,.7,.3,1), box-shadow .34s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 58px; right: -14px; z-index: 2;
  width: 8px; height: 8px; border-top: 2px solid rgba(43, 140, 239, .45); border-right: 2px solid rgba(43, 140, 239, .45);
  transform: rotate(45deg);
}
.step__num {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 20px;
  border-radius: 14px;
  background: var(--grad); color: var(--white);
  font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem;
  box-shadow: var(--sh-glow);
}
.step__title { font-size: 1.1rem; margin-bottom: 10px; }
.step__text { font-size: .92rem; color: var(--muted); }

/* ---------- 13. Opiniones ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  margin: 0; padding: 32px 30px;
  background: linear-gradient(170deg, var(--surface-tint), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .34s cubic-bezier(.22,.7,.3,1), box-shadow .34s ease;
}
.review:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.review__stars { color: #f0a92c; letter-spacing: 3px; font-size: 1.02rem; margin-bottom: 16px; }
.review blockquote { margin: 0 0 20px; }
.review blockquote p { font-size: 1rem; color: var(--ink-2); font-style: italic; }
.review figcaption { padding-top: 18px; border-top: 1px solid var(--line); }
.review figcaption strong { display: block; font-family: var(--ff-display); font-size: .96rem; color: var(--ink); }
.review figcaption span { font-size: .84rem; color: var(--muted); }

/* ---------- 14. Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ig-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(140, 205, 255, .18);
  aspect-ratio: 1 / 1.16;
}
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.22,.7,.3,1); }
.ig-tile__overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(123,63,196,.78), rgba(214,54,109,.72) 55%, rgba(244,160,74,.7));
  opacity: 0; transition: opacity .35s ease;
  color: var(--white);
}
.ig-tile__overlay .ico { width: 34px; height: 34px; stroke-width: 1.5; }
.ig-tile:hover img { transform: scale(1.07); }
.ig-tile:hover .ig-tile__overlay { opacity: 1; }
.ig-cta { margin-top: 38px; text-align: center; }

/* ---------- 15. FAQ ---------- */
.faq { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(34px, 5vw, 70px); align-items: start; }
.faq .section__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.accordion { display: grid; gap: 12px; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.acc-item.is-open { border-color: rgba(43, 140, 239, .38); box-shadow: var(--sh-sm); }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; padding: 20px 24px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--ff-display); font-size: 1.03rem; font-weight: 600; color: var(--ink);
  transition: color .2s ease;
}
.acc-trigger:hover { color: var(--blue-700); }
.acc-chevron { width: 20px; height: 20px; color: var(--blue-600); transition: transform .32s cubic-bezier(.22,.7,.3,1); }
.acc-item.is-open .acc-chevron { transform: rotate(180deg); }
.acc-panel { height: 0; overflow: hidden; transition: height .34s cubic-bezier(.22,.7,.3,1); }
.acc-panel__inner { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; }

/* ---------- 16. Contacto ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr .88fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.contact__list { display: grid; gap: 20px; margin-top: 40px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ico {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .24);
  color: var(--cyan-400);
}
.contact__ico .ico { width: 21px; height: 21px; }
.contact__list strong { display: block; font-family: var(--ff-display); font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--cyan-300); margin-bottom: 2px; }
.contact__list a, .contact__list > li > div > span { color: rgba(226, 240, 252, .88); font-size: .99rem; }
.contact__list a { transition: color .2s ease; }
.contact__list a:hover { color: var(--cyan-400); }

.form {
  padding: clamp(28px, 3.4vw, 40px);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(140, 205, 255, .2);
  border-radius: var(--r-xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--sh-lg);
}
.form__title { font-size: 1.5rem; color: var(--white); margin-bottom: 7px; }
.form__hint { font-size: .92rem; color: rgba(186, 214, 240, .74); margin-bottom: 26px; }
.field { margin-bottom: 17px; }
.field label {
  display: block; margin-bottom: 8px;
  font-family: var(--ff-display); font-size: .87rem; font-weight: 500;
  color: rgba(206, 228, 247, .9);
}
.field__opt { color: var(--muted-light); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(4, 16, 31, .45);
  border: 1px solid rgba(140, 205, 255, .22);
  border-radius: var(--r-sm);
  color: var(--white); font-size: .97rem; font-family: var(--ff-body);
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(169, 198, 224, .48); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe6f7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
  padding-right: 42px;
}
.field select option { background: var(--navy-900); color: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
  background: rgba(4, 16, 31, .66);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
}
.field.has-error input, .field.has-error select { border-color: #f87171; }
.field__error { display: block; margin-top: 6px; font-size: .8rem; color: #fca5a5; min-height: 0; }
.form .btn { margin-top: 10px; }
.form__legal { margin-top: 16px; font-size: .78rem; color: rgba(169, 198, 224, .6); line-height: 1.55; text-align: center; }
.form__status { margin-top: 12px; font-size: .88rem; color: var(--cyan-300); text-align: center; min-height: 1.2em; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--navy-950); color: rgba(186, 214, 240, .68); padding: 72px 0 0; }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px;
  padding-bottom: 52px;
}
.footer__logo { width: auto; height: 54px; margin-bottom: 18px; }
.footer__tagline { font-size: .95rem; max-width: 27em; margin-bottom: 22px; }
.footer__social { display: flex; gap: 11px; }
.footer__social a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(140, 205, 255, .07);
  border: 1px solid var(--line-dark);
  color: rgba(206, 228, 247, .82);
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.footer__social a:hover { background: var(--grad); border-color: transparent; color: var(--white); transform: translateY(-3px); }
.footer__col h3 {
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan-300); margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 11px; }
.footer__col a, .footer__col span { font-size: .93rem; transition: color .2s ease; }
.footer__col a:hover { color: var(--cyan-400); }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 26px; padding-bottom: 30px;
  border-top: 1px solid var(--line-dark);
  font-size: .84rem; color: rgba(169, 198, 224, .55);
}
.footer__legal { max-width: 46ch; }

/* ---------- 18. WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #25d366;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .6);
  transition: transform .26s cubic-bezier(.22,.7,.3,1), box-shadow .26s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.09) translateY(-2px); box-shadow: 0 20px 44px -10px rgba(37, 211, 102, .75); }
.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: ripple 2.6s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.65); opacity: 0; }
}
.wa-float__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px);
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--navy-900); color: var(--white);
  font-family: var(--ff-display); font-size: .82rem; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none;
  box-shadow: var(--sh);
  transition: opacity .25s ease, transform .25s ease;
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ==========================================================================
   19. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__list { gap: 20px; }
  .nav__link { font-size: .9rem; }
  .pillars, .services, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .chip--a { left: -4%; }
  .chip--b { right: -2%; }
}

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

  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 18px 24px 26px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(8, 35, 65, .5);
    transform: translateY(-14px);
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, transform .28s cubic-bezier(.22,.7,.3,1), visibility .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: 15px 4px; font-size: 1.02rem; color: var(--ink) !important; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 18px; justify-content: center; }

  .hero { padding-top: calc(var(--header-h) + 52px); }
  .hero__inner { grid-template-columns: 1fr; gap: 54px; padding-bottom: 72px; }
  .hero__content { text-align: center; }
  .eyebrow { margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; text-align: center; gap: 32px; }
  .stat { align-items: center; }
  .portrait { width: min(100%, 370px); }

  .tech, .doctor, .faq, .contact__inner { grid-template-columns: 1fr; }
  .tech__media { max-width: 480px; margin-inline: auto; order: 2; }
  .faq .section__head { position: static; }
  .doctor__media { max-width: 420px; margin-inline: auto; }
  .doctor__badge { right: 10px; }
  .doctor__content { text-align: center; }
  .doctor__chips, .doctor__actions { justify-content: center; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .brand__logo { height: 38px; }
  .site-header.is-scrolled .brand__logo { height: 35px; }

  .hero__title { font-size: clamp(2.1rem, 8.4vw, 2.7rem); }
  .hero__actions .btn { width: 100%; }
  .hero__stats { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .stat { flex-direction: row; align-items: baseline; justify-content: center; gap: 9px; }
  .stat__value { font-size: 1.45rem; margin-bottom: 0; }
  .stat__label { font-size: .86rem; }

  .chip { font-size: .74rem; padding: 9px 13px; }
  .chip--a { left: -6px; top: 10%; }
  .chip--b { right: -6px; bottom: 26%; }
  .pixels--hero { display: none; }

  .pillars, .services, .reviews, .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .pillar, .service, .step, .review { padding: 28px 24px; }

  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tech__shot--sub { width: 50%; right: 0; }
  /* Deja sitio al pie de foto para que no lo tape la imagen superpuesta. */
  .tech__shot--main figcaption { padding-right: 52%; font-size: .78rem; }
  .pixels--tech { display: none; }
  .doctor__badge { right: 0; bottom: 14px; padding: 12px 16px; }

  .acc-trigger { padding: 17px 18px; font-size: .97rem; }
  .acc-panel__inner { padding: 0 18px 18px; }

  .footer { padding-top: 56px; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 29px; height: 29px; }
}

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

/* ---------- 21. Impresión ---------- */
@media print {
  .site-header, .wa-float, .marquee, .hero__bg, .tech__bg, .nav-toggle { display: none !important; }
  body { color: #000; }
  .section--dark, .hero { background: #fff !important; color: #000 !important; }
}
