/* ============================================================
   LAZAR — Sistema de diseño completo
   Laboratorios Lazar S.A. · Símbolo de Confianza
   ============================================================ */

:root {
  --navy:        #181F53;
  --navy-900:    #10163B;
  --blue:        #0047AB;
  --blue-mid:    #3B63A8;
  --blue-light:  #B7D3F1;
  --blue-100:    #CAE0FF;
  --sky:         #7CB9F2;
  --ink:         #012E58;
  --gray-700:    #484848;
  --gray-600:    #5D5D5D;
  --gray-400:    #979797;
  --line:        #D9D9D9;
  --white:       #FFFFFF;

  --maxw: 1280px;
  --nav-h: 88px;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 13px rgba(0,0,0,.18);
  --shadow-soft: 4px 4px 16px rgba(0,0,0,.16);
  --shadow-prod: 4px 4px 16px rgba(0,0,0,.30);

  --ease: cubic-bezier(.4,0,.2,1);
  --ff: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px,5vw,64px); }

/* ---------- Buttons ---------- */
.lazar-btn,
.btn-lazar {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 400; font-size: 1.125rem; line-height: 1;
  border: none; border-radius: var(--radius-pill);
  padding: .65em 3em;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap; cursor: pointer;
}
.lazar-btn-primary { background: var(--blue); color: var(--white); }
.lazar-btn-primary:hover { background: #013a8c; transform: translateY(-1px); color: var(--white); text-decoration: none; }
.lazar-btn-white { background: var(--white); color: var(--blue); }
.lazar-btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.lazar-btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.lazar-btn-ghost:hover { background: var(--blue); color: var(--white); }

/* ---------- Section label pill ---------- */
.pill-label {
  display: inline-block; white-space: nowrap; background: var(--navy); color: var(--white);
  font-weight: 700; font-size: clamp(1.1rem,2.4vw,1.5rem);
  padding: .5em 1.4em; border-radius: var(--radius-pill);
}

/* ---------- Forms ---------- */
.lazar-field { display: flex; flex-direction: column; gap: 8px; }
.lazar-field label { font-size: .95rem; font-weight: 400; color: var(--ink); }
.lazar-input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--blue-mid); border-radius: 10px; padding: .7em .9em; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.lazar-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,71,171,.12); }
textarea.lazar-input { resize: vertical; min-height: 120px; }
.lazar-input::placeholder { color: var(--gray-400); }

/* Underline-style fields */
.uline {
  width: 100%; font-family: inherit; font-size: 1.05rem; color: #fff;
  background: transparent; border: none; border-bottom: 1.5px solid rgba(255,255,255,.6);
  padding: .6em 0; transition: border-color .15s; display: block;
}
.uline::placeholder { color: rgba(255,255,255,.75); }
.uline:focus { outline: none; border-color: #fff; }
select.uline option { color: var(--ink); }

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 120;
  background: var(--navy); height: var(--nav-h);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 42px; width: auto; }
.nav__right { display: flex; align-items: center; gap: clamp(18px,3vw,40px); }
.nav__burger {
  display: flex; flex-direction: column; gap: 6px; background: none; border: none; padding: 6px;
}
.nav__burger span { width: 30px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.nav__cta { background: var(--blue); color: #fff; font-weight: 500; font-size: .98rem; padding: .85em 1.5em; border-radius: 1px; transition: background .18s var(--ease); white-space: nowrap; }
.nav__cta:hover { background: #013a8c; color: #fff; }

/* Dropdown menu */
.menu {
  position: fixed; top: var(--nav-h); right: 0; z-index: 115;
  width: min(420px,90vw);
  background: var(--blue); color: #fff;
  border-bottom-left-radius: 22px;
  padding: 32px 40px 40px;
  transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .28s var(--ease), opacity .28s var(--ease), visibility .28s;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.menu a { display: block; }
.menu__item { font-size: 1.15rem; padding: .5em 0; font-weight: 400; transition: color .15s; }
.menu__item:hover, .menu__item:hover a { color: #7fbcff; }
.menu__item.is-current { font-weight: 700; }
.menu__group > .menu__item { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.menu__group .chev { transition: transform .25s var(--ease); }
.menu__group.is-expanded .chev { transform: rotate(180deg); }
.menu__sub { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); padding-left: 18px; }
.menu__group.is-expanded .menu__sub { max-height: 280px; }
.menu__sub a { font-size: 1.02rem; padding: .4em 0; opacity: .92; transition: color .15s; }
.menu__sub a:hover { color: #7fbcff; opacity: 1; }
.menu__backdrop {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 114; background: rgba(15,20,45,.45);
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
}
.menu__backdrop.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--blue-light); color: var(--ink); padding: 64px 0 72px; margin-top: 0; }
.foot__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.foot__logo img { height: 54px; width: auto; margin-bottom: 50px; }
.foot__contact li { 
    display: flex; 
    font-weight: 300;
    align-items: center; 
    gap: 14px; 
    margin-bottom: 18px; 
    font-size: 1.25rem;
    color: var(--blue); 
}
.foot__contact a { transition: color .15s; }
.foot__contact a:hover { color: var(--blue); }
.foot__contact svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 14px 38px; align-content: start; padding-top: 84px; }
.foot__nav a { font-size: 1.05rem; transition: color .15s; }
.foot__nav a:hover { color: var(--blue); }
.foot__nav a.is-current { font-weight: 700; }
.copy {
  background: var(--navy-900); color: rgba(255,255,255,.92);
  text-align: center; font-size: .98rem; padding: 26px 20px;
  border-top-left-radius: 34px; border-top-right-radius: 34px;
  margin-top: -34px; position: relative;
}
.copy a { color: rgba(255,255,255,.8); }
.copy a:hover { color: #fff; }

/* ============================================================
   CURVED DIVIDERS
   ============================================================ */
.curve-top { border-top-left-radius: 50% 42px; border-top-right-radius: 50% 42px; }
.curve-bottom { border-bottom-left-radius: 50% 42px; border-bottom-right-radius: 50% 42px; }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: center 38% / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(95deg, rgba(1,28,72,.45) 0%, rgba(0,71,171,.50) 38%, rgba(0,71,171,.62) 64%, rgba(24,31,83,.78) 100%);
}
.hero__inner {
  position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: center;
  min-height: clamp(360px,40vw,530px);
  padding-block: clamp(40px,6vw,70px);
}
.hero__content { width: min(520px,100%); }
.hero h1 {
  font-weight: 400; color: var(--white);
  font-size: clamp(2.1rem,4.6vw,2.95rem); line-height: 1.04; letter-spacing: -.3px;
  text-shadow: 0 2px 8px rgba(8,12,35,.45);
}
.hero h1 b { font-weight: 900; }
.hero p { margin-top: 22px; max-width: 40ch; font-size: clamp(1rem,1.5vw,1.22rem); color: var(--white); font-weight: 400; line-height: 1.35; text-shadow: 0 1px 5px rgba(8,12,35,.5); }
.hero p b { font-weight: 700; }


/* Search bar */
.searchwrap { position: relative; z-index: 6; padding-top: clamp(28px,4vw,48px); }
.search {
  display: flex; align-items: stretch; background: #fff; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card); padding: 8px 10px; gap: 0; flex-wrap: wrap;
}
.search__field { display: flex; align-items: center; gap: 8px; padding: 10px 50px; position: relative; }
.search__field + .search__field { border-left: 1.5px solid var(--line); }
.search__field input.search__text { border: none; outline: none; font-size: 1rem; font-family: inherit; color: var(--ink); min-width: 160px; background: none; }
.search__field input.search__text::placeholder { color: var(--gray-400); }
.search__field select {
  border: none; outline: none; font-family: inherit; font-size: 1rem; color: var(--gray-600);
  background: none; appearance: none; padding-right: 22px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235D5D5D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right center;
}
.search__go { margin-left: auto; flex: none; width: 48px; height: 48px; border-radius: 50%; background: none; border: none; display: grid; place-items: center; align-self: center; transition: background .15s; }
.search__go:hover { background: var(--blue-light); }

/* Carousel */
.carousel-sec { padding: clamp(28px,4vw,44px) 0 0; }
.carousel { position: relative; background: #fff; border-radius: 26px; box-shadow: var(--shadow-card); padding: 34px clamp(20px,4vw,48px); }
.carousel__track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; background: var(--blue); border: none;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.22); transition: background .15s, transform .15s;
}
.carousel__arrow:hover { background: #013a8c; }
.carousel__arrow:disabled { opacity: .35; cursor: default; }
.carousel__arrow.prev { left: -22px; }
.carousel__arrow.next { right: -22px; }
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__foot { display: flex; justify-content: center; margin-top: 30px; }

/* Product card */
.prod { flex: 0 0 clamp(240px,28vw,290px); scroll-snap-align: start; border-radius: var(--radius-card); overflow: hidden; background: #fff; }
.prod__img { aspect-ratio: 1/.92; background: #fff; display: grid; place-items: center; padding: 18px; }
.prod__img img { max-height: 220px; width: auto; object-fit: contain; }
.prod__img.empty { background: #f4f8ff; }
.prod__body { background: var(--navy); color: #fff; padding: 18px 20px 22px; min-height: 212px;}
.prod__name { font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.prod__meta { font-size: .8rem; color: rgba(255,255,255,.86); line-height: 1.45; }
.prod__meta b { color: #fff; font-weight: 500; }
.prod__more { margin-top: 14px; display: inline-block; background: #fff; color: var(--blue-mid); font-weight: 700; font-size: .95rem; padding: .45em 1.4em; border-radius: var(--radius-pill); transition: transform .15s; }
.prod__more:hover { transform: translateY(-1px); }

/* ============================================================
   QUIÉNES SOMOS (sección homepage)
   ============================================================ */
.qs { padding: 100px 0 80px; }
.qs__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.qs h2 { font-weight: 300; color: var(--blue); font-size: clamp(1.8rem,4vw,2.6rem); line-height: 1.12; margin: 26px 0 18px; }
.qs h2 b { font-weight: 900; color: var(--blue); }
.qs p { font-size: 1.08rem; color: var(--gray-700); max-width: 42ch; }
.qs p b { font-weight: 700; }
.qs__img { position: relative; justify-self: center; width: min(420px,92%); aspect-ratio: 1; }
.qs__circle { position: absolute; border-radius: 50%; overflow: hidden; }
.qs__circle img { width: 100%; height: 100%; object-fit: contain; }
.qs__circle--main { top: 0; left: 50%; transform: translateX(-50%); width: 100%; aspect-ratio: 1; }
.qs__circle--accent { right: 2%; bottom: 2%; width: 40%; aspect-ratio: 1;}

/* ============================================================
   ATENCIÓN AL USUARIO
   ============================================================ */
.atu {
  position: relative; 
  background: var(--blue); 
  color: #fff; 
  padding: clamp(64px,10vw,120px) 0;
  overflow: hidden;
}
.atu::before { content: ""; position: absolute; left: 9%; top: 50%; transform: translateY(-50%); width: 96px; height: 150px; border-radius: 60px; background: var(--navy); opacity: .85; }
.atu__inner { position: relative; z-index: 2; max-width: 520px; margin-left: auto; text-align: right; }
.atu h2 { font-weight: 500; font-size: clamp(1.8rem,4vw, 2rem); line-height: 1.12; margin: 20px 0 16px; }
.atu h2 b { font-weight: 900; }
.atu p { font-size: 1.125rem; color: rgba(255,255,255,.92); margin-bottom: 26px; }
.atu p b { font-weight: 700; color: #fff; }

a{
  text-decoration: none!important;
}
a:hover{
  text-decoration: none!important;
}
/* ============================================================
   FARMACOVIGILANCIA (sección homepage)
   ============================================================ */
.fv { padding: clamp(56px,8vw,96px) 0; position: relative; overflow: hidden; }
.fv__inner { max-width: 560px; }
.fv h2 { font-weight: 300; color: var(--blue); font-size: clamp(1.8rem,4vw,2.6rem); line-height: 1.12; margin: 22px 0 18px; }
.fv h2 b { font-weight: 900; }
.fv p { font-size: 1.08rem; color: var(--ink); margin-bottom: 26px; max-width: 46ch; }
.fv p b { font-weight: 700; }
.fv__deco { position: absolute; left: 10%; bottom: -10px; width: 130px; height: 130px; border-radius: 50%; background: var(--blue); opacity: .9; z-index: -1;}

/* ============================================================
   CONTACTO (sección homepage)
   ============================================================ */
.ct { background: var(--navy); color: #fff; padding: clamp(56px,8vw,96px) 0; border-top-left-radius: 50% 48px; border-top-right-radius: 50% 48px; }
.ct h2 { text-align: center; font-weight: 300; font-size: clamp(1.7rem,3.6vw,2.4rem); margin-bottom: 36px; }

/* ============================================================
   QUIÉNES SOMOS (página)
   ============================================================ */
.page-head { text-align: center; padding: clamp(48px,7vw,84px) 0 18px; }
.page-head h1 { display: inline-block; white-space: nowrap; font-weight: 700; color: var(--blue); font-size: clamp(1.9rem,4.4vw,2.8rem); padding-bottom: 10px; border-bottom: 3px solid var(--blue); }

.timeline { padding: 64px 0 70px; }
.tl { position: relative; display: grid; column-gap: 0px; padding: 20px 0; }
.tl__axis { position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: var(--blue); }
.tl__node { position: relative; min-height: 500px; }
.tl__dot { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); transform: translate(-50%,-50%); box-shadow: 0 0 0 4px #fff; z-index: 2; }
.tl__card { position: relative; }
.tl__year { font-weight: 900; color: var(--blue); font-size: 1.5rem; line-height: 1; }
.tl__desc { font-size: .8rem; color: var(--gray-700); margin-top: 8px; line-height: 1.42; }
.tl__node.up .tl__card { position: absolute; left: 0; right: 0; bottom: calc(50% + 24px); }
.tl__node.down .tl__card { position: absolute; left: 0; right: 0; top: calc(50% + 24px); }
.tl__connector { position: absolute; left: 50%; width: 2px; background: var(--blue); transform: translateX(-50%); }
.tl__node.up .tl__connector { bottom: 50%; height: 24px; }
.tl__node.down .tl__connector { top: 50%; height: 24px; }

.mv { position: relative; background: var(--blue-light); padding: 80px 0 90px; border-top-left-radius: 50% 48px; border-top-right-radius: 50% 48px; }
.mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 980px; margin-inline: auto; }
.mv__card { position: relative; background: var(--navy); color: #fff; border-radius: 22px; padding: 64px 38px 40px; text-align: center; box-shadow: var(--shadow-card); }
.mv__icon { position: absolute; left: 50%; top: -60px; transform: translateX(-50%); border-radius: 50%; border: 10px solid #181f53; display: grid; place-items: center; }
.mv__card h3 { font-weight: 700; font-size: 1.5rem; margin-bottom: 14px; }
.mv__text { font-size: 1rem; color: rgba(255,255,255,.9); line-height: 1.55; }
.mv__text p { margin-bottom: .6em; }
.mv__text p:last-child { margin-bottom: 0; }
.mv__text strong, .mv__text b { color: #fff; font-weight: 700; }

.stats { padding: 60px 0; }
.stats__grid { display: flex; justify-content: center; gap: clamp(28px,7vw,90px); flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 10px; color: var(--blue); }
.stat__num { font-weight: 900; font-size: clamp(2.4rem,6vw,3.4rem); line-height: 1; }
.stat__info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stat__unit { font-size: .85rem; color: var(--blue-mid); font-weight: 500; line-height: 1; }
.stat__info img { width: 28px; height: 28px; object-fit: contain; }

.lazar-video { position: relative; aspect-ratio: 16/6.6; background: #0a0f2e; overflow: hidden; }
.lazar-video__media { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.lazar-video__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,15,46,.18); border: none; cursor: pointer; }
.lazar-video__play span { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .2s var(--ease); }
.lazar-video__play:hover span { transform: scale(1.08); }
.lazar-video__play svg { width: 34px; height: 34px; margin-left: 5px; }

.join { position: relative; background: #FFFFFF; padding: 80px 0 100px; }
.join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1000px; margin-inline: auto; }
.join h2 { font-weight: 900; color: var(--blue); font-size: clamp(2rem,4.6vw,2.9rem); line-height: 1.1; text-align: right; }
.join__form { background: var(--navy); border-radius: 22px; padding: 40px 38px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow-card); }
.join__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; }
.join__file { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 1rem; cursor: pointer; white-space: nowrap; }
.join__file input { display: none; }
.join__file svg { width: 20px; height: 20px; }

/* ============================================================
   FARMACOVIGILANCIA (página info)
   ============================================================ */
.fvinfo { padding: clamp(48px,7vw,90px) 0 90px; }
.fvinfo__block { max-width: 1040px; margin: 0 auto 52px; }
.fvinfo__block:last-child { margin-bottom: 0; }
.q-pill { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: clamp(1.05rem,2.4vw,1.4rem); padding: .6em 1.5em; border-radius: var(--radius-pill); margin-bottom: 26px; box-shadow: 0 4px 12px rgba(0,71,171,.2); }
.fvinfo p { font-size: 1.06rem; color: var(--ink); line-height: 1.62; margin-bottom: 16px; max-width: 90ch; }
.fvinfo p b { font-weight: 700; }
.fvinfo ul { margin: 4px 0 0; }
.fvinfo ul li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 1.06rem; color: var(--ink); line-height: 1.55; }
.fvinfo ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.fv-cta { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1.6px solid var(--blue); border-radius: var(--radius-pill); padding: .7em 1.4em; color: var(--ink); font-weight: 500; font-size: 1rem; margin: 8px 0 18px; transition: background .15s, color .15s; }
.fv-cta:hover { background: var(--blue); color: #fff; }
.fv-cta .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; transition: background .15s; }
.fv-cta:hover .ic { background: #fff; }
.fv-cta .ic svg { width: 18px; height: 18px; stroke: #fff; }
.fv-cta:hover .ic svg { stroke: var(--blue); }
.fvinfo a.mail { color: var(--blue); font-weight: 700; }

/* ============================================================
   FARMACOVIGILANCIA (formulario multi-paso)
   ============================================================ */
.form-sec { padding: clamp(40px,6vw,72px) 0 90px; }
.form-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.stepper { background: #fff; border-radius: 18px; box-shadow: var(--shadow-card); padding: 44px 34px; }
.step { position: relative; display: flex; gap: 18px; padding-bottom: 60px; }
.step:last-child { padding-bottom: 0; }
.step::after { content: ""; position: absolute; left: 18px; top: 38px; bottom: 22px; width: 1.5px; background: var(--blue); }
.step:last-child::after { display: none; }
.step__num { flex: none; width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; z-index: 2; transition: background .25s, color .25s, border-color .25s; }
.step__label { font-size: 1.02rem; color: var(--ink); padding-top: 6px; line-height: 1.3; transition: color .25s; }
.step[data-state="done"] .step__num,
.step[data-state="active"] .step__num { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.step[data-state="upcoming"] .step__num { background: var(--blue-light); color: #fff; border: 2px solid var(--blue-light); }
.step[data-state="active"] .step__label { font-weight: 700; }
.step[data-state="upcoming"] .step__label { color: var(--gray-400); }
.panel { background: #fff; border-radius: 18px; box-shadow: var(--shadow-card); padding: clamp(28px,4vw,48px); min-height: 420px; }
.step-page { display: none; }
.step-page.active { display: block; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px 22px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld label { font-size: .95rem; color: var(--ink); }
.fld .lazar-input { border: 1.5px solid var(--blue-mid); border-radius: 8px; }
.full { grid-column: 1/-1; }
.date-row { display: flex; gap: 14px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 18px; margin-top: 10px; }
.chk { display: flex; align-items: flex-start; gap: 8px; font-size: .70rem; color: var(--ink); cursor: pointer; line-height: 1.3; }
.chk input { margin-top: 2px; accent-color: var(--blue); width: 15px; height: 15px; flex: none; }
.panel__nav { display: flex; justify-content: center; gap: 18px; margin-top: 38px; }
.btn-prev { background: var(--blue-mid); color: #fff; }
.btn-prev:hover { background: #2d4f88; }
.success { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 380px; }
.success h2 { color: var(--blue); font-weight: 700; font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 14px; }
.success p { color: var(--ink); font-size: 1.15rem; margin-bottom: 28px; }
.section-label { font-size: .95rem; color: var(--ink); margin-bottom: 8px; display: block; }

/* ============================================================
   CONTACTO (página)
   ============================================================ */
.contact-top { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.contact-top__left { background: #fff; }
.contact-top__right { background: var(--blue); color: #fff; display: flex; align-items: center; }
.cform { width: 100%; max-width: 520px; padding: clamp(40px,5vw,64px) clamp(28px,4vw,56px); }
.cform h1 { font-weight: 700; font-size: clamp(1.8rem,4vw,2.4rem); margin-bottom: 30px; color: #fff; }
.cform .uline { margin-bottom: 26px; }
.cform__submit { margin-top: 8px; }
.address { text-align: center; padding: 50px 0 36px; }
.address__pin { width: 54px; height: 54px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin: 0 auto 18px; }
.address__pin svg { width: 26px; height: 26px; }
.address p { color: var(--ink); font-size: 1.2rem; line-height: 1.45; }
.lazar-map { width: 100%; height: clamp(340px,40vw,460px); border: none; display: block; filter: saturate(1.02); }

/* ============================================================
   MEDICAMENTOS (listado)
   ============================================================ */
.cat { padding: clamp(40px,6vw,72px) 0 90px; min-height: 60vh; }
.cat__head { margin-bottom: 30px; }
.cat__head h1 { font-weight: 700; color: var(--blue); font-size: clamp(1.7rem,4vw,2.4rem); padding-bottom: 12px; border-bottom: 2px solid var(--blue); }
.filters { display: flex; align-items: stretch; background: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow-card); padding: 8px 10px; gap: 0; flex-wrap: wrap; margin-bottom: 40px; }
.filters .f { display: flex; align-items: center; gap: 8px; padding: 10px 20px; }
.filters .f + .f { border-left: 1.5px solid var(--line); }
.filters input.ftext { border: none; outline: none; font-size: 1rem; font-family: inherit; color: var(--ink); min-width: 160px; background: none; }
.filters input.ftext::placeholder { color: var(--gray-400); }
.filters select { border: none; outline: none; font-family: inherit; font-size: 1rem; color: var(--gray-600); background: none; appearance: none; padding-right: 22px; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235D5D5D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right center; }
.filters .go { margin-left: auto; flex: none; width: 48px; height: 48px; border-radius: 50%; background: none; border: none; display: grid; place-items: center; align-self: center; transition: background .15s; }
.filters .go:hover { background: var(--blue-light); }
.lazar-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 30px; }
.lazar-card { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); background: #fff; display: flex; flex-direction: column; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.lazar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.lazar-card__img { aspect-ratio: 1/.78; background: #fff; display: grid; place-items: center; padding: 20px; }
.lazar-card__img img { max-height: 220px; width: auto; object-fit: contain; }
.lazar-card__img.empty { background: #f4f8ff; }
.lazar-card__body { background: var(--navy); color: #fff; padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.lazar-card__name { font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; }
.lazar-card__meta { font-size: .92rem; color: rgba(255,255,255,.86); line-height: 1.5; }
.lazar-card__meta b { color: #fff; font-weight: 500; }
.lazar-card__more { margin-top: auto; padding-top: 16px; }
.lazar-card__more a { display: inline-block; background: #fff; color: var(--blue-mid); font-weight: 700; font-size: .95rem; padding: .5em 1.5em; border-radius: var(--radius-pill); transition: transform .15s; }
.lazar-card__more a:hover { transform: translateY(-1px); }
.empty-msg { grid-column: 1/-1; text-align: center; color: var(--gray-600); padding: 50px 0; font-size: 1.1rem; }

/* ============================================================
   MEDICAMENTO (detalle)
   ============================================================ */
.detail { padding: clamp(40px,6vw,80px) 0 30px; }
.detail__top { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px,6vw,72px); align-items: start; }
.detail__media { background: #fff; border-radius: 22px; box-shadow: var(--shadow-card); padding: clamp(28px,4vw,48px); display: grid; place-items: center; aspect-ratio: 1/.9; }
.detail__media img { max-height: 100%; width: auto; object-fit: contain; }
.detail__info h1 { font-weight: 700; color: var(--blue); font-size: clamp(1.7rem,4vw,2.4rem); margin-bottom: 24px; }
.spec { font-size: 1.12rem; color: var(--ink); margin-bottom: 16px; line-height: 1.5; }
.spec b { font-weight: 700; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.actbtn { display: inline-flex; align-items: center; gap: 12px; background: transparent; border: 1.6px solid var(--blue); color: var(--blue); border-radius: var(--radius-pill); padding: .7em 1.4em; font-weight: 700; font-size: .98rem; transition: background .15s, color .15s; }
.actbtn:hover { background: var(--blue); color: #fff; }
.actbtn .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; transition: background .15s; }
.actbtn:hover .ic { background: var(--blue-mid); }
.actbtn .ic svg { width: 18px; height: 18px; stroke: #fff; }
.actbtn:hover .ic svg { stroke: var(--blue); }
.related { padding: 40px 0 80px; }
.related h2 { text-align: center; color: var(--blue); font-weight: 700; font-size: clamp(1.5rem,3.4vw,2rem); margin-bottom: 36px; }
.rel-carousel { position: relative; }
.rel-track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px; scrollbar-width: none; }
.rel-track::-webkit-scrollbar { display: none; }
.rel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); border: none; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.22); transition: background .15s; }
.rel-arrow:hover { background: #013a8c; }
.rel-arrow:disabled { opacity: .35; }
.rel-arrow.prev { left: -22px; }
.rel-arrow.next { right: -22px; }
.rel-card { flex: 0 0 clamp(230px,26vw,270px); scroll-snap-align: start; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); background: #fff; }
.rel-card__img { aspect-ratio: 1/.7; background: #fff; display: grid; place-items: center; padding: 16px; }
.rel-card__img img { max-height: 100%; width: auto; object-fit: contain; }
.rel-card__body { background: var(--navy); color: #fff; padding: 16px 18px 20px; }
.rel-card__name { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.rel-card__meta { font-size: .84rem; color: rgba(255,255,255,.82); line-height: 1.4; }
.rel-card__more { margin-top: 12px; display: inline-block; background: #fff; color: var(--blue-mid); font-weight: 700; font-size: .9rem; padding: .4em 1.3em; border-radius: var(--radius-pill); }
.related__foot { display: flex; justify-content: center; margin-top: 34px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  :root { --nav-h: 72px; }
  .nav__logo img { height: 34px; }
  .nav__cta { font-size: .85rem; padding: .7em 1em; }
  .foot__inner { grid-template-columns: 1fr; gap: 34px; }
  .foot__nav { padding-top: 0; }
  .qs__inner { grid-template-columns: 1fr; gap: 34px; }
  .qs__img { order: -1; }
  .atu__inner { margin-inline: auto; }
  .ct form { grid-template-columns: 1fr; }
  .search__field + .search__field { border-left: none; }
  .carousel__arrow.prev { left: 6px; }
  .carousel__arrow.next { right: 6px; }
  .tl { grid-template-columns: 1fr !important; row-gap: 8px; min-height: 0; padding: 0; }
  .tl__axis { display: none; }
  .tl__node { display: flex; gap: 16px; padding: 14px 0; border-left: 3px solid var(--blue); padding-left: 20px; min-height: 0; }
  .tl__dot { left: -9px; top: 22px; transform: none; }
  .tl__node .tl__card,
  .tl__node.up .tl__card,
  .tl__node.down .tl__card { position: static; }
  .tl__connector { display: none; }
  .mv__grid { grid-template-columns: 1fr; gap: 64px; }
  .join__grid { grid-template-columns: 1fr; gap: 28px; }
  .join h2 { text-align: center; }
  .contact-top { grid-template-columns: 1fr; min-height: 0; }
  .contact-top__left { display: none; }
  .cform { max-width: none; margin-inline: auto; }
  .detail__top { grid-template-columns: 1fr; }
  .rel-arrow.prev { left: 6px; }
  .rel-arrow.next { right: 6px; }
  .form-layout { grid-template-columns: 1fr; }
  .stepper { display: flex; gap: 0; justify-content: space-between; padding: 24px; }
  .step { flex-direction: column; align-items: center; text-align: center; padding-bottom: 0; flex: 1; }
  .step::after { left: auto; right: -50%; top: 18px; bottom: auto; width: 100%; height: 1.5px; }
  .step__label { font-size: .82rem; padding-top: 10px; }
  .grid2,.grid3,.result-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .filters .f + .f { border-left: none; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .lazar-grid { grid-template-columns: 1fr; }
}

/* ── Medicamentos — buscador y vistas ──────────────────────── */
.med-search { margin-bottom: 40px; }
/* ── Medicamentos — familias y productos ────────────────────── */
.med-fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; }
.med-fam-card { display: flex; flex-direction: column; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); background: #fff; text-decoration: none; color: inherit; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.med-fam-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.med-fam-card__img { aspect-ratio: 1; background: #f4f8ff; display: grid; place-items: center; padding: 20px; }
.med-fam-card__img img { max-width: 100%; max-height: 120px; object-fit: contain; }
.med-fam-card__body { background: var(--navy); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: start; gap: 8px; min-height: 74px; }
.med-fam-card__name { font-weight: 700; font-size: .95rem; }
.med-fam-card__count { font-size: .78rem; color: rgba(255,255,255,.65); white-space: nowrap; }
.med-ver-todos { text-align: center; margin-top: 40px; }

.cat__familia-head { margin-bottom: 30px; }
.cat__familia-head h2 { font-weight: 700; color: var(--blue); font-size: clamp(1.5rem,3.5vw,2.2rem); padding-bottom: 12px; border-bottom: 2px solid var(--blue); display: inline-block; }
.med-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.med-empty { text-align: center; color: var(--gray-600); padding: 50px 0; font-size: 1.1rem; }
.med-back { margin-top: 40px; }
