/* =========================================================
   ADH — Análisis de Diagnóstico Humano
   Sistema de diseño
   ========================================================= */

:root {
  --blue-bright: #0511F2;
  --blue-deep:   #020873;
  --blue-brand:  #14488C;
  --teal:        #05F2DB;
  --ink:         #05070F;

  --bg:          #FFFFFF;
  --bg-alt:      #F4F7FC;
  --bg-soft:     #EEF2FA;
  --text:        #1B1F2A;
  --text-muted:  #5B6478;
  --border:      #E4E9F2;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --shadow-sm: 0 2px 10px rgba(2, 8, 115, 0.06);
  --shadow-md: 0 12px 30px rgba(2, 8, 115, 0.12);
  --shadow-lg: 0 24px 60px rgba(2, 8, 115, 0.18);

  --container: 1220px;
  --header-h: 180px;
  --header-h-scrolled: 118px;
  --ease: cubic-bezier(.16,.84,.44,1);
  --ease-soft: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-deep);
  line-height: 1.15;
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
  transition: width .12s linear;
}

/* ---------- Icons ---------- */
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px 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);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-brand));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .65s var(--ease-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background: transparent;
  border-color: var(--blue-brand);
  color: var(--blue-brand);
}
.btn-ghost:hover { background: var(--blue-brand); color: #fff; transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* =========================================================
   Preloader — ADN
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 30%, #FFFFFF 0%, #F4F7FC 55%, #E8EEFA 100%);
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.preloader-anim {
  width: 220px;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 30px rgba(2,8,115,0.12));
}
.preloader-anim dotlottie-wc,
.preloader-anim iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}
.preloader-word {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: var(--blue-deep);
  text-transform: uppercase;
}
.preloader-bar {
  width: 140px;
  height: 3px;
  border-radius: 999px;
  background: rgba(2,8,115,0.1);
  overflow: hidden;
}
.preloader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
  animation: preload-sweep 1.1s ease-in-out infinite;
}
@keyframes preload-sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.is-loading { overflow: hidden; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].is-visible { transform: none; }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].is-visible { transform: none; }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="scale"].is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease-soft), border-color .35s var(--ease-soft), background .35s var(--ease-soft), height .35s var(--ease-soft);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
  background: rgba(255,255,255,0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .35s var(--ease-soft);
}
.site-header.scrolled .header-inner { height: var(--header-h-scrolled); }

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 156px;
  width: auto;
  transition: height .35s var(--ease-soft), transform .35s var(--ease-soft);
}
.brand:hover .brand-logo { transform: scale(1.04); }
.site-header.scrolled .brand-logo { height: 100px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--blue-bright);
  transition: width .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--blue-brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 64px) 0 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(160deg, var(--blue-deep), #050b3d 75%);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.4px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 80% 30%, black, transparent 62%);
  mask-image: radial-gradient(circle at 80% 30%, black, transparent 62%);
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.page-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(2,8,115,0.92), rgba(5,4,31,0.88));
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero .eyebrow-light { margin-bottom: 18px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 600px; }
.page-hero-crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  margin-bottom: 20px; font-weight: 600; letter-spacing: 0.02em;
}
.page-hero-crumbs .icon { width: 14px; height: 14px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) 0 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #F4F7FC 0%, #FFFFFF 75%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(2,8,115,0.07) 1.4px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 76% 32%, black, transparent 62%);
  mask-image: radial-gradient(circle at 76% 32%, black, transparent 62%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/dna-strand-claro.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(circle at 88% 18%, black, transparent 48%);
  mask-image: radial-gradient(circle at 88% 18%, black, transparent 48%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}
.blob-1 { width: 460px; height: 460px; background: var(--blue-bright); top: -180px; right: -140px; opacity: 0.16; animation: blob-drift 16s ease-in-out infinite; }
.blob-2 { width: 320px; height: 320px; background: var(--teal); bottom: -110px; left: -90px; opacity: 0.16; animation: blob-drift 20s ease-in-out infinite reverse; }
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(36px, -26px) scale(1.1); }
}
.dna-strand {
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--blue-brand), transparent);
  background-size: 100% 220%;
  opacity: 0.15;
  animation: strand-drift 7s ease-in-out infinite;
}
.strand-1 { height: 60%; left: 8%; top: 10%; }
.strand-2 { height: 40%; right: 12%; bottom: 5%; animation-delay: -3.2s; }
@keyframes strand-drift {
  0%, 100% { background-position: 0 0%; opacity: 0.12; }
  50% { background-position: 0 100%; opacity: 0.26; }
}

@media (prefers-reduced-motion: reduce) {
  .blob-1, .blob-2, .dna-strand { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(5,17,242,0.08);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .icon { width: 15px; height: 15px; }
.eyebrow-light {
  color: var(--teal);
  background: rgba(5,242,219,0.14);
}
.eyebrow::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 2px;
  box-shadow: 0 0 0 0 currentColor;
  animation: eyebrow-pulse 2.4s ease-out infinite;
}
@keyframes eyebrow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(5,17,242,0.35); }
  70% { box-shadow: 0 0 0 7px rgba(5,17,242,0); }
  100% { box-shadow: 0 0 0 0 rgba(5,17,242,0); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::after { animation: none; }
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.text-accent {
  background: linear-gradient(135deg, var(--blue-bright), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.12rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 44px;
}

.hero-stats {
  display: flex;
  gap: 38px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; transition: transform .3s var(--ease-soft); }
.hero-stats li:hover { transform: translateY(-3px); }
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--blue-deep);
  font-weight: 800;
  transition: color .3s ease;
}
.hero-stats li:hover strong { color: var(--blue-bright); }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-soft);
  will-change: transform;
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s var(--ease);
}
.hero-photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(2,8,115,0.05), rgba(2,8,115,0.5));
}
.hero-visual:hover .hero-photo-frame img { transform: scale(1.1); }

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 216px;
  border: 1px solid var(--border);
  z-index: 2;
}
.hero-card-1 { top: 6%; left: -10%; animation: float 5s ease-in-out infinite; }
.hero-card-2 { bottom: 8%; right: -10%; animation: float 5.5s ease-in-out infinite reverse; }
.icon-badge {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-brand));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.icon-badge .icon { width: 22px; height: 22px; }
.hero-card-title { margin: 0; font-weight: 700; color: var(--text); font-size: 0.92rem; }
.hero-card-sub { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

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

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.section > .container { width: 100%; }
.section-alt { background: var(--bg-alt); }
.section-photo { position: relative; overflow: hidden; }
.section-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--section-photo);
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(circle at var(--section-photo-pos, 85% 15%), black, transparent 45%);
  mask-image: radial-gradient(circle at var(--section-photo-pos, 85% 15%), black, transparent 45%);
}
.section-photo > .container { position: relative; z-index: 1; }
.section-head { max-width: 660px; margin: 0 auto 68px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.lead-text { font-size: 1.06rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 68px;
  align-items: center;
}
.about-visual { position: relative; display: flex; justify-content: center; }
.about-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  transition: box-shadow .35s var(--ease-soft);
}
.about-frame:hover { box-shadow: var(--shadow-lg); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-soft); }
.about-frame:hover img { transform: scale(1.06); }
.about-frame-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(5,7,15,0.55);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  color: #fff;
}
.about-frame-badge img { width: 34px; height: 34px; object-fit: contain; }
.about-frame-badge span { font-size: 0.85rem; font-weight: 600; }
.about-accent {
  position: absolute;
  width: 160px; height: 160px;
  background: var(--teal);
  opacity: 0.18;
  border-radius: 50%;
  bottom: -34px; left: -24px;
  z-index: -1;
  filter: blur(14px);
}
.pillars { display: flex; flex-direction: column; gap: 26px; margin-top: 34px; }
.pillar { display: flex; gap: 18px; padding: 8px; margin: -8px; border-radius: var(--radius-md); transition: transform .3s var(--ease-soft), background .3s var(--ease-soft); }
.pillar:hover { transform: translateX(6px); background: var(--bg-alt); }
.pillar-icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 15px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-brand);
  transition: background .3s var(--ease-soft), color .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.pillar:hover .pillar-icon {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-brand));
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}
.pillar h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pillar p { margin: 0; font-size: 0.95rem; }

/* =========================================================
   Horizontal sticky scroll — servicios destacados
   ========================================================= */
.h-scroll {
  position: relative;
  height: 340vh;
}
.h-scroll-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(2,8,80,0.9), rgba(5,11,61,0.94) 80%),
    url('/img/dna-render.jpg') center right / cover no-repeat,
    linear-gradient(160deg, var(--blue-deep), #050b3d 80%);
}
.h-scroll-pin::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  background: var(--blue-bright);
  opacity: 0.22;
  filter: blur(140px);
  border-radius: 50%;
  top: -220px; right: -160px;
}
.h-scroll-pin::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  background: var(--teal);
  opacity: 0.14;
  filter: blur(120px);
  border-radius: 50%;
  bottom: -180px; left: -120px;
}
.h-scroll-head {
  position: relative;
  z-index: 2;
  color: #fff;
  margin-bottom: 44px;
}
.h-scroll-head .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h-scroll-head h2 { color: #fff; margin-bottom: 10px; }
.h-scroll-head p { color: rgba(255,255,255,0.7); max-width: 460px; margin: 0; }
.h-scroll-progress {
  width: 220px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
  flex-shrink: 0;
}
.h-scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), #fff);
  border-radius: 999px;
}
.h-scroll-viewport {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
}
.h-scroll-track {
  display: flex;
  gap: 26px;
  will-change: transform;
}
.h-card {
  flex: 0 0 auto;
  width: min(340px, 78vw);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .35s var(--ease-soft), background .35s var(--ease-soft), border-color .35s var(--ease-soft);
}
.h-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(5,242,219,0.4);
}
.h-card-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.05em;
}
.h-card .icon-badge { background: rgba(255,255,255,0.12); }
.h-card h3 { color: #fff; font-size: 1.15rem; margin: 0; }
.h-card p { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin: 0; }
.h-card-tag {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}
.h-scroll-hint {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px auto 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  font-weight: 600;
}
.h-scroll-hint .icon { width: 16px; height: 16px; animation: nudge-x 1.6s ease-in-out infinite; }
@keyframes nudge-x { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  overflow: hidden;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft), border-color .35s var(--ease-soft);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-soft);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(5,17,242,0.1), rgba(5,242,219,0.15));
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-brand);
  margin-bottom: 20px;
  transition: transform .35s var(--ease-soft);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin: 0; }

.services-cta {
  margin-top: 52px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.services-cta p { margin: 0; font-weight: 600; color: var(--text); }

/* ---------- CTA banner wrapper ---------- */
.cta-banner-wrap {
  padding: 80px 0;
  background: var(--bg-alt);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.cta-banner-wrap .cta-banner { width: 100%; }

/* ---------- Servicios (page) — filtros y categorías ---------- */
.service-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .25s ease;
}
.filter-chip:hover { border-color: var(--blue-bright); color: var(--blue-brand); }
.filter-chip.active {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-brand));
  border-color: transparent;
  color: #fff;
}
.service-card[hidden] { display: none; }

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.info-strip-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  transition: transform .3s var(--ease-soft), background .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.info-strip-card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow-md); }
.info-strip-card h4 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.info-strip-card p { margin: 0; font-size: 0.9rem; }
.info-strip-card .icon-badge { flex-shrink: 0; transition: transform .3s var(--ease-soft); }
.info-strip-card:hover .icon-badge { transform: scale(1.08) rotate(-4deg); }

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-card {
  position: relative;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  overflow: hidden;
  transition: transform .35s var(--ease-soft), background .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-soft);
}
.trust-card:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow-md); }
.trust-card:hover::before { transform: scaleX(1); }
.trust-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-brand);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-soft);
}
.trust-card:hover .trust-icon { transform: scale(1.08) rotate(-4deg); }
.trust-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.trust-card p { font-size: 0.9rem; margin: 0; }

/* ---------- CTA banner con foto ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 0 24px;
  max-width: calc(var(--container) - 0px);
  margin-inline: auto;
  isolation: isolate;
}
.cta-banner-media { position: absolute; inset: 0; z-index: 0; }
.cta-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(2,8,115,0.94), rgba(5,17,242,0.75));
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  padding: 76px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 520px; }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 0; max-width: 460px; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.section-dark {
  background:
    linear-gradient(160deg, rgba(2,8,80,0.68), rgba(5,11,61,0.82) 70%),
    url('/img/banner-tubos-ensayo.jpg') center / cover no-repeat,
    linear-gradient(160deg, var(--blue-deep), #050b3d 70%);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.section-dark > .container { width: 100%; }
.section-dark::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: var(--blue-bright);
  opacity: 0.25;
  filter: blur(120px);
  border-radius: 50%;
  top: -200px; right: -150px;
}
.section-dark::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  background: var(--teal);
  opacity: 0.15;
  filter: blur(100px);
  border-radius: 50%;
  bottom: -150px; left: -100px;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-grid.map-grid { grid-template-columns: 1.4fr 1fr; }
.section-dark h2 { color: #fff; }
.lead-light { color: rgba(255,255,255,0.75); }

.contact-list { list-style: none; margin: 32px 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; transition: transform .3s var(--ease-soft); }
.contact-list li:hover { transform: translateX(6px); }
.contact-list .icon-badge { background: rgba(255,255,255,0.1); transition: background .3s ease, color .3s ease; }
.contact-list li:hover .icon-badge { background: var(--teal); color: var(--ink); }
.contact-list strong { color: #fff; display: block; margin-bottom: 2px; font-size: 0.95rem; }
.contact-list p { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.94rem; }
.contact-list a:hover { color: var(--teal); }

.social-links { display: flex; gap: 14px; flex-wrap: wrap; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}
.social-link:hover { background: rgba(255,255,255,0.1); border-color: var(--teal); }

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 1.2rem; margin-bottom: 20px; }
.form-row { margin-bottom: 18px; }
.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(5,17,242,0.12);
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 100%;
  min-height: 420px;
  transition: box-shadow .35s var(--ease-soft), transform .35s var(--ease-soft);
}
.map-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.15) contrast(1.05); }

.hours-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .35s var(--ease-soft), transform .35s var(--ease-soft);
}
.hours-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.hours-row { display: flex; justify-content: space-between; font-size: 0.94rem; transition: transform .25s var(--ease-soft); }
.hours-row:hover { transform: translateX(4px); }
.hours-row strong { color: var(--text); font-weight: 600; }
.hours-row span { color: var(--text-muted); }

/* =========================================================
   Footer — full screen
   ========================================================= */
.site-footer {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(5,7,15,0.72), rgba(5,7,15,0.88)),
    url('/img/industria-farmaceutica.jpg') center / cover no-repeat,
    var(--ink);
  color: rgba(255,255,255,0.65);
  overflow: hidden;
}
.footer-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; }
.footer-bg .blob-1 { top: -220px; left: -160px; opacity: 0.16; }
.footer-bg .blob-2 { bottom: -200px; right: -160px; opacity: 0.14; }
.footer-bg .dna-strand { opacity: 0.08; }

.footer-top {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}
.footer-top .container {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
  gap: 48px;
}
.footer-brand-block { display: flex; flex-direction: column; gap: 26px; }
.footer-logo {
  align-self: flex-start;
  height: 104px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  transition: transform .35s var(--ease-soft), opacity .35s ease;
}
.footer-logo:hover { transform: scale(1.04); opacity: 1; }
.footer-tagline { color: rgba(255,255,255,0.85); font-size: 1.5rem; font-family: var(--font-head); font-weight: 700; max-width: 380px; line-height: 1.3; margin: 0; }
.footer-brand-block p.footer-sub { color: rgba(255,255,255,0.5); font-size: 0.92rem; max-width: 340px; margin: 0; }
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}

.footer-col h4 {
  color: #fff; font-size: 0.92rem; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col a, .footer-col p {
  color: rgba(255,255,255,0.55);
  font-size: 0.94rem;
  margin: 0;
  transition: color .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col a:hover { color: var(--teal); }
.footer-col .icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--teal); }

.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); transform: translateY(-3px); }
.footer-social .icon { width: 18px; height: 18px; }

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 26px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--teal); }

/* ---------- Floating actions ---------- */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 600;
}
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  color: #fff;
}
.fab .icon { width: 24px; height: 24px; }
.fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lg); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: linear-gradient(135deg, var(--blue-bright), var(--blue-brand)); }
.fab-top {
  background: #fff;
  color: var(--blue-brand);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.fab-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-top .icon { width: 22px; height: 22px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .footer-top .container { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --header-h: 136px; --header-h-scrolled: 100px; }
  .brand-logo { height: 112px; }
  .site-header.scrolled .brand-logo { height: 84px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .contact-grid.map-grid { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .footer-top .container { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .cta-banner-inner { padding: 56px 36px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav-list { flex-direction: column; gap: 18px; }
  .nav-cta { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  :root { --header-h: 112px; --header-h-scrolled: 86px; }
  .brand-logo { height: 84px; }
  .site-header.scrolled .brand-logo { height: 66px; }

  .hero { padding-top: calc(var(--header-h) + 32px); min-height: auto; }
  .page-hero { min-height: auto; }
  .section, .section-dark, .cta-banner-wrap { min-height: auto; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .hero-card { position: static; margin-bottom: 16px; }
  .hero-visual { flex-direction: column; gap: 0; min-height: auto; }
  .hero-photo-frame { max-width: 100%; aspect-ratio: 4/3; margin-bottom: 16px; }

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

  .section { padding: 72px 0; }
  .cta-banner-wrap { padding: 0 0 64px; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-row-group { grid-template-columns: 1fr; }

  .h-scroll { height: auto; }
  .h-scroll-pin { position: relative; height: auto; padding: 72px 0; }
  .h-scroll-viewport { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .h-scroll-viewport::-webkit-scrollbar { height: 6px; }
  .h-scroll-viewport::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 999px; }
  .h-scroll-track { transform: none !important; }
  .h-card { scroll-snap-align: start; }
  .h-scroll-progress { display: none; }

  .cta-banner { margin: 0 16px; }
  .cta-banner-inner { padding: 44px 24px; flex-direction: column; align-items: flex-start; }

  .footer-top { padding: 90px 0 56px; }
  .footer-top .container { grid-template-columns: 1fr; gap: 40px; }
  .footer-logo { height: 76px; }
  .footer-tagline { font-size: 1.25rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .floating-actions { right: 14px; bottom: 14px; }
  .fab { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo-frame img, .hero-card { animation: none; transition: none; }
}
