/* ============================================================
   VARIABLES
   ============================================================ */
:root{
  --primary:#008D99;
  --primary-dark:#003C48;
  --primary-mid:#003C48;
  --cyan:#008D99;
  --teal:#008D99;
  --light:#edf9fd;
  --panel:#f5fcff;
  --line:#0FC8D8;
  --text:#003C48;
  --muted:#003C48;
  --shadow:0 16px 34px rgba(0, 60, 72, .10);
}
/* ============================================================
   BASE
   ============================================================ */
*{box-sizing:border-box}
html,body{margin:0;overflow-x:hidden;background:#fff;color:var(--text);font-family:Inter,Arial,sans-serif;font-size:16px;line-height:1.35}
a{text-decoration:none}
img{max-width:100%;display:block}
.page-wrap{max-width:1310px;margin:0 auto;padding-left:22px;padding-right:22px}


/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #008D99;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 141, 153, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 141, 153, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 2;
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #008D99;
    border-radius: 50%;
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 767.98px) {
    .whatsapp-float {
        display: none;
    }
}

/* Contact banner móvil compartido con el index. */
.contact-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #0FC8D8;
    box-shadow: 0 -6px 22px rgba(0, 60, 72, 0.14);
    padding: 5px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

.contact-icon-bottom {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    min-height: 58px;
    position: relative;
    background: transparent;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.contact-icon-bottom:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #dcecf4;
}

.contact-icon-bottom i {
    width: 48px;
    height: 48px;
    border: 1px solid #0FC8D8;
    border-radius: 50%;
    color: #003C48;
    background: #edf8fd;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 60, 72, 0.08);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.contact-icon-bottom:nth-child(2) i {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #0FC8D8, #008D99);
    box-shadow: 0 3px 8px rgba(0, 60, 72, 0.14);
}

.contact-icon-bottom:nth-child(3) i {
    border-color: #0FC8D8;
    color: #008D99;
    background: #eafafa;
    box-shadow: 0 2px 6px rgba(0, 141, 153, 0.09);
}

.contact-booking-hint {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 2;
    min-width: max-content;
    padding: 9px 14px;
    border: 1px solid rgba(0, 141, 153, 0.22);
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #0FC8D8, #008D99);
    box-shadow: 0 7px 18px rgba(0, 60, 72, 0.18);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px) scale(0.96);
    animation: contactBookingHint 5.4s ease 0.8s both;
}

.contact-booking-hint::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-top-color: #008D99;
    transform: translateX(-50%);
}

@keyframes contactBookingHint {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 8px) scale(0.96);
    }
    12%, 76% {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0) scale(1);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 4px) scale(0.98);
    }
}

.contact-icon-bottom .fa-whatsapp {
    font-size: 25px;
}

.contact-icon-bottom:hover i,
.contact-icon-bottom:focus i {
    transform: scale(1.08);
    box-shadow: 0 3px 9px rgba(0, 60, 72, 0.12);
}

.contact-icon-bottom:focus-visible {
    outline: none;
}

.contact-icon-bottom:active {
    color: inherit;
    background: transparent;
}

.contact-icon-bottom:active i {
    transform: scale(0.96);
}

@media (min-width: 769px) {
    .contact-banner {
        display: none;
    }

}

/* ============================================================
   HEADER LEGACY BOOTSTRAP
   Reemplazado por HEADER COMPARTIDO MEDISIS al final del archivo.
   ============================================================ */
/* ============================================================
   HERO
   ============================================================ */
.hero{position:relative;min-height:390px;background:linear-gradient(90deg,#eef9fe 0%,#fff 36%,#e7f8fe 100%);overflow:hidden}.hero:before{content:"";position:absolute;left:0;right:0;bottom:-32px;height:86px;background:#fff;border-radius:50% 50% 0 0/100% 100% 0 0;z-index:1}.hero h1{margin:0 0 16px;color:var(--primary-dark);font-size:59px;line-height:.98;font-weight:800;letter-spacing:-.04em}.hero h1 span{display:block;color:#008D99;font-family:"Libre Baskerville",Georgia,serif;font-size:57px;letter-spacing:-.045em}
/* ============================================================
   SERVICIOS
   ============================================================ */.section-kicker{margin:0;color:#008D99;text-transform:uppercase;font-weight:800;font-size:12px;margin-bottom: 6px;letter-spacing:.03em}.services-panel{margin-top:22px;padding:18px 28px 28px}.services-panel h2{font-weight:800;color:var(--primary-dark);font-size:32px;margin:6px 0 0}.title-line{width:42px;height:3px;background:var(--primary);border-radius:10px;margin:11px auto 22px}.service-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}.service-card{min-height:150px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 22px rgba(0, 60, 72, .08);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:17px 12px 10px;color:var(--primary-dark);transition:.2s ease}.service-card:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(0, 60, 72, .14)}.service-card>i{font-size:58px;line-height:1;color:#008D99;margin-bottom:12px}.service-card h3{font-size:18px;font-weight:800;line-height:1.12;margin:0 0 6px}.service-card span{font-size:22px;color:var(--primary)}.socials{display:flex;gap:12px}.socials a{width:28px;height:28px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:14px}
@media (max-width:1199px){.page-wrap{max-width:100%;padding-left:28px;padding-right:28px}.hero h1{font-size:50px}.hero h1 span{font-size:49px}.service-grid{gap:12px}}
@media (max-width:991px){.hero h1{font-size:46px}.hero h1 span{font-size:44px}.service-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:767px){.page-wrap{padding-left:18px;padding-right:18px}.hero{background:#eef9fe}.hero:before{display:none}.hero h1{font-size:37px;line-height:1.03}.hero h1 span{font-size:36px}.services-panel{border-radius:16px}.services-panel h2{font-size:25px}.service-grid{grid-template-columns:repeat(2,1fr)}.service-card{min-height:130px}.service-card>i{font-size:43px}.service-card h3{font-size:15px}}
@media (max-width:420px){.service-grid{grid-template-columns:1fr}.hero h1{font-size:32px}.hero h1 span{font-size:31px}}

/* Harmonizacion visual basada en servicio_endodoncia */
:root{
  --primary:#008D99;
  --primary-dark:#003C48;
  --primary-mid:#008D99;
  --cyan:#008D99;
  --teal:#008D99;
  --light:#eef9fe;
  --panel:#f5fcff;
  --line:#0FC8D8;
  --text:#003C48;
  --muted:#003C48;
  --shadow:0 16px 45px rgba(0, 60, 72, .08);
}

html,body{
  color:var(--text);
  font-family:"Inter",Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}

.page-wrap{
  max-width:1368px;
  padding-left:54px;
  padding-right:54px;
}

.hero{
  min-height:568px;
  background:rgba(248,253,255,1);
}

.hero h1{
  margin:0;
  color:#003C48;
  font-size:clamp(48px,5vw,70px);
  line-height:.95;
  letter-spacing:-.055em;
  font-weight:900;
}

.hero h1 span{
  margin-top:10px;
  color:#008D99;
  font-family:"Inter",Arial,Helvetica,sans-serif;
  font-size:clamp(26px,2.1vw,34px);
  font-weight:900;
  letter-spacing:-.05em;
  line-height:1.06;
}

.services-panel{
  margin-top:16px;
}

.services-panel h2{
  color:#003C48;
  font-weight:900;
  letter-spacing:-.045em;
}

.section-kicker{
  color:#008D99;
}

.title-line{
  width:34px;
  height:3px;
  margin:10px auto 22px;
}

.service-card{
  border-color:var(--line);
  box-shadow:0 12px 22px rgba(0, 60, 72, .08);
}

.service-card h3{
  font-weight:800;
}

@media (max-width:1199px){
  .page-wrap{
    max-width:100%;
    padding-left:36px;
    padding-right:36px;
  }
}

@media (max-width:991px){
  .page-wrap{
    padding-left:28px;
    padding-right:28px;
  }

  .hero{
    min-height:auto;
  }
}

@media (max-width:767px){
  .page-wrap{
    padding-left:18px;
    padding-right:18px;
  }

  .hero h1{
    font-size:clamp(35px,11vw,48px);
  }

  .hero h1 span{
    font-size:clamp(24px,7.8vw,32px);
  }
}

/* Espaciado vertical uniforme entre secciones apiladas */
#servicios{
  margin-top:30px;
  margin-bottom:30px;
}

#servicios{
  padding-top:30px;
  padding-bottom:30px;
}

/* Componentes legacy de agenda/footer heredados del diseño gastro anterior */

/* Header legacy Bootstrap: no usado por especialidad_gastronterologia.html */

body{
  padding-top:78px;
}

@media (max-width:991.98px){

  body{
    padding-top:76px;
  }
}

/* Hero de gastro: mismas reglas dimensionales que el banner del index. */
.hero.gastro-hero-banner{
  width:100%;
  max-width:100%;
  min-height:0;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#f7fafc;
}

.hero.gastro-hero-banner::before{
  display:none;
}

.gastro-hero-banner__frame{
  position:relative;
  width:100%;
  max-width:100%;
  height:clamp(400px,33.333vw,724px);
  max-height:724px;
  margin:0 auto;
  overflow:hidden;
  background:#f7fafc;
  contain:paint;
}

.gastro-hero-banner__image{
  display:block;
  width:100%;
  height:100%;
  margin:0;
  object-fit:contain;
  object-position:center;
}

.gastro-hero-banner__picture{
  display:block;
  width:100%;
  height:100%;
}

@media (max-width:767.98px){
  .gastro-hero-banner__frame{
    height:auto;
    max-height:none;
    aspect-ratio:4 / 3;
    background:#fff;
  }

  .gastro-hero-banner__image{
    object-fit:cover;
    object-position:left center;
  }
}

/* Acentos luminosos de marca para gastro, sin intervenir la imagen clinica del hero */
:root{
  --warm-coral:#008D99;
  --warm-orange:#0FC8D8;
  --warm-soft:rgba(15, 200, 216, 0.15);
}

.hero h1 span{
  color:var(--warm-coral);
}

.section-kicker{
  color:var(--warm-coral);
}

.title-line{
  background:linear-gradient(90deg,var(--warm-coral),var(--warm-orange));
}


.service-card span{
  color:var(--warm-coral);
}

.service-card > i{
  color:var(--warm-coral);
}

/* Servicios gastroenterológicos: selector visual propio del área digestiva. */
#servicios.services-panel--gastro{
  padding:10px 22px 64px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:#fff;
  box-shadow:none;
}

#servicios.services-panel--gastro .section-kicker{
  color:#008D99;
  letter-spacing:.09em;
}

#servicios.services-panel--gastro h2{
  margin:0;
  color:#003C48;
  font-family:"Poppins",sans-serif;
  font-size:clamp(32px,3.4vw,34px);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.05;
}

#servicios.services-panel--gastro h2 span{
  color:#008D99;
}

#servicios .services-panel__intro{
  max-width:620px;
  margin:12px auto 0;
  color:#003C48;
  font-size:13px;
  line-height:1.5;
}

#servicios.services-panel--gastro .title-line{
  width:42px;
  height:3px;
  margin:18px auto 30px;
  background:#008D99;
}

#servicios.services-panel--gastro .service-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}

#servicios .gastro-service-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:0;
  min-width:0;
  min-height:218px;
  padding:24px 12px 18px;
  overflow:hidden;
  border:1px solid #edf2f6;
  border-radius:10px;
  background:#fff;
  color:#003C48;
  text-align:center;
  text-decoration:none;
  box-shadow:0 9px 26px rgba(0, 60, 72, .07);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}

#servicios .gastro-service-card:hover,
#servicios .gastro-service-card:focus-visible{
  transform:translateY(-5px);
  border-color:rgba(0, 141, 153, .28);
  color:#003C48;
  box-shadow:0 18px 36px rgba(0, 60, 72, .14);
}

#servicios .gastro-service-card:focus-visible{
  outline:3px solid rgba(0, 141, 153, .22);
  outline-offset:3px;
}

#servicios .service-card__icon{
  flex:0 0 82px;
  display:grid;
  place-items:center;
  width:82px;
  height:82px;
  margin:0 auto 16px;
  color:#008D99;
  transition:transform .22s ease,color .22s ease;
}

#servicios .service-card__icon svg{
  display:block;
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:2.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

#servicios .gastro-service-card:hover .service-card__icon,
#servicios .gastro-service-card:focus-visible .service-card__icon{
  color:#008D99;
  transform:scale(1.05);
}

#servicios .gastro-service-card h3{
  flex:1 1 auto;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height:42px;
  margin:0;
  color:#003C48;
  font-size:13px;
  font-weight:800;
  line-height:1.28;
  text-align:center;
}

#servicios .service-card__arrow{
  position:static;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  margin:12px auto 0;
  border-radius:0;
  background:transparent;
  color:#008D99;
  font-size:18px;
  opacity:1;
  transform:none;
  transition:transform .2s ease,color .2s ease;
}

#servicios .gastro-service-card:hover .service-card__arrow,
#servicios .gastro-service-card:focus-visible .service-card__arrow{
  color:#008D99;
  transform:translateX(4px);
}

/* Señales para consultar: tarjetas informativas, no navegables. */
.when-consult{
  position:relative;
  padding:56px 0 76px;
  overflow:hidden;
  background:
    radial-gradient(circle at 92% 12%,rgba(0, 141, 153, .07),transparent 24%),
    linear-gradient(180deg,#fff 0%,#f9feff 100%);
}



.when-consult__inner{
  position:relative;
  z-index:1;
}

.when-consult__heading{
  margin-bottom:28px;
  text-align:left;
}

.when-consult__heading h2{
  margin:0;
  color:#003C48;
  font-family:"Poppins",sans-serif;
  font-size:clamp(32px,3.4vw,34px);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.05;
}

.when-consult__heading h2 span{
  color:#008D99;
}

.when-consult__heading-line{
  width:62px;
  height:3px;
  margin:20px 0 14px;
  border-radius:99px;
  background:#008D99;
}

.when-consult__heading p{
  max-width:650px;
  margin:0;
  color:#003C48;
  font-size:13px;
  line-height:1.5;
}

.when-consult__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.consult-signal{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:190px;
  padding:18px 16px 16px;
  overflow:hidden;
  border:1px solid rgba(0, 141, 153, .11);
  border-radius:18px;
  background:#fff;
  text-align:center;
  box-shadow:0 12px 30px rgba(0, 60, 72, .08);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.consult-signal:hover{
  transform:translateY(-4px);
  border-color:rgba(0, 141, 153, .3);
  box-shadow:0 18px 38px rgba(0, 60, 72, .12);
}

.consult-signal__icon{
  display:grid;
  place-items:center;
  width:72px;
  height:72px;
  margin-bottom:11px;
  border-radius:50%;
  background:linear-gradient(145deg,#f0fcfd,#0FC8D8);
  color:#008D99;
}

.consult-signal__icon svg{
  width:50px;
  height:50px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.consult-signal h3{
  min-height:44px;
  margin:0;
  color:#003C48;
  font-family:"Poppins",sans-serif;
  font-size:16px;
  font-weight:700;
  line-height:1.3;
}

.consult-signal h3 small{
  color:inherit;
  font-size:.88em;
  font-weight:700;
}

.consult-signal__mark{
  display:block;
  width:36px;
  height:3px;
  margin-top:10px;
  border-radius:99px;
  background:#008D99;
}

/* Información previa a los planes: composición centrada sobre fondo fotográfico. */
.why-gastro{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  width:100%;
  min-height:clamp(660px,56.28vw,941px);
  padding:clamp(56px,5.4vw,92px) 24px 130px;
  overflow:hidden;
  background-color:#f9fcfe;
  background-image:url("../assets/gastronterologia/porque-gastroenterologo-bg-v4.19be7cf9ed68.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
}

.why-gastro__content{
  position:relative;
  z-index:1;
  width:min(50vw,760px);
  margin:0 auto;
  text-align:center;
}

.why-gastro h2{
  margin:0;
  color:#003C48;
  font-family:"Poppins",sans-serif;
  font-size:clamp(48px,4.7vw,78px);
  font-weight:800;
  letter-spacing:-.05em;
  line-height:1.03;
}

.why-gastro h2 span{
  display:block;
  color:#008D99;
}

.why-gastro__line{
  width:78px;
  height:7px;
  margin:26px auto 30px;
  border-radius:99px;
  background:#008D99;
}

.why-gastro__description{
  margin:0 auto;
  color:#003C48;
  font-size:clamp(17px,1.45vw,22px);
  font-weight:600;
  line-height:1.62;
  text-align:center;
}

.why-gastro__description strong{
  color:#008D99;
  font-weight:800;
}

.why-gastro__closing{
  margin:34px 0 0;
  padding:27px 18px 0;
  border-top:1px solid #0FC8D8;
  color:#003C48;
  font-size:clamp(17px,1.35vw,21px);
  font-weight:700;
  line-height:1.55;
  text-align:center;
}

/* Información destacada reutilizada desde el index. */

.care-info__carousel{
  position:relative;
  padding:0 48px 32px;
}

.care-info__viewport{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  will-change:scroll-position;
}

.care-info__viewport::-webkit-scrollbar{display:none}
.care-info__viewport.is-animating{scroll-snap-type:none}

.care-info__grid{
  display:flex;
  gap:14px;
  padding:8px 10px 22px;
}

.care-info__viewport.is-animating .care-info-card{
  opacity:.8!important;
  filter:saturate(.9)!important;
  transform:translateY(3px) scale(.97)!important;
  transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s ease,filter .5s ease!important;
}

.care-info-card{
  --care-accent:#008D99;
  --care-tint:rgba(0, 141, 153, .065);
  position:relative;
  z-index:1;
  display:flex;
  flex:0 0 calc((100% - 28px)/3);
  align-items:center;
  gap:16px;
  min-height:126px;
  padding:20px 18px;
  overflow:hidden;
  border:1px solid rgba(0, 60, 72, .13);
  border-radius:16px;
  background:linear-gradient(155deg,var(--care-tint),#fff 48%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 7px 20px rgba(0, 60, 72, .07);
  scroll-snap-align:start;
  transition:transform .32s cubic-bezier(.22,1,.36,1),opacity .32s ease,filter .32s ease,border-color .24s ease,box-shadow .24s ease;
}

.care-info-card.reveal.is-visible{
  transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s ease,filter .5s ease,border-color .24s ease,box-shadow .24s ease!important;
}

.care-info-card::before{
  content:"";
  position:absolute;
  top:0;
  right:18px;
  left:18px;
  height:3px;
  border-radius:0 0 999px 999px;
  background:var(--care-accent);
  opacity:.8;
}

.care-info-card:nth-child(1){--care-accent:#003C48;--care-tint:rgba(0, 60, 72, .065)}
.care-info-card:nth-child(2){--care-accent:#008D99;--care-tint:rgba(0, 141, 153, .065)}
.care-info-card:nth-child(3){--care-accent:#008D99;--care-tint:rgba(0, 141, 153, .07)}
.care-info-card:nth-child(4){--care-accent:#008D99;--care-tint:rgba(0, 141, 153, .06)}
.care-info-card:nth-child(5){--care-accent:#003C48;--care-tint:rgba(0, 60, 72, .065)}
.care-info-card:nth-child(6){--care-accent:#008D99;--care-tint:rgba(0, 141, 153, .055)}

.care-info-card:hover,
.care-info-card:focus-within{
  z-index:3;
  border-color:rgba(0, 141, 153, .3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 14px 28px rgba(0, 60, 72, .14);
  transform:translateY(-3px) scale(1.025);
}

.care-info__control--prev{left:2px}
.care-info__control--next{right:2px}

.care-info__dots{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

.care-info__dot{
  width:8px;
  height:8px;
  padding:0;
  border:0;
  border-radius:999px;
  background:#0FC8D8;
  cursor:pointer;
  transition:width .22s ease,background .22s ease;
}

.care-info__dot.is-active{width:24px;background:#008D99}

@media (max-width:1024px){
  .care-info-card{flex-basis:calc((100% - 14px)/2)}
}

@media (max-width:640px){
  .care-info__carousel{padding-right:34px;padding-left:34px}
  .care-info__grid{padding-right:6px;padding-left:6px}
  .care-info-card{flex-basis:100%;min-height:108px}
}

@media (prefers-reduced-motion:reduce){
  .care-info__viewport.is-animating .care-info-card{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
}

/* Educación digestiva y acceso al canal de YouTube. */
.learn-gastro{
  background:
    radial-gradient(circle at 2% 4%,rgba(0, 141, 153, .06),transparent 25%),
    #fff;
}

.learn-gastro__main{
  display:grid;
  grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr);
  align-items:center;
  gap:clamp(42px,5vw,72px);
  padding-top:66px;
  padding-bottom:62px;
}

.learn-gastro__eyebrow{
  margin:0 0 16px;
  color:#008D99;
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.learn-gastro__copy h2{
  margin:0;
  color:#003C48;
  font-family:"Poppins",sans-serif;
  font-size:clamp(38px,3.7vw,56px);
  font-weight:800;
  letter-spacing:-.045em;
  line-height:1.06;
}

.learn-gastro__copy h2 span{
  display:block;
  color:#008D99;
}

.learn-gastro__line{
  width:54px;
  height:5px;
  margin:22px 0 20px;
  border-radius:99px;
  background:linear-gradient(90deg,#008D99,#0FC8D8);
}

.learn-gastro__copy > p:not(.learn-gastro__eyebrow){
  max-width:480px;
  margin:0;
  color:#003C48;
  font-size:17px;
  font-weight:600;
  line-height:1.65;
}

.learn-gastro__copy > p strong{
  color:#008D99;
  font-weight:800;
}

.learn-gastro__subscribe{
  display:inline-flex;
  align-items:center;
  gap:13px;
  min-width:260px;
  margin-top:30px;
  padding:10px 22px 10px 13px;
  border:1.5px solid rgba(0, 141, 153, .65);
  border-radius:999px;
  color:#008D99;
  background:#fff;
  box-shadow:0 10px 24px rgba(0, 141, 153, .08);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}

.learn-gastro__subscribe:hover,
.learn-gastro__subscribe:focus-visible{
  color:#008D99;
  background:#f5fdfe;
  box-shadow:0 14px 30px rgba(0, 141, 153, .14);
  transform:translateY(-2px);
}

.learn-gastro__youtube{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:50%;
  color:#fff;
  background:#008D99;
  font-size:20px;
}

.learn-gastro__subscribe small,
.learn-gastro__subscribe strong{
  display:block;
  line-height:1.15;
  text-align:left;
  text-transform:uppercase;
}

.learn-gastro__subscribe small{
  font-size:10px;
  font-weight:700;
}

.learn-gastro__subscribe strong{
  margin-top:3px;
  font-size:15px;
  font-weight:800;
}

.video-preview{
  position:relative;
  display:block;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border-radius:15px;
  background:#008D99;
  box-shadow:0 20px 46px rgba(0, 60, 72, .2);
}

.video-preview::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(15, 200, 216, .48),transparent 25%,transparent 68%,rgba(15, 200, 216, .68));
  pointer-events:none;
}

.video-preview > img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .35s ease,filter .35s ease;
}

.video-preview:hover > img,
.video-preview:focus-visible > img{
  filter:saturate(1.06);
  transform:scale(1.025);
}

.video-preview__top,
.video-preview__controls,
.video-preview__play{
  position:absolute;
  z-index:2;
}

.video-preview__top{
  top:16px;
  right:18px;
  left:18px;
  display:flex;
  align-items:center;
  gap:9px;
  color:#fff;
  font-size:14px;
  font-weight:700;
  text-shadow:0 2px 6px rgba(0,0,0,.45);
}

.video-preview__top i{
  color:#0FC8D8;
  font-size:25px;
}

.video-preview__play{
  top:50%;
  left:50%;
  display:grid;
  place-items:center;
  width:76px;
  height:54px;
  border-radius:14px;
  color:#fff;
  background:#008D99;
  font-size:33px;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  transform:translate(-50%,-50%);
  transition:transform .2s ease,background .2s ease;
}

.video-preview:hover .video-preview__play,
.video-preview:focus-visible .video-preview__play{
  background:#008D99;
  transform:translate(-50%,-50%) scale(1.08);
}

.video-preview__controls{
  right:18px;
  bottom:13px;
  left:18px;
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
  font-size:13px;
}

.video-preview__controls span{
  flex:1 1 auto;
  font-size:11px;
}

@media (max-width:900px){
  .learn-gastro__main{grid-template-columns:1fr;gap:38px}
  .learn-gastro__copy{text-align:center}
  .learn-gastro__line{margin-right:auto;margin-left:auto}
  .learn-gastro__copy > p:not(.learn-gastro__eyebrow){margin-right:auto;margin-left:auto}
  .video-preview{width:min(100%,760px);margin:0 auto}
}

@media (max-width:1100px){
  #servicios.services-panel--gastro .service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .when-consult__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .why-gastro__content{width:min(60vw,680px)}
  .why-gastro h2{font-size:clamp(44px,6vw,64px)}
  .why-gastro__description{font-size:17px}
}

@media (max-width:767.98px){
  #servicios.services-panel--gastro{padding:46px 18px 52px}
  #servicios.services-panel--gastro .service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #servicios .gastro-service-card{
    justify-content:center;
    min-height:146px;
    padding:14px 8px 12px;
    border-color:rgba(0, 141, 153, .11);
    border-radius:14px;
    background:#fff;
    box-shadow:0 12px 30px rgba(0, 60, 72, .08);
  }
  #servicios .gastro-service-card:hover,
  #servicios .gastro-service-card:focus-visible{
    transform:translateY(-3px);
    border-color:rgba(0, 141, 153, .3);
    box-shadow:0 16px 32px rgba(0, 60, 72, .12);
  }
  #servicios .service-card__icon{
    flex-basis:56px;
    width:56px;
    height:56px;
    margin-bottom:8px;
    border-radius:50%;
    background:linear-gradient(145deg,#f0fcfd,#0FC8D8);
  }
  #servicios .service-card__icon svg{width:38px;height:38px}
  #servicios .gastro-service-card h3{
    flex:0 0 auto;
    align-items:center;
    min-height:42px;
    padding:0 3px;
    font-family:"Poppins",sans-serif;
    font-size:13px;
    font-weight:700;
    line-height:1.22;
  }
  #servicios .service-card__arrow{
    position:absolute;
    right:9px;
    bottom:7px;
    width:22px;
    height:22px;
    margin:0;
    color:#008D99;
    font-size:15px;
  }

  .when-consult{padding:42px 0 54px}
  .when-consult__heading{text-align:center}
  .when-consult__heading-line{margin-right:auto;margin-left:auto}
  .when-consult__heading p{margin-right:auto;margin-left:auto}
  .when-consult__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .consult-signal{min-height:146px;padding:14px 8px 12px;border-radius:14px}
  .consult-signal__icon{width:56px;height:56px;margin-bottom:8px}
  .consult-signal__icon svg{width:38px;height:38px}
  .consult-signal h3{min-height:42px;font-size:13px;line-height:1.22}
  .consult-signal__mark{width:30px;margin-top:8px}

  .why-gastro{
    min-height:0;
    padding:46px 18px 58px;
    background:#fff;
    background-image:none;
  }

  .why-gastro::before{
    display:none;
  }

  .why-gastro__content{width:100%;max-width:580px}
  .why-gastro h2{font-size:clamp(36px,10.5vw,52px)}
  .why-gastro__line{width:58px;height:5px;margin:20px auto 24px}
  .why-gastro__description{font-size:16px;line-height:1.58}
  .why-gastro__closing{margin-top:26px;padding:22px 4px 0;font-size:16px}
}

/* ============================================================
   HEADER COMPARTIDO MEDISIS
   Igual a dental/endodoncia; neutraliza Bootstrap en .nav.
   ============================================================ */
a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

body {
  padding-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 8px;
  letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e4eef6;
  box-shadow: 0 8px 24px rgba(0, 60, 72, .06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__img {
  height: 52px;
  width: auto;
  display: block;
}

.nav {
  flex: 1;
  /* Bootstrap also defines .nav as flex; reset it for the shared Medisis header. */
  display: block;
  flex-wrap: nowrap;
  padding-left: 0;
  margin-bottom: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list > li {
  position: relative;
}

.nav__list > li > a {
  font-size: 13px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #003C48;
  padding: 34px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav__list > li > a:hover,
.nav__list > li > a.active {
  color: #008D99;
}

.nav__list > li > a.active {
  border-bottom: none;
}

.nav__list > li > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  margin: 0 auto;
  width: 44px;
  height: 3px;
  border-radius: 99px;
  background: #008D99;
}

.nav__list > li > a i {
  font-size: 10px;
  opacity: .65;
}

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(0, 60, 72, .1);
  border: 1px solid #0FC8D8;
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .18s ease;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.dropdown li a:hover {
  background: #f3faff;
  color: #008D99;
}

.btn--primary {
  background: linear-gradient(90deg, #0FC8D8, #008D99);
  color: #fff;
  border: none;
  box-shadow: 0 9px 18px rgba(0, 141, 153, .22);
}

.btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 60, 72, .18);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.header__cta {
  flex-shrink: 0;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  background: linear-gradient(90deg, #0FC8D8, #008D99);
  border: 0;
  box-shadow: 0 9px 18px rgba(0, 141, 153, .22);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #003C48;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav {
    display: block;
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eef3f7;
    box-shadow: 0 10px 30px rgba(0, 60, 72, .10);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }

  .nav.nav--open {
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .nav__list > li > a {
    padding: 14px 0;
    justify-content: space-between;
  }

  .nav__list > li > a.active::after {
    display: none;
  }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: #f3faff;
    margin-bottom: 8px;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .nav__toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .header__cta {
    display: none;
  }
}

/* CTA con la misma paleta cálida usada en colonoscopia */
/* Mobile horizontal overflow guard */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

@media (max-width: 767.98px) {
    body {
        position: relative;
    }

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

    .container,
    .page-wrap,
    .header__inner,
    .footer__grid {
        max-width: 100%;
    }

    .learn-gastro__main {
        gap: 30px;
        padding-top: 52px;
        padding-bottom: 46px;
    }

    .learn-gastro__copy h2 {
        font-size: clamp(34px, 10vw, 44px);
    }

    .learn-gastro__subscribe {
        justify-content: center;
        width: 100%;
        min-width: 0;
        max-width: 310px;
    }

    .video-preview__top {
        top: 10px;
        right: 12px;
        left: 12px;
        font-size: 11px;
    }

    .video-preview__top i {
        font-size: 18px;
    }

    .video-preview__play {
        width: 60px;
        height: 43px;
        border-radius: 11px;
        font-size: 26px;
    }

    .video-preview__controls {
        right: 12px;
        bottom: 9px;
        left: 12px;
        gap: 10px;
        font-size: 11px;
    }
}
/* Mobile dropdown toggle fix */
@media (max-width: 768px) {
    .nav__list .has-dropdown:not(.is-open) .dropdown {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        transform: none;
        pointer-events: none;
    }

    .nav__list .has-dropdown.is-open .dropdown {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
}

/* ============================================================
   ESPECIALISTAS EN GASTROENTEROLOGIA
   ============================================================ */
.gastro-specialists {
    position: relative;
    padding: 72px 0 78px;
    overflow: hidden;
    background:
        radial-gradient(circle at 96% 8%, rgba(0, 141, 153, .09), transparent 25%),
        radial-gradient(circle at 4% 92%, rgba(0, 141, 153, .07), transparent 26%),
        linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
}

.gastro-specialists__head {
    max-width: 780px;
    margin: 0 auto 25px;
    text-align: center;
}

.gastro-specialists__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #008D99;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.gastro-specialists__eyebrow i {
    font-size: 15px;
}

.gastro-specialists__head h2 {
    margin: 8px 0 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: clamp(34px, 3.6vw, 48px);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.08;
}

.gastro-specialists__head h2 span {
    color: #008D99;
}

.gastro-specialists__line {
    display: block;
    width: 64px;
    height: 4px;
    margin: 17px auto 15px;
    border-radius: 99px;
    background: linear-gradient(90deg, #0FC8D8, #008D99);
}

.gastro-specialists__head > p {
    max-width: 650px;
    margin: 0 auto;
    color: #003C48;
    font-size: 14px;
    line-height: 1.62;
}

.gastro-specialists__trust {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: min(100%, 760px);
    margin: 0 auto 30px;
    padding: 13px 19px;
    border: 1px solid rgba(0, 60, 72, .1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 60, 72, .07);
}

.gastro-specialists__trust > i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #008D99;
    background: rgba(15, 200, 216, 0.11);
    font-size: 24px;
}

.gastro-specialists__trust p {
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid rgba(0, 60, 72, .12);
    color: #003C48;
    font-size: 13px;
    line-height: 1.45;
}

.gastro-specialists__trust strong {
    color: #008D99;
}

.gastro-specialists .endo-doctor-card {
    overflow: hidden;
    border: 1px solid rgba(0, 60, 72, .1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 60, 72, .09);
}

.gastro-specialists .endo-doctor-card > img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    background: linear-gradient(180deg, #eef5f8, rgba(15, 200, 216, 0.08));
}

.gastro-specialists .endo-doctor-body {
    position: relative;
    min-height: 168px;
    padding: 42px 17px 18px;
    text-align: center;
}

.gastro-specialists .endo-doctor-icon {
    position: absolute;
    top: -31px;
    left: 50%;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 50%;
    color: #008D99;
    background: rgba(15, 200, 216, 0.11);
    box-shadow: 0 8px 18px rgba(0, 60, 72, .1);
    font-size: 28px;
    transform: translateX(-50%);
}

.gastro-specialists .endo-doctor-card h3 {
    margin: 0 0 5px;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.18;
}

.gastro-specialists .endo-doctor-card strong {
    display: block;
    color: #008D99;
    font-size: 12px;
    font-weight: 800;
}

.gastro-specialists .endo-coral-line {
    display: block;
    width: 34px;
    height: 3px;
    margin: 12px auto;
    border-radius: 99px;
    background: #008D99;
}

.gastro-specialists .endo-doctor-card p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    color: #003C48;
    font-size: 11px;
    line-height: 1.4;
}

.gastro-specialists .endo-doctor-card p i {
    flex: 0 0 auto;
    color: #008D99;
    font-size: 18px;
}

@media (max-width: 767.98px) {
    .hero.gastro-hero-banner {
        display: none;
    }

    .gastro-specialists {
        padding: 46px 0 52px;
    }

    .gastro-specialists__head {
        margin-bottom: 21px;
    }

    .gastro-specialists__eyebrow {
        font-size: 9px;
    }

    .gastro-specialists__head h2 {
        font-size: clamp(29px, 9vw, 36px);
        line-height: 1.1;
    }

    .gastro-specialists__head h2 span {
        display: block;
    }

    .gastro-specialists__head > p {
        font-size: 12px;
        line-height: 1.55;
    }

    .gastro-specialists__trust {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 22px;
        padding: 11px 13px;
        border-radius: 14px;
    }

    .gastro-specialists__trust > i {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .gastro-specialists__trust p {
        padding-left: 10px;
        font-size: 10.5px;
    }

    .gastro-specialists .specialists-grid {
        gap: 10px;
    }

    .gastro-specialists .endo-doctor-card {
        border-radius: 14px;
        box-shadow: 0 10px 25px rgba(0, 60, 72, .09);
    }

    .gastro-specialists .endo-doctor-card > img {
        height: 180px;
    }

    .gastro-specialists .endo-doctor-body {
        min-height: 145px;
        padding: 35px 8px 12px;
    }

    .gastro-specialists .endo-doctor-icon {
        top: -25px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .gastro-specialists .endo-doctor-card h3 {
        min-height: 29px;
        display: grid;
        place-items: center;
        font-size: 11.5px;
        line-height: 1.22;
    }

    .gastro-specialists .endo-doctor-card strong {
        font-size: 9.5px;
    }

    .gastro-specialists .endo-coral-line {
        margin: 9px auto;
    }

    .gastro-specialists .endo-doctor-card p {
        align-items: flex-start;
        gap: 4px;
        font-size: 8.5px;
        line-height: 1.35;
    }

    .gastro-specialists .endo-doctor-card p i {
        margin-top: 1px;
        font-size: 13px;
    }
}
