/* ============================================================
   MEDISIS – style.css
   ============================================================ */

:root {
  --blue-900: #003C48;
  --blue-800: #003C48;
  --blue-700: #003C48;
  --blue-600: #008D99;
  --blue-500: #008D99;
  --blue-100: #e7f4fb;
  --blue-50:  #f3faff;
  --navy:     #003C48;
  --ink:      #003C48;
  --gray:     #003C48;
  --gray-light: #eef3f7;
  --white:    #ffffff;
  --radius:   16px;
  --shadow: 0 16px 45px rgba(0, 60, 72, .08);
  --shadow-sm:0 4px 14px  rgba(0, 60, 72, .08);
}

/* ── Reset ── */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', sans-serif; color: var(--ink); 
  background: var(--white); line-height: 1.5; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; color: var(--navy); line-height: 1.2; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   PRELOADER
   ============================================================ */
body.is-loading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blue-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity .5s ease, visibility .5s ease;
}
.preloader__logo {
  animation: preloaderPulse 1.4s ease-in-out infinite;
}
.preloader__img { height: 52px; width: auto; }
.preloader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: preloaderSpin .8s linear infinite;
}
.preloader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes preloaderSpin { to { transform: rotate(360deg); } }
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(.92); opacity: .75; }
}

/* ============================================
   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;
    }

    .social-facebook__identity {
        color: #ffffff !important;
    }
}

/* contact banner */
/* botones accesibilidad movil */
.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;
    }

}

/* ============================================================
   HERO – entrance animation (plays once, right after preload)
   ============================================================ */
body.is-ready .hero__slide:first-child .eyebrow      { animation-delay: .05s; }
body.is-ready .hero__slide:first-child h1            { animation-delay: .15s; }
body.is-ready .hero__slide:first-child p             { animation-delay: .28s; }

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal--left  { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .preloader, .preloader__logo, .preloader__spinner { animation: none !important; transition: none !important; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

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

/* ── Eyebrow ── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.eyebrow--center { display: block; text-align: center; }

/* ── Section defaults ── */
.section { padding: 35px 0; }

.section__head {
  text-align: center;
  margin-bottom: 48px;
}
.section__head h2 {
  font-size: 34px;
  position: relative;
  display: inline-block;
}
/* decorative underline under every section h2 */
.section__head h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue-600);
  margin: 10px auto 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 60, 72, .18); }
.btn--outline {
  background: var(--white);
  color: var(--blue-700);
  border: 1.5px solid #0FC8D8;
}
.btn--outline:hover { background: var(--blue-100); }
.btn--sm  { padding: 10px 18px; font-size: 14px; }


/* ============================================================
   HEADER
   ============================================================ */
.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;
  max-width: 1540px;
}

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

.logo__img {
  height: 52px;
  width: auto;
  display: block;
}
.logo__img--footer {
  height: 52px;
  /* si tu logo es oscuro y el footer es navy, usa filter para versión blanca */
  /* filter: brightness(0) invert(1); */
}

/* Nav */
.nav {
  flex: 1;
  min-width: 0;
}
.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.nav__list > li { position: relative; }
.nav__list > li > a {
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  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: var(--blue-600); }
.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: var(--blue-600);
}
.nav__list > li > a i { font-size: 10px; opacity: .65; }

/* Dropdown */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  background: var(--white);
  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;
}
.dropdown li a:hover { background: var(--blue-50); color: var(--blue-600); }

/* Escritorio compacto: logo, navegacion y reserva. */
@media (min-width: 1025px) {
  .header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(16px, 1.8vw, 28px);
  }

  .nav__list {
    gap: clamp(14px, 1.45vw, 24px);
  }

  .nav__list > li > a {
    font-size: clamp(11px, .88vw, 13px);
  }
}

/* Escritorio medio: contactos compactos, sin horario secundario. */
@media (min-width: 1280px) {
  .header__inner {
    grid-template-columns: repeat(9, max-content);
    justify-content: space-between;
    column-gap: 0;
  }

  .nav,
  .nav__list {
    display: contents;
  }

  .header__cta {
    padding-right: 18px;
    padding-left: 18px;
    font-size: 12px;
  }
}

/* Escritorio amplio: composicion completa de la referencia. */
@media (min-width: 1500px) {
  .header__inner {
    grid-template-columns: repeat(9, max-content);
    column-gap: 0;
  }

  .nav__list {
    gap: 24px;
  }

  .nav__list > li > a {
    font-size: 13px;
  }

  .header__cta {
    padding-right: 22px;
    padding-left: 22px;
    font-size: 13px;
  }
}

.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;
  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: var(--navy);
  cursor: pointer;
}


/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  background: var(--blue-900);
  overflow: hidden; /* keep section tidy */
}

/* Outer wrap: position:relative for arrow anchoring, NO overflow:hidden */
.hero__slider-wrap {
  position: relative;
}

/* Inner clip: overflow:hidden only on the track area */
.hero__track-clip {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  contain: paint;
}

/* Track: all slides in a row */
.hero__track {
  display: flex;
  width: 100%;
  max-width: 100%;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);  /* más lento y suave */
  will-change: transform;
}

/* Each slide */
.hero__slide {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 0 0 100%;
}

/* Split layout: left text | right photo */
.hero__split {
  display: block;
  position: relative;
  height: clamp(400px, 33.333vw, 724px);
  max-height: 724px;
}

/* LEFT: gradient background */

/* Ajuste para notebooks y pantallas medianas, sin afectar móvil */

/* RIGHT: full-bleed photo — height 100% fills the grid cell exactly */
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  height: 100%;           /* fills the fixed grid row height */
}
.hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* muestra la imagen completa sin recortar */
  object-position: center center;
  display: block;
}

.hero__slide:first-child .hero__media img {
  object-position: center 18%;
}

/* Banner con texto integrado: respeta su proporción original sin recortes. */
@media (min-width: 768px) {
  .hero__slide--image-only .hero__media {
    background: #f4f8fb;
  }

  .hero__slide--image-only .hero__media img {
    object-fit: contain;
    object-position: center;
  }

  .hero__slide--image-only .hero__media::before {
    display: none;
  }
}

/*
 * ✨ GRADIENT BLEND ✨
 * Overlay en el borde izquierdo de la foto que funde con el panel izquierdo.
 */
.hero__media::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  /* background: linear-gradient(to right,
    #003C48                  0%,
    rgba(0, 60, 72, .98)  42%,
    rgba(0, 60, 72, .72)  68%,
    rgba(0, 60, 72, 0)   100%
  ); */
  z-index: 2;
  pointer-events: none;
}

/* Watermark floating top-right */

/* ── Arrows: anchored to slider-wrap (outside clip) ── */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 141, 153, .2);
  background: rgba(255,255,255,.9);
  color: #003C48;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hero__arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow);
}
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* ── Dots: inside the clip at the bottom centre ── */
.hero__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero__dot {
  height: 8px;
  width: 8px;
  border-radius: 100px;
  border: none;
  background: rgba(0, 141, 153, 0.28);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
  padding: 0;
}
.hero__dot--active {
  width: 26px;
  background: var(--blue-600);
}

/* ── Tags bar: floats at bottom of the left content panel ── */


/* ============================================================
   INFORMACION DESTACADA
   ============================================================ */
.care-info {
  padding: 0px 0 86px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.care-info__heading {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

.care-info__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #008D99;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.care-info__heading h2 {
  margin: 0;
  color: #003C48;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 850;
  line-height: 1.2;
}

.care-info__heading h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0FC8D8, #008D99);
}

.care-info__heading p {
  margin: 12px 0 0;
  color: #003C48;
  font-size: 13px;
  line-height: 1.5;
}

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

.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__viewport.is-animating .care-info-card {
  opacity: .8 !important;
  transform: translateY(3px) scale(.97) !important;
  filter: saturate(.9) !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);
  display: flex;
  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), #ffffff 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 7px 20px rgba(0, 60, 72, .07);
  flex: 0 0 calc((100% - 28px) / 3);
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
  transition:
    transform .32s cubic-bezier(.22, 1, .36, 1),
    opacity .32s ease,
    filter .32s ease,
    border-color .24s ease,
    box-shadow .24s ease;
}

/* Mantiene visible la transición del carrusel aunque el sistema reduzca movimiento. */
.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;
  transform: translateY(-3px) scale(1.025);
  border-color: color-mix(in srgb, var(--care-accent) 30%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 14px 28px rgba(0, 60, 72, .14);
}

.care-info-card__icon,
.care-booking__icon {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 28px;
}

.care-info-card__icon--blue {
  color: #003C48;
  background: #e9f2ff;
}

.care-info-card__icon--green {
  color: #008D99;
  background: #e5f7ee;
}

.care-info-card__icon--cyan {
  color: #008D99;
  background: #e2f8fc;
}

.care-info-card__icon--contact {
  color: #003C48;
  background: #e7f0ff;
}

.care-info-card__icon--urgent {
  color: #008D99;
  background: #ffe9ec;
}

.care-info-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 66px;
  width: 66px;
  height: 70px;
  overflow: hidden;
}

.care-info-card__brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.care-info-card__content {
  min-width: 0;
}

.care-info-card__content h3,
.care-booking h3 {
  margin: 0 0 7px;
  color: #003C48;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  font-family: 'Inter', sans-serif !important;
}

.care-info-card__content p,
.care-booking p {
  margin: 0;
  color: #003C48;
  font-size: 13px;
  line-height: 1.55;
}

.care-info-card__content strong {
  color: #003C48;
  font-weight: 800;
}

.care-info-card__phone {
  color: #003C48;
  font-weight: 800;
  text-decoration: none;
}

.care-info-card__phone:hover,
.care-info-card__phone:focus {
  text-decoration: underline;
}

.care-info-card__phone--urgent {
  color: #003C48;
}

.care-info__control {
  position: absolute;
  top: calc(50% - 12px);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #0FC8D8;
  border-radius: 50%;
  color: #003C48;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 18px rgba(0, 60, 72, .13);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.care-info__control:hover,
.care-info__control:focus-visible {
  color: var(--white);
  background: #008D99;
  transform: translateY(-50%) scale(1.08);
  outline: none;
}

.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;
}

.care-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
  margin-top: 20px;
  padding: 16px 24px;
  border: 1px solid #dce9f6;
  border-radius: 10px;
  background: linear-gradient(100deg, #f1f7ff 0%, #f8fbff 100%);
}

.care-booking__message {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.care-booking__icon {
  color: #003C48;
  background: var(--white);
  box-shadow: 0 6px 15px rgba(0, 60, 72, .1);
}

.care-booking__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.care-booking__actions .btn {
  min-width: 184px;
  justify-content: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.care-booking__actions .btn--primary {
  background: #008D99;
  box-shadow: 0 8px 18px rgba(0, 60, 72, .16);
}

.care-booking__actions .btn--outline {
  border-color: #008D99;
  color: #003C48;
}

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

  .care-booking {
    align-items: flex-start;
    flex-direction: column;
  }

  .care-booking__actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .care-info {
    padding: 44px 0 64px;
  }

  .care-info__heading {
    margin-bottom: 22px;
    padding: 0 18px;
  }

  .care-info__heading p {
    font-size: 13px;
  }

  .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;
  }

  .care-info__control {
    width: 32px;
    height: 32px;
  }

  .care-booking {
    padding: 20px 18px;
  }

  .care-booking__message {
    align-items: flex-start;
  }

  .care-booking__actions {
    flex-direction: column;
    gap: 12px;
  }

  .care-booking__actions .btn {
    width: 100%;
  }
}


/* ============================================================
   ESPECIALIDADES DESTACADAS
   ============================================================ */
.specialties-section {
  background: var(--white);
}

.specialties-section .section__head {
  margin-bottom: 32px;
}

.specialties-section .eyebrow {
  color: #008D99;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.specialties-section .section__head h2 {
  color: #003C48;
  font-size: 34px;
  font-weight: 800;
}

.specialties-section .section__head h2::after {
  width: 34px;
  height: 3px;
  background: #008D99;
  margin-top: 10px;
}

.specialties__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
}

/* Recupera el ancho original de escritorio exclusivamente en la portada. */
@media (min-width: 1200px) {
  .index-page main .container {
    max-width: 1540px;
  }

  .index-page .medisis-booking-container {
    max-width: 1240px;
  }
}

.specialties__cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.specialty-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 122px;
  padding: 24px 26px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 60, 72, .10);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(0, 60, 72, .08);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 141, 153, .22);
  box-shadow: 0 16px 34px rgba(0, 60, 72, .14);
}

.specialty-card__accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--specialty-accent, #0FC8D8);
}

.specialty-card__icon {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #008D99;
  font-size: 42px;
  line-height: 1;
}

.specialty-card__knee-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.specialty-card__name {
  flex: 1 1 auto;
  color: #003C48;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.specialty-card__arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: #003C48;
  font-size: 12px;
  line-height: 1;
}

.specialty-card--blue {
  --specialty-accent: #008D99;
}

.specialty-card--cyan {
  --specialty-accent: #0FC8D8;
}

.specialty-card--pink {
  --specialty-accent: #008D99;
}

/* ============================================================
   SERVICIOS Y REDES SOCIALES
   ============================================================ */
.social-services-section {
  padding: 58px 0 70px;
  background: var(--white);
}

.service-promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  margin-bottom: 42px;
}

.service-promise {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 118px;
  padding: 18px 20px 18px 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 141, 153, .14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 141, 153, .055), #ffffff 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 7px 20px rgba(0, 60, 72, .055);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.service-promise::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #0FC8D8, #008D99);
}

.service-promise:hover,
.service-promise:focus-within {
  border-color: rgba(0, 141, 153, .28);
  background: linear-gradient(135deg, rgba(0, 141, 153, .075), #ffffff 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 11px 25px rgba(0, 60, 72, .09);
}

.service-promise__icon {
  display: grid;
  place-items: center;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  color: #008D99;
  border: 1px solid rgba(0, 141, 153, .12);
  border-radius: 50%;
  background: linear-gradient(145deg, #effcfd, #e5f7fa);
  box-shadow: inset 0 0 14px rgba(0, 141, 153, .065);
  font-size: 42px;
  line-height: 1;
  transition: transform .22s ease, color .22s ease;
}

.service-promise:hover .service-promise__icon,
.service-promise:focus-within .service-promise__icon {
  color: #008D99;
  transform: scale(1.04);
}

.service-promise h3 {
  margin: 0 0 8px;
  color: #003C48;
  font-size: 17px;
}

.service-promise p {
  margin: 0;
  color: #003C48;
  font-size: 13px;
  line-height: 1.55;
}

.social-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(330px, 1fr);
  grid-template-rows: repeat(2, 238px);
  gap: 22px;
}

.social-facebook,
.social-side-card {
  overflow: hidden;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 60, 72, .08);
}

.social-facebook {
  display: flex;
  flex-direction: column;
  grid-row: 1 / 3;
  background: var(--white);
}

.social-facebook__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
  color: var(--white);
  background: linear-gradient(100deg, #0FC8D8 0%, #0FC8D8 58%, #008D99 100%);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.social-facebook__header span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-facebook__header i {
  font-size: 19px;
}

.social-facebook__header strong {
  padding: 8px 15px;
  border-radius: 6px;
  background: rgba(0, 141, 153, .88);
}

.social-facebook__body {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  flex: 1;
  min-height: 0;
  background: linear-gradient(112deg, #ffffff 0%, #ffffff 45%, #0FC8D8 45%, #008D99 100%);
}

.social-facebook__body::before,
.social-facebook__body::after {
  content: '';
  position: absolute;
  top: -40px;
  bottom: -70px;
  left: 45%;
  width: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  transform: rotate(23deg);
}

.social-facebook__body::after {
  left: 48%;
  background: rgba(0, 141, 153, .75);
}

.social-facebook__brand,
.social-facebook__copy {
  position: relative;
  z-index: 1;
}

.social-facebook__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}

.social-facebook__brand > p {
  margin: 0;
  color: #008D99;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.social-facebook__brand > h3 {
  margin: 6px 0 12px;
  color: #003C48;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.social-facebook__icon {
  display: grid;
  place-items: end center;
  width: 104px;
  height: 104px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, #008D99, #0FC8D8);
  font-size: 80px;
  line-height: 1;
}

.social-facebook__identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #003C48;
  text-align: left;
}

.social-facebook__identity img {
  width: 54px;
  height: auto;
}

.social-facebook__identity span {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.3;
}

.social-facebook__identity strong {
  color: #008D99;
  font-size: 18px;
}

.social-facebook__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 32px 28px;
  color: var(--white);
  text-align: center;
}

.social-facebook__copy p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
}

.social-facebook__copy strong {
  font-size: 20px;
  line-height: 1.4;
}

.social-facebook__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 10px;
  border: 2px solid #008D99;
  border-radius: 7px;
  color: #008D99;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease;
}

.social-facebook__cta:hover {
  color: var(--white);
  background: #008D99;
}

.social-side-card {
  position: relative;
  min-height: 238px;
}

.social-side-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.social-instagram {
  background: linear-gradient(135deg, #fff6f7, #fdebf1);
}

.social-instagram::before {
  background: linear-gradient(90deg, #fff8f8 0%, #fff8f8 50%, rgba(255, 248, 248, .75) 66%, transparent 84%);
}

.social-youtube {
  background: #edf2f5;
}

.social-youtube::before {
  background: linear-gradient(90deg, #edf2f5 0%, #edf2f5 49%, rgba(237, 242, 245, .86) 62%, transparent 82%);
}

.social-side-card__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  object-fit: cover;
}

.social-instagram__phone {
  width: 78%;
  object-position: right center;
}

.social-youtube__photo {
  object-position: 65% center;
}

.social-side-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 59%;
  height: 100%;
  padding: 22px 24px;
}

.social-side-card__content h3 {
  margin: 0 0 14px;
  color: #008D99;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.social-side-card__content h3 i {
  margin-right: 8px;
  font-size: 35px;
  vertical-align: middle;
}

.social-instagram h3 i {
  color: #008D99;
}

.social-youtube h3 i {
  color: #008D99;
}

.social-side-card__content h3 strong {
  font-size: 24px;
}

.social-side-card__content p {
  margin: 0 0 18px;
  color: #003C48;
  font-size: 13px;
  line-height: 1.55;
}

.social-side-card__content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 166px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--white);
  background: linear-gradient(90deg, #0FC8D8, #008D99);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .service-promises {
    gap: 22px;
  }

  .service-promise {
    gap: 14px;
    padding: 16px 16px 16px 20px;
  }

  .service-promise__icon {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
    font-size: 34px;
  }

  .service-promise h3 {
    font-size: 16px;
  }

  .service-promise p {
    font-size: 13px;
  }

  .social-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto 250px 250px;
  }

  .social-facebook {
    grid-row: auto;
    min-height: 470px;
  }
}

@media (max-width: 700px) {
  .social-services-section {
    padding: 48px 0 56px;
  }

  .service-promises {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }

  .service-promise {
    min-height: 96px;
    padding: 14px 16px 14px 20px;
  }

  .social-showcase {
    grid-template-rows: auto 280px 280px;
  }

  .social-facebook {
    min-height: 0;
  }

  .social-facebook__header {
    min-height: 58px;
    padding: 0 14px;
    font-size: 12px;
  }

  .social-facebook__header strong {
    padding: 7px 10px;
  }

  .social-facebook__body {
    grid-template-columns: 1fr;
    background: var(--white);
  }

  .social-facebook__body::before,
  .social-facebook__body::after {
    display: none;
  }

  .social-facebook__brand > p {
    font-size: 23px;
  }

  .social-facebook__brand > h3 {
    font-size: 31px;
  }

  .social-facebook__copy {
    padding: 28px 24px;
    background: linear-gradient(135deg, #0FC8D8, #008D99);
  }

  .social-facebook__copy p {
    font-size: 15px;
  }

  .social-facebook__copy strong {
    font-size: 17px;
  }

  .social-side-card__content {
    width: 68%;
    padding: 20px;
  }

  .social-side-card__content h3 {
    font-size: 16px;
  }

  .social-side-card__content h3 strong {
    font-size: 21px;
  }

  .social-side-card__content p {
    font-size: 12px;
  }
}


/* ============================================================
   EXÁMENES Y PROCEDIMIENTOS
   ============================================================ */


/* ============================================================
   POR QUÉ ELEGIR MEDISIS
   ============================================================ */
#nosotros {
  background: linear-gradient(180deg, #f3fbff 0%, #eefaff 100%);
}

#nosotros .section__head {
  margin-bottom: 24px;
}

#nosotros .eyebrow {
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  margin-bottom: 4px;
}

#nosotros .section__head h2 {
  color: var(--navy);
  font-size: 31px;
  font-weight: 900;
}

#nosotros .section__head h2::after {
  width: 34px;
  height: 3px;
  background: var(--blue-600);
  margin-top: 10px;
}


/* ============================================================
   RESERVA EN 3 PASOS  –  light background (as in the mockup)
   ============================================================ */

/* Step item */

/* Connector line between steps */


/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: #0FC8D8; padding: 64px 0 0; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__about p {
  font-size: 13.5px;
  margin: 16px 0 20px;
  line-height: 1.7;
}

.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background .15s ease;
}
.socials a:hover { background: var(--blue-600); }

.footer__col h4 { color: var(--white); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.footer__col ul a { font-size: 13.5px; }
.footer__col ul a:hover { color: var(--blue-500); }
.footer__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
  display: inline-flex; align-items: center; gap: 6px;
}

.footer__contact li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; margin-bottom: 14px;
}
.footer__contact i { color: var(--blue-500); margin-top: 2px; width: 14px; }

.footer__bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 12.5px;
  color: #008D99;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  /* Mobile nav */
  .nav {
    display: block;
    position: fixed;
    top: 88px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow);
    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: var(--blue-50); margin-bottom: 8px;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown.is-open .dropdown { display: block; }
  .nav__toggle { display: block; }

  /* Hero slider: stack on tablet */
  .hero__split { display: grid; grid-template-columns: 1fr; height: auto; max-height: none; }
  .hero__media { position: relative; inset: auto; order: 0; height: 300px; }
  .hero__media::before {
    inset: auto 0 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to bottom, rgba(15, 200, 216, 0), #0FC8D8);
  }
  .hero__slide:first-child .hero__media img { object-position: 68% 18%; }
  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }
  .specialties__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

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

  /* Hero móvil: texto e imagen permanecen en una sola fila visual */
  .hero__split {
    display: block;
    position: relative;
    height: clamp(300px, 52svh, 350px);
  }

  .hero__slide--mobile-image .hero__split {
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    order: initial;
    width: 100%;
    height: 100%;
  }

  .hero__media img,
  .hero__slide--mobile-image .hero__media img {
    object-position: 68% center;
  }

  .hero__slide--mobile-image .hero__media img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
  }

  .hero__slide:nth-child(2) .hero__media img {
    object-position: 58% center;
  }

  .hero__slide:nth-child(3) .hero__media img {
    object-position: 70% center;
  }

  .hero__media::before {
    inset: 0 auto 0 0;
    width: 66%;
    height: 100%;
    background: linear-gradient(to right,
      #003C48 0%,
      rgba(0, 60, 72, .96) 45%,
      rgba(0, 60, 72, .58) 76%,
      rgba(0, 60, 72, 0) 100%
    );
  }

  .hero__slide--mobile-image .hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
  }

  .hero__slide--mobile-image .hero__picture {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  .hero__slide--mobile-image .hero__media::before {
    display: none;
  }

  .hero__arrow {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .specialties__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .specialty-card {
    min-height: 96px;
    padding: 20px 22px;
    gap: 16px;
  }
  .specialty-card__icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 36px;
  }
  .specialty-card__name {
    font-size: 14px;
  }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section__head h2 { font-size: 26px; }
}

/* ============================================================
   RESERVA EN 3 PASOS
   ============================================================ */

.medisis-booking-steps {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #f5fbff 0%, #edf8fd 100%);
  border-top: 1px solid #dceff7;
  border-bottom: 1px solid #0FC8D8;
  padding: 48px clamp(16px, 2.5vw, 24px);
  overflow: hidden;
}

.medisis-booking-steps::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 15%, rgba(0, 141, 153, .12) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 82%, rgba(0, 141, 153, .1) 0 3px, transparent 4px);
  background-size: 34px 34px, 42px 42px;
  opacity: .42;
  pointer-events: none;
}

.medisis-booking-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 36px 40px;
  overflow: hidden;
  border: 1px solid rgba(0, 141, 153, .17);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 141, 153, .075), transparent 28%),
    radial-gradient(circle at 0 100%, rgba(0, 141, 153, .055), transparent 30%),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 18px 42px rgba(0, 60, 72, .1);
}

.medisis-booking-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    #008D99 0 28%,
    #0FC8D8 36% 58%,
    #008D99 66% 82%,
    #008D99 90% 100%
  );
}

.medisis-booking-heading {
  text-align: center;
  margin-bottom: 20px;
}

.medisis-booking-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #008D99;
}

.medisis-booking-heading h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  color: #003C48;
}

.medisis-booking-line {
  display: block;
  width: 36px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #008D99;
}

.medisis-booking-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 22px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.medisis-booking-step {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
}

.medisis-step-icon-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
}

.medisis-step-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 29px;
  background: #f7fbff;
  border: 2px solid #0FC8D8;
}

.medisis-step-number {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 60, 72, 0.12);
}

.medisis-step-label {
  margin: 0;
  color: #003C48;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.16;
  white-space: nowrap;
  padding-left: 0;
}

.medisis-step-icon-mobile,
.medisis-step-label-mobile {
  display: none;
}

/* Paso 1 */
.medisis-step-pink .medisis-step-icon {
  color: #ff5b8a;
  background: #fff0f6;
  border-color: #ffc6d8;
}

.medisis-step-pink .medisis-step-number {
  background: #ff5b8a;
}

/* Paso 2 */
.medisis-step-orange .medisis-step-icon {
  color: #f4a63a;
  background: #fff7e7;
  border-color: #ffd9a0;
}

.medisis-step-orange .medisis-step-number {
  background: #f7b44e;
}

/* Paso 3 */
.medisis-step-cyan .medisis-step-icon {
  color: #12aebe;
  background: #e9fbfd;
  border-color: #b8edf2;
}

.medisis-step-cyan .medisis-step-number {
  background: #10b7c5;
}

.medisis-booking-connector {
  width: 78px;
  height: 2px;
  flex: 0 0 78px;
  background-image: repeating-linear-gradient(
    to right,
    #0FC8D8 0,
    #0FC8D8 4px,
    transparent 4px,
    transparent 9px
  );
}

.medisis-booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 18px 32px;
  margin-left: 24px;
  border-radius: 11px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(90deg, #0FC8D8 0%, #008D99 100%);
  box-shadow: 0 10px 22px rgba(0, 141, 153, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.medisis-booking-button i {
  font-size: 20px;
}

.medisis-booking-button:hover {
  color: #ffffff;
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(0, 141, 153, 0.26);
}

/* Tablet */
@media (max-width: 1199.98px) {
  .medisis-booking-container {
    padding-right: 28px;
    padding-left: 28px;
  }

  .medisis-booking-flow {
    gap: 16px;
  }

  .medisis-booking-connector {
    width: 48px;
    flex-basis: 48px;
  }

  .medisis-booking-button {
    margin-left: 8px;
    padding: 16px 24px;
    font-size: 15px;
  }

  .medisis-step-icon-wrap,
  .medisis-step-icon {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .medisis-step-icon {
    font-size: 26px;
  }

  .medisis-step-label {
    font-size: 14px;
  }
}

/* Tablet pequeña */
@media (max-width: 991.98px) {
  .medisis-booking-flow {
    flex-wrap: wrap;
    row-gap: 22px;
  }

  .medisis-booking-button {
    margin-left: 0;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .medisis-booking-steps {
    display: none;
  }

  .medisis-booking-heading {
    margin-bottom: 24px;
  }

  .medisis-booking-flow {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .medisis-booking-step {
    width: 100%;
    max-width: 320px;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2eef6;
    box-shadow: 0 8px 22px rgba(0, 60, 72, 0.06);
  }

  .medisis-booking-connector {
    width: 2px;
    height: 22px;
    flex: 0 0 22px;
    background-image: repeating-linear-gradient(
      to bottom,
      #0FC8D8 0,
      #0FC8D8 4px,
      transparent 4px,
      transparent 9px
    );
  }

  .medisis-booking-button {
    width: 100%;
    max-width: 320px;
    min-height: 56px;
    margin-top: 4px;
    padding: 16px 20px;
  }
}

/* Mobile pequeño */
@media (max-width: 420px) {
  .medisis-booking-heading h2 {
    font-size: 22px;
  }

  .medisis-step-icon-wrap,
  .medisis-step-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .medisis-step-icon {
    font-size: 24px;
  }

  .medisis-step-number {
    width: 30px;
    height: 30px;
    right: -12px;
    font-size: 14px;
  }

  .medisis-step-label {
    font-size: 14px;
  }
}

/* ============================================================
   RESERVA EN 3 PASOS - REDISEÑO RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
.medisis-booking-steps {
  display: block;
  padding: 64px 24px;
  background: linear-gradient(180deg, #f4fbff 0%, #eaf7fc 100%);
}

.medisis-booking-steps::before {
  background:
    radial-gradient(circle at 8% 18%, rgba(0, 141, 153, .1) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 78%, rgba(0, 141, 153, .08) 0 3px, transparent 4px);
  opacity: .32;
}

.medisis-booking-container {
  max-width: 1120px;
  padding: 42px 48px 36px;
  border-color: rgba(0, 141, 153, .18);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(0, 60, 72, .11);
}

.medisis-booking-heading {
  max-width: 680px;
  margin: 0 auto 30px;
}

.medisis-booking-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.025em;
}

.medisis-booking-heading > p {
  max-width: 570px;
  margin: 12px auto 0;
  color: #003C48;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.medisis-booking-line {
  width: 48px;
  margin-top: 15px;
}

.medisis-booking-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.medisis-booking-step {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #dcecf4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 60, 72, .055);
}

.medisis-booking-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -14px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #0FC8D8;
  border-right: 2px solid #0FC8D8;
  background: #f7fcfe;
  transform: translateY(-50%) rotate(45deg);
}

.medisis-step-icon-wrap,
.medisis-step-icon {
  width: 58px;
  height: 58px;
}

.medisis-step-icon-wrap {
  flex-basis: 58px;
}

.medisis-step-icon {
  font-size: 25px;
}

.medisis-step-number {
  top: -5px;
  right: -5px;
  width: 27px;
  height: 27px;
  font-size: 13px;
  transform: none;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 60, 72, .14);
}

.medisis-booking-button {
  width: min(100%, 330px);
  min-height: 60px;
  margin: 0;
  padding: 17px 24px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 14px;
  font-size: 16px;
  box-shadow: 0 12px 26px rgba(0, 141, 153, .24);
}

.medisis-booking-button .bi-arrow-right {
  margin-left: auto;
  font-size: 17px;
  transition: transform .2s ease;
}

.medisis-booking-button:hover .bi-arrow-right {
  transform: translateX(3px);
}

.medisis-booking-button:focus-visible {
  outline: 3px solid rgba(0, 141, 153, .28);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .medisis-booking-container {
    max-width: 680px;
  }

  .medisis-booking-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .medisis-booking-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -14px;
    left: 48px;
    width: 0;
    height: 14px;
    border: 0;
    border-left: 2px dashed #0FC8D8;
    background: transparent;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .medisis-booking-steps {
    display: block;
    padding: 36px clamp(10px, 3.5vw, 14px);
  }

  .medisis-booking-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 29px clamp(12px, 4vw, 16px) 24px;
    border-radius: 22px;
  }

  .medisis-booking-container::before {
    height: 4px;
  }

  .medisis-booking-heading {
    margin-bottom: 24px;
  }

  .medisis-booking-eyebrow {
    margin-bottom: 7px;
    font-size: 11px;
    letter-spacing: .09em;
  }

  .medisis-booking-heading h2 {
    font-size: clamp(23px, 7vw, 28px);
    line-height: 1.2;
  }

  .medisis-booking-heading > p {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.55;
  }

  .medisis-booking-line {
    width: 40px;
    margin-top: 13px;
  }

  .medisis-booking-flow {
    width: 100%;
    gap: 12px;
    margin-right: 0;
    margin-bottom: 22px;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .medisis-booking-step {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    justify-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 126px;
    padding: 13px 14px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 16px;
    text-align: center;
  }

  .medisis-booking-step:not(:last-child)::after {
    display: none;
  }

  .medisis-step-icon-wrap,
  .medisis-step-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .medisis-step-icon {
    font-size: 23px;
  }

  .medisis-step-number {
    top: -4px;
    right: -4px;
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .medisis-step-label {
    margin: 0;
    color: #003C48;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
  }

  .medisis-step-icon-desktop,
  .medisis-step-label-desktop {
    display: none;
  }

  .medisis-step-icon-mobile {
    display: inline-block;
  }

  .medisis-step-label-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .medisis-step-label-mobile strong {
    color: #003C48;
    font-size: 15px;
    font-weight: 800;
  }

  .medisis-step-label-mobile small {
    color: #008D99;
    font-size: 12px;
    font-weight: 500;
  }

  .medisis-booking-connector {
    display: none;
  }

  .medisis-booking-button {
    width: 100%;
    max-width: none;
    min-height: 58px;
    margin: 0 auto;
    padding: 16px 19px;
    border-radius: 13px;
  }
}

@media (max-width: 380px) {
  .medisis-booking-heading h2 {
    font-size: 22px;
  }

  .medisis-booking-heading > p {
    font-size: 13px;
  }

  .medisis-booking-step {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 120px;
    padding: 12px;
  }

  .medisis-step-icon-wrap,
  .medisis-step-icon {
    width: 48px;
    height: 48px;
  }
}
}
/* 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;
    }

    .reveal--left,
    .reveal--right {
        transform: translateY(28px);
    }

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

    .container,
    .header__inner,
    .footer__grid {
        max-width: 100%;
    }
}
/* 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;
    }
}
/* Font Awesome Free 6.5.1 no incluye fa-stomach: icono compartido de Gastro. */
.specialties-section .fa-stomach::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 489.6 489.6'%3E%3Cpath d='M1.429,489.6h56c2.3-12.4,4.7-25.3,7-37.7c4.3-21.8,10.5-46.6,35.7-52.1c29.4-6.2,56.7,21.8,73.8,33.4c42.7,30.3,97.5,39.6,150,35c103.4-6.4,137.2-87.4,152.3-134.4c5.4-16.7,34.1-132.3-23.3-220.7c-25.1-44.3-75.3-55.8-122-28c-13.2,10.1-22.9,26.4-42.4,24.9c-30.1,0-36.1-52.5-33.8-70.7V0h-58.3v75.8c-2.7,56.5,69.5,102.7,74.2,135.2c13.2,31.1-1.9,67.6-24.9,92.9c-24.2,29.9-57.1,25.6-73.1,24.9c-20.6-.8-41.2-.4-62.2,.8c-21.6,1.1-103.1,6.2-109,75.3V489.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 489.6 489.6'%3E%3Cpath d='M1.429,489.6h56c2.3-12.4,4.7-25.3,7-37.7c4.3-21.8,10.5-46.6,35.7-52.1c29.4-6.2,56.7,21.8,73.8,33.4c42.7,30.3,97.5,39.6,150,35c103.4-6.4,137.2-87.4,152.3-134.4c5.4-16.7,34.1-132.3-23.3-220.7c-25.1-44.3-75.3-55.8-122-28c-13.2,10.1-22.9,26.4-42.4,24.9c-30.1,0-36.1-52.5-33.8-70.7V0h-58.3v75.8c-2.7,56.5,69.5,102.7,74.2,135.2c13.2,31.1-1.9,67.6-24.9,92.9c-24.2,29.9-57.1,25.6-73.1,24.9c-20.6-.8-41.2-.4-62.2,.8c-21.6,1.1-103.1,6.2-109,75.3V489.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
