/* Integra Trials homepage (premium refresh). Palette: purple #7C2983, teal #14D7CD. */
.hx { --purple:#7C2983; --purple-d:#2b1040; --purple-m:#4a1a5c; --teal:#14D7CD; --ink:#24202b; --muted:#5c5666; --soft:#f6f2f8; --line:#e6dcea;
      font-family:'Roboto',system-ui,sans-serif; color:var(--ink); font-size:17px; line-height:1.65; }
.hx h1,.hx h2,.hx h3 { font-family:'Outfit','Roboto',sans-serif; letter-spacing:-.01em; margin:0; line-height:1.25; }
.hx { background:#fff; }
.hx-wrap { width:100%; max-width:1200px; margin:0 auto; padding:0 28px; }
.hx p { margin:0 0 1em; }
.hx a { text-decoration:none; }
.hx-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Buttons */
.hx-btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 28px; border-radius:999px; font-weight:600; font-size:16px; line-height:1.2; border:2px solid transparent; transition:transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.hx-btn:hover { transform:translateY(-2px); }
.hx-btn-primary { background:var(--teal); color:var(--purple-d); border-color:var(--teal); }
.hx-btn-primary:hover { background:#fff; border-color:#fff; color:var(--purple); }
.hx-btn-ghost { color:#fff; border-color:rgba(255,255,255,.7); }
.hx-btn-ghost:hover { background:#fff; color:var(--purple); border-color:#fff; }
.hx-btn-outline { color:var(--purple); border-color:var(--purple); background:transparent; }
.hx-btn-outline:hover { background:var(--purple); color:#fff; }
.hx-participants .hx-btn-primary:hover, .hx-areas .hx-btn-primary:hover { background:var(--purple); border-color:var(--purple); color:#fff; }
.hx-actions { display:flex; flex-wrap:wrap; gap:14px; }
.hx-center { text-align:center; margin-top:44px; display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }

/* Hero */
.hx-hero { position:relative; background:var(--purple-d); color:#fff; overflow:hidden; min-height:640px; display:flex; align-items:center; padding:70px 0 150px; }
.hx-hero-slides, .hx-slide { position:absolute; inset:0; }
.hx-slide { background:var(--d) center right/cover no-repeat; opacity:0; transition:opacity 1.4s ease; }
@media (min-width: 992px) { .hx-slide { left:14%; -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 32%); mask-image:linear-gradient(90deg,transparent 0,#000 32%); } }
.hx-slide.is-on { opacity:1; }
.hx-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(43,16,64,.78) 0%, rgba(43,16,64,.35) 45%, rgba(43,16,64,0) 70%); pointer-events:none; }
.hx-hero-inner { position:relative; z-index:2; }
.hx-hero-copy { max-width:min(600px,44vw); }
.hx-eyebrow { font-size:13px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); margin-bottom:18px!important; }
.hx .hx-title { font-size:clamp(2.4rem,4.6vw,4.1rem); line-height:1.1; font-weight:600; color:#fff; margin-bottom:22px; }
.hx-lead { font-size:19px; line-height:1.6; color:rgba(255,255,255,.92); max-width:520px; margin-bottom:32px!important; }
.hx-pause { position:absolute; right:22px; bottom:118px; z-index:3; width:40px; height:40px; border-radius:50%; border:1.5px solid rgba(255,255,255,.7); background:rgba(43,16,64,.55); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.hx-pause:hover { background:#fff; color:var(--purple); }
.hx-pause svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.hx-pause .hx-i-play { display:none; fill:currentColor; stroke-width:1; }
.hx-pause.is-paused .hx-i-pause { display:none; }
.hx-pause.is-paused .hx-i-play { display:block; }

/* Audience paths */
.hx-paths { position:relative; z-index:4; margin-top:-96px; padding-bottom:20px; }
.hx-paths-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.hx-path { background:#fff; border-radius:20px; padding:34px 30px 30px; box-shadow:0 18px 44px rgba(43,16,64,.16); border-top:4px solid var(--teal); display:flex; flex-direction:column; transition:transform .25s ease, box-shadow .25s ease; }
.hx-path:hover { transform:translateY(-6px); box-shadow:0 24px 54px rgba(43,16,64,.22); }
.hx-icon { width:54px; height:54px; border-radius:14px; background:var(--soft); display:inline-flex; align-items:center; justify-content:center; color:var(--purple); margin-bottom:18px; }
.hx-icon svg { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.hx-path h3 { font-size:24px; font-weight:600; color:var(--purple); margin-bottom:10px; }
.hx-path p { color:var(--muted); font-size:16px; flex:1; }
.hx-link { display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--purple); border-bottom:2px solid var(--teal); align-self:flex-start; padding-bottom:2px; }
.hx-link svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s ease; }
.hx-link:hover svg { transform:translateX(4px); }
.hx-link:hover { color:var(--purple-d); }

/* Sections */
.hx-section { padding:96px 0; }
.hx-head { max-width:760px; margin:0 auto 52px; text-align:center; }
.hx-kicker { font-size:13px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--purple); margin-bottom:12px!important; }
.hx-head h2 { font-size:clamp(1.9rem,3.2vw,2.8rem); line-height:1.15; font-weight:600; color:var(--purple-d); }
.hx-sub { margin-top:16px; color:var(--muted); font-size:18px; margin-bottom:0!important; }

/* Pillars */
.hx-pillars-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.hx-pillar { position:relative; padding:34px 30px; border:1px solid var(--line); border-radius:20px; background:#fff; }
.hx-num { display:block; font-family:'Outfit',sans-serif; font-size:44px; font-weight:300; line-height:1; color:#0a7f7a; margin-bottom:14px; }
.hx-pillar h3 { font-size:23px; font-weight:600; color:var(--purple); margin-bottom:14px; }
.hx-pillar ul { list-style:none; margin:0; padding:0; }
.hx-pillar li { position:relative; padding-left:20px; margin-bottom:12px; color:var(--muted); font-size:16px; }
.hx-pillar li::before { content:""; position:absolute; left:0; top:.65em; width:8px; height:8px; border-radius:50%; background:var(--teal); }

/* Capabilities (dark) */
.hx-caps { background:linear-gradient(135deg,var(--purple-d) 0%,var(--purple-m) 55%,var(--purple) 100%); color:#fff; }
.hx-caps .hx-kicker { color:var(--teal); }
.hx-head-light h2 { color:#fff; }
.hx-head-light .hx-sub { color:rgba(255,255,255,.88); }
.hx-caps-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.hx-cap { border:1.5px solid rgba(255,255,255,.28); border-radius:18px; padding:26px 22px; background:rgba(255,255,255,.04); transition:border-color .25s ease, background-color .25s ease, transform .25s ease; }
.hx-cap:hover { border-color:var(--teal); background:rgba(255,255,255,.09); transform:translateY(-4px); }
.hx-cap .hx-icon { background:rgba(20,215,205,.14); color:var(--teal); }
.hx-cap h3 { font-size:19px; font-weight:600; color:#fff; margin-bottom:8px; line-height:1.25; }
.hx-cap p { font-size:15px; color:rgba(255,255,255,.86); margin:0; line-height:1.55; }
.hx-caps .hx-btn-primary:hover { background:#fff; color:var(--purple); }

/* Participants */
.hx-participants { background:#fff; }
.hx-part-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.hx-card { text-align:center; padding:36px 30px; border:2px solid var(--purple); border-radius:20px; transition:transform .25s ease, box-shadow .25s ease; }
.hx-card:hover { transform:translateY(-5px); box-shadow:0 16px 36px rgba(124,41,131,.16); }
.hx-card img { display:block; width:64px; height:64px; margin:0 auto 16px; }
.hx-card h3 { font-size:22px; font-weight:600; color:var(--purple); margin-bottom:10px; }
.hx-card p { color:var(--muted); font-size:16px; margin:0; }

/* Therapeutic areas */
.hx-areas { background:var(--soft); }
.hx-areas-grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.hx-areas-grid a { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px 18px; color:var(--purple-d); font-weight:500; font-size:16px; line-height:1.3; height:100%; transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.hx-areas-grid a:hover { border-color:var(--teal); transform:translateY(-3px); box-shadow:0 10px 24px rgba(43,16,64,.1); }
.hx-areas-grid li { min-width:0; }
.hx-areas-grid span { min-width:0; overflow-wrap:anywhere; }
.hx-areas-grid img { width:40px; height:40px; flex:none; border-radius:10px; background:var(--soft); padding:6px; object-fit:contain; }

/* Physicians */
.hx-phys { background:#fff; }
.hx-phys-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:56px; align-items:center; }
.hx-phys-copy h2 { font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.15; font-weight:600; color:var(--purple-d); margin-bottom:18px; }
.hx-phys-copy p { color:var(--muted); }
.hx-phys-copy .hx-actions { margin-top:26px; }
.hx-phys .hx-btn-primary:hover { background:var(--purple); border-color:var(--purple); color:#fff; }
.hx-phys .hx-btn-ghost { color:var(--purple); border-color:var(--purple); }
.hx-phys .hx-btn-ghost:hover { background:var(--purple); color:#fff; }
.hx-phys-img img { width:100%; height:auto; border-radius:24px; display:block; box-shadow:0 20px 48px rgba(43,16,64,.18); }
#medicos, #capacidades, #participantes, #areas { scroll-margin-top:90px; }

/* Contact strip */
.hx-contact { background:var(--purple-d); color:#fff; padding:56px 0; }
.hx-contact-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; }
.hx-contact h3 { font-size:15px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--teal); margin-bottom:8px; }
.hx-contact p { margin:0; color:#fff; font-size:16px; }
.hx-contact a { color:#fff; border-bottom:1px solid rgba(255,255,255,.45); }
.hx-contact a:hover { color:var(--teal); border-bottom-color:var(--teal); }

/* Closing */
.hx-closing { background:var(--teal); text-align:center; padding:64px 0; }
.hx-closing h2 { font-size:clamp(1.8rem,3vw,2.6rem); font-weight:600; color:var(--purple-d); margin-bottom:10px; }
.hx-closing p { color:var(--purple-d); font-size:19px; margin:0 auto; max-width:720px; }

/* Motion */
.hx-anim .hx-reveal { opacity:0; transform:translateY(26px); transition:opacity .75s ease, transform .75s ease; transition-delay:calc(var(--i,0)*90ms); }
.hx-anim .hx-reveal.is-in { opacity:1; transform:none; }
.hx-anim .hx-path.is-in:hover, .hx-anim .hx-cap.is-in:hover, .hx-anim .hx-card.is-in:hover { transition-delay:0s; }
@media (prefers-reduced-motion: reduce) {
  .hx-slide { transition:none; }
  .hx-anim .hx-reveal { opacity:1; transform:none; transition:none; }
  .hx *, .hx *::before { animation:none!important; }
  .hx-btn:hover, .hx-path:hover, .hx-cap:hover, .hx-card:hover, .hx-areas-grid a:hover { transform:none; }
}

html:lang(es) .hx .hx-title { font-size:clamp(2.2rem,3.7vw,3.4rem); }
@media (max-width: 575px) { html:lang(es) .hx .hx-title { font-size:1.95rem; } }

/* Tablet */
@media (max-width: 1199px) {
  .hx-caps-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hx-areas-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 991px) {
  .hx-hero { display:block; min-height:0; padding:0 0 130px; }
  .hx-hero::after { display:none; }
  .hx-hero-slides { position:relative; inset:auto; height:clamp(300px,52vw,380px); }
  .hx-slide { left:0; -webkit-mask-image:none; mask-image:none; background-image:var(--d); background-position:72% center; background-size:cover; }
  .hx-hero-inner { padding-top:34px; }
  .hx-hero-copy { max-width:none; }
  .hx-pause { top:14px; bottom:auto; right:14px; }
  .hx-paths { margin-top:-84px; }
  .hx-pillars-grid { grid-template-columns:1fr; max-width:680px; margin-left:auto; margin-right:auto; }
  .hx-paths-grid, .hx-part-grid { gap:16px; }
  .hx-path { padding:28px 22px 24px; }
  .hx-card { padding:30px 20px; }
  .hx-section { padding:72px 0; }
  .hx-phys-grid { grid-template-columns:1fr; gap:36px; }
  .hx-phys-img { max-width:420px; margin:0 auto; }
  .hx-contact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 699px) { .hx-areas-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* Mobile */
@media (max-width: 767px) {
  .hx-paths-grid, .hx-part-grid { grid-template-columns:1fr; max-width:520px; margin-left:auto; margin-right:auto; }
}
@media (max-width: 575px) {
  .hx-slide { background-image:var(--m); background-position:center 100%; }
  .hx { font-size:16px; }
  .hx .hx-title { font-size:2.15rem; margin-bottom:18px; }
  .hx-eyebrow { font-size:12px; letter-spacing:.09em; }
  .hx-lead { font-size:17px; }
  .hx-btn { width:100%; }
  .hx-actions, .hx-center { flex-direction:column; align-items:stretch; }
  .hx-caps-grid { grid-template-columns:1fr; }
  .hx-areas-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .hx-areas-grid a { padding:12px; gap:10px; font-size:14.5px; }
  .hx-areas-grid img { width:34px; height:34px; }
  .hx-contact-grid { grid-template-columns:1fr; }
  .hx-head { margin-bottom:36px; }
  .hx-section { padding:60px 0; }
}

/* ===== Phase 5: mobile hero (<=767px). Purpose-made 824x640 art, aspect-locked so faces are never cropped; slides crossfade without a dip or double exposure ===== */
@media (max-width: 767px) {
  .hx-hero-slides { height:auto; aspect-ratio:824/640; max-height:460px; background:#443876; }
  .hx-slide { background-image:var(--m); background-size:cover; background-position:50% 14%; background-color:#443876; }
  .hx-pause { top:12px; right:12px; width:44px; height:44px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .hx-slide { transition:opacity 0s linear 1.1s; z-index:0; }
  .hx-slide.is-on { transition:opacity 1.1s ease; z-index:1; }
}
