:root {
  --dark: #07111f;
  --dark2: #0d1b2f;
  --blue: #0aa3ff;
  --cyan: #64e3ff;
  --text: #233044;
  --muted: #738197;
  --bg: #f7fbff;
  --white: #fff;
  --shadow: 0 22px 60px rgba(5, 23, 42, .16);
  --radius: 26px;
  --mv-strip-h: 38px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  padding-top: 0 !important;
  font-family: Montserrat, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden
}

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

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

main {
  margin-top: 0 !important;
  padding-top: 0 !important
}

.container {
  width: min(1180px, 92%);
  margin: auto
}

/* Barra superior con marquesina + datos */
.top-info-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  min-height: var(--mv-strip-h);
  background: linear-gradient(90deg, #083f5d, #0b6f96);
  color: #fff;
  font-size: .88rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .25s ease;
  will-change: transform
}

.top-info-strip.strip-hidden {
  transform: translateY(-110%);
  opacity: 0
}

.top-info-strip__marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: .62rem 0
}

.top-info-strip__track {
  display: inline-flex;
  gap: 3rem;
  min-width: 200%;
  animation: mvMarquee 24s linear infinite;
  will-change: transform
}

.top-info-strip__track span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  letter-spacing: .02em
}

.top-info-strip__contact {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: .62rem 1.25rem;
  background: rgba(0, 0, 0, .14);
  font-weight: 700;
  white-space: nowrap
}

.top-info-strip__contact a,
.top-info-strip__contact span {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem
}

@keyframes mvMarquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* Header flotante sobre slider */
.nav {
  position: fixed !important;
  top: var(--mv-strip-h);
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4%;
  background: rgba(8, 25, 38, .70);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .32);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease, background .32s ease;
  will-change: transform
}

.nav.nav-hidden {
  transform: translateY(calc(-100% - var(--mv-strip-h)))
}

.nav.nav-visible {
  transform: translateY(0);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14)
}

.nav.nav-at-top {
  box-shadow: none;
  background: rgba(8, 25, 38, .70)
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none
}

.brand-logo {
  display: block;
  width: min(240px, 42vw);
  height: auto;
  object-fit: contain
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #fff;
  font-weight: 700;
  font-size: 14px
}

.nav-links a {
  position: relative
}

.nav-links a:not(.btn-nav):after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: .3s
}

.nav-links a:hover:after {
  width: 100%
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer
}

/* Botones */
.btn-nav,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: .3s
}

.btn-nav,
.btn.primary {
  background: linear-gradient(135deg, var(--blue), #0662f4);
  color: white;
  box-shadow: 0 14px 28px rgba(10, 163, 255, .28)
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, .55);
  color: white;
  background: rgba(255, 255, 255, .08)
}

.btn.dark {
  color: var(--dark);
  border-color: #bed3e9
}

.btn:hover {
  transform: translateY(-3px)
}

/* Slider principal */
.hero,
.hero-slider,
.slider,
.main-slider,
.home-hero {
  margin-top: 0 !important
}

.hero {
  height: 100vh;
  min-height: 700px;
  background: #000
}

.hero-slider,
.hero-slide {
  height: 100%;
  position: relative;
  overflow: hidden
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(8%);
  transition: opacity 1.15s ease, transform 1.4s cubic-bezier(.19, 1, .22, 1)
}

.hero-slide:before {
  content: "";
  position: absolute;
  inset: -4%;
  background: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1.18);
  transition: transform 7s ease
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2
}

.hero-slide.active:before {
  transform: scale(1.02) translateX(-2%)
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 10, 23, .88), rgba(3, 10, 23, .55), rgba(3, 10, 23, .18));
  z-index: 1
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, 90%);
  padding-left: 6%;
  top: 52%;
  transform: translateY(-50%);
  color: white
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 900;
  font-size: 12px
}

.hero h1 {
  font-size: clamp(42px, 7vw, 88px);
  line-height: .95;
  margin: 16px 0 10px;
  font-weight: 900
}

.hero h2 {
  font-size: clamp(24px, 3vw, 42px);
  margin: 0 0 20px;
  color: #dff6ff
}

.hero p {
  font-size: 18px;
  line-height: 1.8;
  color: #e4edf8
}

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

.slider-btn {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: white;
  backdrop-filter: blur(10px);
  cursor: pointer
}

.slider-btn.prev {
  left: 24px
}

.slider-btn.next {
  right: 24px
}

.slider-dots {
  position: absolute;
  z-index: 8;
  bottom: 36px;
  left: 6%;
  display: flex;
  gap: 10px
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .45);
  transition: .3s;
  cursor: pointer
}

.slider-dots button.active {
  width: 34px;
  background: var(--cyan)
}

/* Secciones */
.section {
  padding: 110px 0
}

.page-hero-offset {
  padding-top: 180px
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center
}

.section h1,
.section h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  margin: 14px 0 20px;
  color: var(--dark)
}

.section p {
  line-height: 1.8;
  color: var(--muted)
}

.center {
  text-align: center;
  display: block
}

.lead {
  max-width: 720px;
  margin: 0 auto 36px
}

.image-stack {
  position: relative;
  min-height: 520px
}

.image-stack img:first-child {
  width: 74%;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.image-stack img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 8px solid white
}

.mini-features {
  display: grid;
  gap: 12px;
  margin-top: 28px
}

.mini-features span {
  padding: 14px 18px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20, 55, 90, .08);
  font-weight: 700
}

.mini-features i {
  color: var(--blue);
  margin-right: 8px
}

.parallax {
  background: linear-gradient(rgba(5, 16, 31, .86), rgba(5, 16, 31, .86)), url('../img/sliders/slider2.webp') center/cover fixed;
  color: white
}

.parallax h2,
.parallax p {
  color: white
}

.glass {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 42px;
  backdrop-filter: blur(14px)
}

.doctor-img {
  max-width: 360px;
  margin: auto;
  border-radius: 50%;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, .4))
}

/* Tarjetas y grids */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px
}

.stat,
.doctor-card,
.person,
.product,
.equip,
.news-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(20, 55, 90, .08);
  transition: .35s
}

.stat:hover,
.doctor-card:hover,
.product:hover,
.equip:hover,
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow)
}

.stat strong {
  display: block;
  font-size: 34px;
  color: var(--blue)
}

.stat span {
  font-weight: 800
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.doctors-grid {
  grid-template-columns: repeat(5, 1fr)
}

.doctor-card {
  text-align: center
}

.doctor-card img,
.person img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 6px solid #eef8ff
}

.doctor-card h3,
.person h3,
.product h3,
.equip h3 {
  margin: 0 0 10px;
  color: var(--dark)
}

.small {
  max-width: 880px;
  margin: 0 auto
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px
}

.product {
  text-align: center;
  padding: 22px
}

.product img {
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 12px
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.equip {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center
}

.equip img {
  height: 135px;
  width: 180px;
  object-fit: cover;
  border-radius: 20px
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px
}

.news-card {
  overflow: hidden;
  padding: 0
}

.news-card img {
  height: 230px;
  width: 100%;
  object-fit: cover
}

.news-card div {
  padding: 24px
}

.news-card small {
  color: var(--blue);
  font-weight: 800
}

/* Artículos */
.article-container {
  max-width: 980px
}

.article-cover {
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin: 30px 0
}

.article-image {
  border-radius: 22px;
  margin: 16px 0
}

.video-frame {
  aspect-ratio: 16/9;
  margin: 20px 0
}

.video-frame iframe {
  border: 0;
  border-radius: 22px
}

.article-content {
  line-height: 1.9;
  color: var(--text)
}

/* Formularios */
.form-card {
  background: white;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.form-grid .full {
  grid-column: 1/-1
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d9e4ef;
  border-radius: 16px;
  padding: 15px 16px;
  font-family: Montserrat;
  font-size: 15px
}

textarea {
  min-height: 140px
}

.alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin-top: 16px;
  font-weight: 700
}

.ok {
  background: #e8fff4;
  color: #0aa3ff
}

.error {
  background: #fff0f0;
  color: #ad1d1d
}

/* Footer y WhatsApp */
.footer {
  background: var(--dark);
  color: #d7e9fb;
  padding-top: 70px
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr;
  gap: 40px
}

.footer h3,
.footer h4 {
  color: white
}

.footer a {
  display: block;
  margin: 10px 0
}

.social {
  display: flex;
  gap: 12px
}

.social i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08)
}

.copy {
  text-align: center;
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 40px;
  color: #9bb3c8
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 80;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #0aa3ff, #075bd7);
  box-shadow: 0 16px 35px rgba(10, 163, 255, .35);
  font-size: 34px
}

.wa-float span {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(10, 163, 255, .55);
  border-radius: 50%;
  animation: pulse 1.8s infinite
}

@keyframes pulse {
  to {
    transform: scale(1.25);
    opacity: 0
  }
}

@media(max-width:1050px) {

  .doctors-grid,
  .product-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .equipment-grid,
  .two-col {
    grid-template-columns: 1fr
  }

  .nav-links {
    position: fixed;
    top: calc(var(--mv-strip-h) + 84px);
    left: 4%;
    right: 4%;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(10, 80, 120, .12);
    border-radius: 22px;
    padding: 24px;
    display: none;
    flex-direction: column;
    box-shadow: 0 22px 60px rgba(5, 23, 42, .16);
    color: #10233a
  }

  .nav-links.open {
    display: flex
  }

  .menu-toggle {
    display: block
  }
}

@media(max-width:900px) {
  :root {
    --mv-strip-h: 74px
  }

  .top-info-strip {
    grid-template-columns: 1fr
  }

  .top-info-strip__marquee,
  .top-info-strip__contact {
    grid-column: 1
  }

  .top-info-strip__contact {
    justify-content: center;
    flex-wrap: wrap;
    font-size: .78rem;
    padding: .55rem .85rem
  }

  .brand-logo {
    width: 190px
  }

  .nav {
    top: var(--mv-strip-h)
  }
}

@media(max-width:650px) {
  .nav {
    top: var(--mv-strip-h);
    padding: 12px 4%
  }

  .brand-logo {
    width: 165px
  }

  .hero {
    min-height: 640px
  }

  .hero-content {
    padding-left: 8%;
    top: 56%
  }

  .slider-btn {
    display: none
  }

  .section {
    padding: 76px 0
  }

  .page-hero-offset {
    padding-top: 160px
  }

  .card-grid,
  .product-grid,
  .footer-grid,
  .form-grid,
  .doctors-grid {
    grid-template-columns: 1fr
  }

  .equipment-grid {
    grid-template-columns: 1fr
  }

  .equip {
    grid-template-columns: 1fr
  }

  .equip img {
    width: 100%;
    height: 210px
  }

  .section-head {
    display: block
  }

  .image-stack {
    min-height: 420px
  }

  .footer-grid {
    gap: 18px
  }
}

@media(prefers-reduced-motion:reduce) {

  .nav,
  .top-info-strip,
  .top-info-strip__track {
    transition: none;
    animation: none
  }

  .parallax {
    background-attachment: scroll
  }
}
/* FIX NAV MOBILE */
@media (max-width: 768px){
  .nav{
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .brand{
    max-width: 58%;
    overflow: hidden;
  }

  .brand-logo{
    max-width: 150px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .menu-toggle{
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 1002;
  }

  .nav-links{
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    width: auto;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 22px;
    border-radius: 22px;
    overflow: hidden;
  }

  .nav-links a{
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
/* FIX GLOBAL OVERFLOW MOBILE */
html,
body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

img,
video,
iframe{
  max-width: 100%;
}

/* FIX MARQUESINA / TOPBAR MOBILE */
.top-strip,
.topbar,
.marquee-bar,
.marquee-wrapper,
.marquee-track,
.header-marquee{
  max-width: 100vw;
  overflow: hidden;
}

@media (max-width: 768px){
  .top-strip,
  .topbar,
  .marquee-bar{
    width: 100%;
    max-width: 100vw;
    grid-template-columns: 1fr !important;
    overflow: hidden;
  }

  .marquee-wrapper,
  .header-marquee{
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }

  .marquee-track{
    display: inline-flex;
    width: max-content;
    max-width: none;
    white-space: nowrap;
  }

  .top-contact,
  .top-address,
  .top-phone{
    width: 100%;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
  }

  .nav{
    width: 100%;
    max-width: 100vw;
    padding-top: 30px;
  }

  .hero,
  .hero-slider,
  .slide,
  .slide-bg,
  main,
  section{
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
}
