:root{
    --navy:        #143C5A;
    --navy-dark:   #0B2739;
    --navy-ink:    #16324A;
    --teal:        #2AB0C7;
    --teal-light:  #7FDCEA;
    --teal-soft:   rgba(42,176,199,.10);
    --bg-clinical: #EFF5F7;
    --white:       #FFFFFF;
    --gray:        #5C7080;
    --gray-light:  #A9BAC5;
    --radius-lg:   22px;
    --radius-md:   16px;
    --shadow-card: 0 18px 40px -18px rgba(20,60,90,.35);
    --shadow-card-hover: 0 24px 48px -16px rgba(20,60,90,.45);
    --font-head:   'Sora', sans-serif;
    --font-body:   'Inter', sans-serif;
    --nav-h: 92px;
  }


.hero{ margin-top:var(--nav-h); }

  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; scroll-padding-top:76px; }
  body{
    font-family:var(--font-body);
    color:var(--navy-ink);
    background:var(--bg-clinical);
    overflow-x:hidden;
  }
  h1,h2,h3,h4,h5,.font-head{ font-family:var(--font-head); color:var(--navy); letter-spacing:-.01em; font-weight:500; }
  h1{ font-weight:500; }
  h2{ font-weight:400; }
  h3{ font-weight:500; }
  .accent-script{ font-style:italic; color:var(--teal); font-weight:500; }

  .section-pad{ padding:4.5rem 0; }
  @media (min-width:992px){ .section-pad{ padding:4.5rem 0; } }

  .glow-bg{ position:relative; overflow:hidden; }
  .glow-bg::before{
    content:""; position:absolute; top:50%; left:50%;
    width:min(560px, 80vw); height:min(560px, 80vw);
    transform:translate(-50%,-50%); border-radius:50%;
    background:radial-gradient(circle, rgba(42,176,199,.18) 0%, rgba(42,176,199,0) 70%);
    filter:blur(6px); pointer-events:none; z-index:0;
    animation:glowPulse 7s ease-in-out infinite;
  }
  .glow-bg > .container{ position:relative; z-index:1; }
  @keyframes glowPulse{
    0%, 100%{ transform:translate(-50%,-50%) scale(1); opacity:.7; }
    50%{ transform:translate(-50%,-50%) scale(1.12); opacity:1; }
  }

  /* ---------- NAVBAR ---------- */
  /* DESPUÉS */
  .gp-navbar{
    position:fixed; top:0; left:0; right:0; z-index:1030;
    padding:.6rem 0; transition:background .35s ease, box-shadow .35s ease, padding .35s ease;
    background:rgba(255,255,255,.78);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-shadow:0 8px 30px -12px rgba(20,60,90,.15);
  }
  .gp-navbar.is-scrolled{
    background:rgba(255,255,255,.92);
    box-shadow:0 8px 30px -12px rgba(20,60,90,.25);
  }
  .gp-navbar .navbar-brand img{ height:70px; transition:filter .3s ease; }
  .gp-navbar .nav-link{
    font-family:var(--font-body); font-weight:500; font-size:.92rem;
    color:var(--navy); padding:.5rem 1rem !important; transition:color .25s ease;
  }
  .gp-navbar .nav-link:hover, .gp-navbar .nav-link.active{ color:var(--teal); }
  .gp-navbar .btn-cta{
    background:var(--teal); color:var(--white); font-weight:600; border-radius:50px;
    padding:.55rem 1.4rem; font-size:.88rem; border:none; white-space:nowrap;
  }
  .gp-navbar .navbar-toggler{ border:none; padding:.35rem .55rem; background:rgba(20,60,90,.08); border-radius:10px; line-height:1; }
  .gp-navbar .navbar-toggler .fa-bars{ color:var(--navy); font-size:1.1rem; }

  /* Desktop: links inline, no toggler */
  .gp-navbar .navbar-links{ display:flex; align-items:center; gap:.2rem; }
  .gp-navbar .navbar-toggler{ display:none; }
  .gp-navbar .nav-dropdown{ display:none; }

  @media (max-width:991.98px){
    .gp-navbar .navbar-links{ display:none; }
    .gp-navbar .navbar-toggler{ display:inline-flex; align-items:center; justify-content:center; }
    .ocultar{display: none!important;}
    /* AJUSTE PARA MÓVIL: Panel central que ocupa el ancho disponible */
    .gp-navbar .nav-dropdown{
      position:absolute; top:calc(100% + 10px); left:1rem; right:1rem; width:auto;
      background:var(--white); border-radius:16px; box-shadow:0 22px 44px -14px rgba(11,39,57,.4);
      padding:1rem; z-index:1040; display:flex; flex-direction:column; gap:.2rem;
      opacity:0; transform:translateY(-8px) scale(.97); pointer-events:none;
      transition:opacity .2s ease, transform .2s ease;
    }
    .gp-navbar .nav-dropdown.show{ display:flex; opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
    .gp-navbar .nav-dropdown .nav-link{
      color:var(--navy) !important; font-size:.95rem; padding:.75rem .8rem !important;
      border-radius:10px;
    }
    .gp-navbar .nav-dropdown .nav-link:hover, .gp-navbar .nav-dropdown .nav-link.active{
      background:var(--teal-soft); color:var(--teal) !important;
    }
    .gp-navbar .nav-dropdown .btn-cta{ margin-top:.8rem; text-align:center; padding: .75rem; }
  }

  /* ---------- HERO (carrusel) ---------- */
  /* AJUSTE DE ALTURA: 60vh para móvil, 40vh para desktop */
  .hero{ position:relative; min-height:70vh; isolation:isolate; }
  .hero .carousel, .hero .carousel-inner, .hero .carousel-item{ height:70vh; }
  .hero .carousel-item{
    position:relative; display:flex !important; align-items: end; padding-bottom: 60px; /* Centrado vertical para compensar el menor alto */
  }
  .hero .slide-bg{
    position:absolute; inset:0; background-position:center; background-size:cover; background-repeat:no-repeat;
    z-index:-2;
  }
  .hero .carousel-item::before{
    content:""; position:absolute; inset:0;
    z-index:-1;
  }
  .hero-content{
    padding:7.5rem 1rem 0rem; color:var(--white); width:100%;
  }
  .hero-content h1{ color:var(--white); font-size:1.9rem; font-weight:500; line-height:1.2; }
  .hero-content p.lead{ color:rgba(255,255,255,.85); font-size:1rem; max-width:520px; }
  @media (min-width:768px){ .hero-content h1{ font-size:2.5rem; } }
  
  @media (min-width:992px){
    /* Alto de 40% (40vh) en PC */
    .hero{ min-height:70vh; }
    .hero .carousel, .hero .carousel-inner, .hero .carousel-item{ height:70vh;align-items:center; }
    .hero-content{ padding-top:6rem; padding-left:3rem; padding-right:3rem; }
  }

  .hero-actions .btn{ font-weight:600; border-radius:50px; padding:.75rem 1.6rem; }
  .btn-teal{ background:var(--teal); color:var(--white); border:none; }
  .btn-teal:hover{ background:#249AAF; color:var(--white); }
  .btn-outline-light-custom{ background:transparent; border:2px solid rgba(255,255,255,.55); color:var(--white); }
  .btn-outline-light-custom:hover{ background:rgba(255,255,255,.12); color:var(--white); }

  /* Ken Burns sutil, solo desktop, respeta reduced-motion */
  @media (min-width:992px){
    .hero .carousel-item.active .slide-bg{ animation:kenBurns 9s ease-out forwards; }
  }
  @keyframes kenBurns{
    from{ transform:scale(1); } to{ transform:scale(1.08); }
  }

  .hero .carousel-indicators{ bottom:1.4rem; }
  .hero .carousel-indicators [data-bs-target]{
    width:8px; height:8px; border-radius:50%; background-color:rgba(255,255,255,.5);
    border:none; margin:0 4px;
  }
  .hero .carousel-indicators .active{ background-color:var(--teal-light); }
  .hero .carousel-control-prev, .hero .carousel-control-next{ width:10%; opacity:.4; transition:opacity .2s ease; }
  .hero .carousel-control-prev:hover, .hero .carousel-control-next:hover{ opacity:.85; }
  .hero .carousel-control-prev-icon, .hero .carousel-control-next-icon{ width:1.6rem; height:1.6rem; }

  /* ---------- TRUST BAR ---------- */
  .trust-bar{
    background:var(--white); margin-top:-1px; position:relative; z-index:2;
    box-shadow:0 -10px 30px -20px rgba(20,60,90,.3);
  }
  .trust-item{
    display:flex; align-items:center; gap:.9rem; padding:1.3rem 1rem;
    border-bottom:1px solid #EDF2F4;
  }
  .trust-item:last-child{ border-bottom:none; }
  @media (min-width:768px){
    .trust-item{ border-bottom:none; border-right:1px solid #EDF2F4; justify-content:center; }
    .trust-item:last-child{ border-right:none; }
  }
  .trust-item .icon{
    width:46px; height:46px; min-width:46px; border-radius:50%;
    background:var(--teal-soft); color:var(--teal); display:flex; align-items:center; justify-content:center;
    font-size:1.15rem;
  }
  .trust-item strong{ display:block; font-family:var(--font-head); font-size:.92rem; color:var(--navy); }
  .trust-item span{ font-size:.8rem; color:var(--gray); }

  /* ---------- FORMAS FARMACÉUTICAS (scroll-snap mobile / grid desktop) ---------- */
  .scroller{
    display:flex; gap:1.1rem; overflow-x:auto; scroll-snap-type:x mandatory;
    padding:.5rem .25rem 1.5rem; margin:0 -.25rem;
    -webkit-overflow-scrolling:touch;
  }
  .scroller::-webkit-scrollbar{ height:6px; }
  .scroller::-webkit-scrollbar-thumb{ background:var(--gray-light); border-radius:10px; }
  @media (min-width:992px){
    .scroller{ display:grid; grid-template-columns:repeat(3,1fr); overflow:visible; padding:0; margin:0; }
  }

  .form-card{
    scroll-snap-align:start; flex:0 0 74%; max-width:280px;
    background:var(--white); border-radius:var(--radius-lg); overflow:hidden;
    box-shadow:var(--shadow-card); transition:transform .3s ease, box-shadow .3s ease;
  }
  @media (min-width:992px){ .form-card{ flex:none; max-width:none; } }
  .form-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-card-hover); }
  .form-card .img-wrap{ position:relative; height:170px; overflow:hidden; }
  .form-card .img-wrap img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
  .form-card:hover .img-wrap img{ transform:scale(1.06); }
  .form-card .icon-badge{
    position:absolute; top:12px; left:12px; width:42px; height:42px; border-radius:12px;
    background:var(--white); color:var(--teal); display:flex; align-items:center; justify-content:center;
    font-size:1.1rem; box-shadow:0 8px 18px -6px rgba(20,60,90,.35);
  }
  .form-card .body{ padding:1.1rem 1.2rem 1.3rem; }
  .form-card .body h3{ font-size:1.02rem; margin:0; }

  /* ---------- DIFERENCIALES (signature diagram) ---------- */
  .diff-wrap{ position:relative; }
  .diff-center-img{
    width:100%; max-width:280px; margin:0 auto 2.2rem; display:block;
    border-radius:var(--radius-lg);
  }
  .diff-list{ list-style:none; margin:0; padding:0; position:relative; }
  .diff-list::before{
    content:""; position:absolute; left:22px; top:6px; bottom:6px; width:2px;
    background:linear-gradient(180deg, var(--teal) 0%, rgba(42,176,199,.15) 100%);
  }
  .diff-item{ position:relative; padding-left:60px; margin-bottom:1.8rem; }
  .diff-item:last-child{ margin-bottom:0; }
  .diff-item .icon{
    position:absolute; left:0; top:0; width:46px; height:46px; border-radius:50%;
    background:var(--white); border:2px solid var(--teal); color:var(--teal);
    display:flex; align-items:center; justify-content:center; font-size:1.05rem;
    box-shadow:0 8px 18px -8px rgba(20,60,90,.3); z-index:1;
  }
  .diff-item h3{ font-size:1.02rem; margin-bottom:.25rem; }
  .diff-item p{ font-size:.9rem; color:var(--gray); margin:0; }

  @media (min-width:992px){
    .diff-wrap{ display:grid; grid-template-columns:1fr 300px 1fr; align-items:center; gap:2rem; }
    .diff-center-img{ margin:0; grid-row:1; grid-column:2; }
    .diff-list{ display:contents; }
    .diff-list::before{ display:none; }
    .diff-col-left, .diff-col-right{ display:flex; flex-direction:column; gap:2.2rem; justify-content:center; }
    .diff-item{ padding-left:60px; margin-bottom:0; }
    .diff-col-right .diff-item{ padding-left:0; padding-right:60px; text-align:right; }
    .diff-col-right .diff-item .icon{ left:auto; right:0; }
  }

  /* ---------- ESPECIALIDADES ---------- */
  .spec-card{
    scroll-snap-align:start; flex:0 0 62%; max-width:210px;
    background:var(--white); border-radius:var(--radius-md); padding:1.6rem 1.1rem;
    text-align:center; box-shadow:var(--shadow-card); transition:transform .3s ease, box-shadow .3s ease;
  }
  @media (min-width:992px){ .spec-card{ flex:none; max-width:none; } }
  .spec-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-card-hover); }
  .spec-card .icon{
    width:56px; height:56px; margin:0 auto 1rem; border-radius:50%;
    background:var(--teal-soft); color:var(--teal); display:flex; align-items:center; justify-content:center;
    font-size:1.4rem;
  }
  .spec-card h3{ font-size:.95rem; margin-bottom:.4rem; }
  .spec-card p{ font-size:.8rem; color:var(--gray); margin:0; }
  @media (min-width:992px){
    .spec-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem; }
    .spec-grid > *:nth-child(5),.spec-grid > *:nth-child(6),.spec-grid > *:nth-child(7){ grid-column:span 1; }
  }

  /* ---------- PROCESO ---------- */
  .proceso-track{ position:relative; }
  .proceso-item{ position:relative; padding-left:70px; padding-bottom:2.4rem; }
  .proceso-item:last-child{ padding-bottom:0; }
  .proceso-item::before{
    content:""; position:absolute; left:23px; top:52px; bottom:-8px; width:2px;
    background:rgba(20,60,90,.15);
  }
  .proceso-item:last-child::before{ display:none; }
  .proceso-num{
    position:absolute; left:0; top:0; width:48px; height:48px; border-radius:14px;
    background:var(--navy); color:var(--white); display:flex; align-items:center; justify-content:center;
    font-family:var(--font-head); font-weight:700; font-size:1.05rem;
  }
  .proceso-item h3{ font-size:1.08rem; margin-bottom:.3rem; }
  .proceso-item p{ color:var(--gray); font-size:.92rem; margin:0; }
  @media (min-width:992px){
    .proceso-track{ display:flex; gap:2rem; }
    .proceso-item{ flex:1; padding-left:0; padding-top:66px; padding-bottom:0; }
    .proceso-item::before{ left:0; right:0; top:23px; bottom:auto; height:2px; width:auto; }
    .proceso-num{ position:absolute; top:0; left:0; }
  }

  /* ---------- CTA FINAL ---------- */
  .cta-final{
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color:var(--white); border-radius:var(--radius-lg); padding:3rem 1.6rem;
    position:relative; overflow:hidden;
  }
  .cta-final::after{
    content:""; position:absolute; top:-80px; right:-80px; width:260px; height:260px; border-radius:50%;
    background:radial-gradient(circle, rgba(42,176,199,.35) 0%, rgba(42,176,199,0) 70%);
  }
  .cta-final h2{ color:var(--white); }
  .cta-final .btn-light-teal{ background:var(--white); color:var(--navy); font-weight:700; border-radius:50px; }
  .cta-final .btn-line{ border:2px solid rgba(255,255,255,.5); color:var(--white); border-radius:50px; font-weight:700; }

  /* ---------- FOOTER ---------- */
  footer.gp-footer{ background:var(--navy-dark); color:rgba(255,255,255,.75); padding:3.5rem 0 1.5rem; }
  footer.gp-footer h5{ color:var(--white); font-family:var(--font-head); font-size:1rem; margin-bottom:1rem; }
  footer.gp-footer a{ color:rgba(255,255,255,.7); text-decoration:none; }
  footer.gp-footer a:hover{ color:var(--teal-light); }
  footer.gp-footer .social-icon{
    width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08);
    display:inline-flex; align-items:center; justify-content:center; margin-right:.5rem;
  }
  footer.gp-footer hr{ border-color:rgba(255,255,255,.12); margin:2rem 0 1.2rem; }
  footer.gp-footer .fine{ font-size:.78rem; color:rgba(255,255,255,.45); }

  /* ---------- WHATSAPP FLOAT ---------- */
  .wa-float{
    position:fixed; bottom:22px; right:22px; z-index:1050;
    width:58px; height:58px; border-radius:50%; background:#25D366; color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:1.6rem;
    box-shadow:0 10px 26px -6px rgba(0,0,0,.4); transition:transform .25s ease;
    text-decoration: none;
  }
  .wa-float:hover{ transform:scale(1.08); color:#fff; }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  }
  /* ---------- AJUSTE MÓVIL: DIFERENCIALES ---------- */
  @media (max-width: 991.98px) {
    /* Agrega el espacio faltante entre el fin de la primera lista y el inicio de la segunda */
    .diff-list.diff-col-left {
      margin-bottom: 1.8rem;
    }
    /* Extiende la línea conectora a través del nuevo espacio y unifica el color */
    .diff-list.diff-col-left::before {
      bottom: -2rem; 
      background: var(--teal); 
    }
    /* Ajusta el inicio de la segunda línea para un empalme perfecto */
    .diff-list.diff-col-right::before {
      top: 0;
    }
  }

  .hero .slide-bg{
  position:absolute; inset:0; background-position:center; background-size:cover; background-repeat:no-repeat;
  background-image:var(--bg-mobile);
  z-index:-2;
}
@media (min-width:768px){
  .hero .slide-bg{ background-image:var(--bg-desktop); }
}