/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --blue: #008D99;
  --blue-2: #008D99;
  --blue-dark: #003C48;
  --navy: #003C48;
  --cyan-soft: #eaf8ff;
  --cyan-soft-2: #f4fbff;
  --border: #0FC8D8;
  --text: #003C48;
  --muted: #003C48;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(0, 60, 72, .08);
  --radius: 17px;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

ul {
  list-style: none;
}

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

/* ============================================
   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 */
/* 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(30, 30, 30, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    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;
}

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

.contact-icon-bottom i {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.contact-icon-bottom:hover i,
.contact-icon-bottom:focus i {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.08);
}



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

}

/* ============================================================
   LAYOUT
   ============================================================ */

.page-shell {
  width: 100%;
  max-width: 1368px;
  margin: 0 auto;
  padding-left: 54px;
  padding-right: 54px;
}

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

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

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

.btn-primary-med {
  color: #fff;
  border: 1px solid #008D99;
  background: linear-gradient(135deg, #0FC8D8 0%, #008D99 100%);
  box-shadow: 0 9px 20px rgba(0, 141, 153, .18);
}

.btn-primary-med:hover,
.btn-primary-med:focus {
  color: #fff;
  background: linear-gradient(135deg, #008D99 0%, #0FC8D8 100%);
  box-shadow: 0 14px 25px rgba(0, 141, 153, .23);
}

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

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

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

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

/* ============================================================
   MARCA COMPARTIDA
   ============================================================ */
.compact-shell {
  max-width: 1284px;
}

/* ============================================================
   HELPERS BOOTSTRAP
   ============================================================ */

/* ============================================================
   HERO ENDODONCIA
   ============================================================ */

/* ============================================================
   PROCESO
   ============================================================ */

/* ============================================================
   VIDEO Y PROCEDIMIENTO
   ============================================================ */

/* ============================================================
   ESPECIALISTAS
   ============================================================ */

/* ============================================================
   CTA AGENDA
   ============================================================ */
.cta-band {
  position: relative;
  margin-top: 0;
  padding: 17px 0 18px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0FC8D8 0%, #008D99 100%);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background:
    repeating-radial-gradient(ellipse at 80% 16%, transparent 0 8px, rgba(255, 255, 255, .35) 9px 10px),
    linear-gradient(90deg, rgba(0, 60, 72, .25), transparent 54%);
}

.cta-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  min-height: 76px;
}

.cta-text {
  display: flex;
  align-items: center;
  gap: 27px;
}

.cta-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 32px;
}

.cta-text h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 900;
}

.cta-text p {
  margin: 0;
  color: #e9fbff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.btn-white-outline {
  min-width: 256px;
  min-height: 48px;
  padding: 10px 24px;
  color: #fff;
  border: 2px solid #fff;
  background: transparent;
  font-size: 14px;
  border-radius: 7px;
}

.btn-white-outline:hover,
.btn-white-outline:focus {
  color: var(--blue);
  background: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
  .page-shell {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 991.98px) {

  .cta-shell {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .cta-text {
    gap: 16px;
  }

  .btn-white-outline {
    width: 100%;
  }
}

@media (max-width: 479.98px) {
  .page-shell {
    padding-left: 15px;
    padding-right: 15px;
  }

  .cta-text {
    align-items: flex-start;
  }

  .cta-icon {
    width: 54px;
    height: 54px;
    font-size: 27px;
  }

  .cta-text h2 {
    font-size: 27px;
  }
}

@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;
  }
}
/* 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,
    .container-fluid,
    .page-shell,
    .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;
    }
}

/* ============================================================
   ENDODONCIA 2026
   Estructura visual alineada con colonoscopia, conservando la
   paleta azul de la especialidad dental.
   ============================================================ */
:root {
  --dental-blue: #008D99;
  --dental-cyan: #008D99;
  --dental-teal: #008D99;
  --dental-navy: #003C48;
  --dental-soft: #eaf8ff;
  --dental-soft-2: #f4fbff;
  --dental-line: #0FC8D8;
  --dental-shadow: 0 12px 28px rgba(0, 60, 72, .10);
}

.dental-main {
  overflow: hidden;
  background: #fff;
}

.dental-main .page-shell,
.dental-main .container-fluid.page-shell {
  --bs-gutter-x: 0;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.endo-title-line {
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--dental-blue), var(--dental-teal));
}

.endo-coral-line {
  display: block;
  width: 33px;
  height: 3px;
  margin: 15px auto;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--dental-blue), var(--dental-cyan));
}

.dental-main .btn-primary-med {
  border-color: transparent;
  background: linear-gradient(90deg, var(--dental-blue), var(--dental-cyan));
  box-shadow: 0 10px 22px rgba(0, 141, 153, .22);
}

.dental-main .btn-primary-med:hover,
.dental-main .btn-primary-med:focus {
  border-color: transparent;
  background: linear-gradient(90deg, #0FC8D8, #008D99);
}

/* Banner de Endodoncia: replica el formato panoramico de Colonoscopia solo en desktop. */
.endo-hero-banner {
  display: none;
}

@media (min-width: 768px) {
  .endo-hero-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f7fafc;
  }

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

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

/* Sección de proceso */


.endo-specialists-head h2 {
  margin: 0;
  color: var(--dental-navy);
  font-family: "Poppins", sans-serif;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 800;
}

.endo-heading--stacked .endo-heading-title,
.endo-heading--stacked .endo-heading-kicker {
  display: block;
}


.endo-specialists-head h2 .endo-heading-title {
  color: var(--dental-blue);
}


.endo-heading-icon,
.endo-trust-card > i,
.endo-doctor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--dental-blue);
  background: var(--dental-soft);
}

/* Bloque audiovisual */

/* Especialistas */
.endo-specialists-section {
  padding: 46px 0 62px;
  background: #f7f9fa;
}

.endo-specialists-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.endo-heading-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.endo-heading-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  font-size: 29px;
}

.endo-heading-copy .endo-title-line {
  margin: 16px auto 14px;
}

.endo-heading-copy > p {
  max-width: 650px;
  margin: 0 auto;
  color: #003C48;
  font-size: 13px;
  line-height: 1.5;
}

.endo-trust-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 14px 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 72, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 60, 72, .07);
}

.endo-trust-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 112px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--dental-teal);
  transform: translateX(-50%);
}

.endo-trust-card > i {
  width: 48px;
  height: 48px;
  font-size: 25px;
}

.endo-trust-card p {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(0, 60, 72, .12);
  color: #003C48;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  font-weight: 700;
}

.endo-trust-card span,
.endo-doctor-card strong {
  color: var(--dental-blue);
}

.endo-doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 27px;
  max-width: 100%;
  margin: 0 auto;
}

.endo-doctor-card {
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 27px rgba(0, 60, 72, .09);
}

.endo-doctor-card > img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center top;
  background: #eef7fb;
}

.endo-doctor-body {
  position: relative;
  min-height: 168px;
  padding: 44px 24px 22px;
  text-align: center;
}

.endo-doctor-icon {
  position: absolute;
  top: -36px;
  left: 50%;
  width: 72px;
  height: 72px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 60, 72, .08);
  transform: translateX(-50%);
  font-size: 38px;
}

.endo-doctor-card h3 {
  margin: 0 0 5px;
  color: #003C48;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 900;
}

.endo-doctor-card strong {
  display: block;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

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

.endo-doctor-card p i {
  color: var(--dental-teal);
  font-size: 27px;
}

/* Carrusel fluido de especialistas, basado en Información destacada del inicio. */

.dental-main .cta-band {
  background: linear-gradient(135deg, var(--dental-blue), var(--dental-cyan));
}

@media (min-width: 768px) {
  
  .endo-specialists-head h2 .endo-heading-kicker {
    margin-bottom: 6px;
    color: var(--dental-navy);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 800;
  }

  
  .endo-specialists-head h2 .endo-heading-title {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: normal;
  }
}

@media (max-width: 1199.98px) {
  
  .endo-doctors-grid {
    max-width: calc(100% - 64px);
  }

  .endo-doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {

  .endo-doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .endo-doctor-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 14px);
    justify-self: center;
  }
}

@media (max-width: 767.98px) {
  .dental-main .container-fluid.page-shell {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  
  .endo-specialists-section {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  
  .endo-specialists-head h2 {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -.035em;
  }

  .endo-heading-kicker {
    margin-bottom: 5px;
    font-size: 15px;
  }

  
  .endo-doctors-grid {
    max-width: 100%;
  }

  .endo-doctor-card > img {
    height: 280px;
  }
}

@media (max-width: 575.98px) {
  
  .endo-doctors-grid {
    grid-template-columns: 1fr;
  }

  .endo-doctor-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 479.98px) {
  .dental-main .container-fluid.page-shell {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
}

/* ============================================================
   REDISEÑO EDITORIAL DE ENDODONCIA
   ============================================================ */
.endo-content-shell {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.endo-content-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 17px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--dental-blue), var(--dental-cyan));
  box-shadow: 0 8px 20px rgba(0, 141, 153, .2);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 800;
}

.endo-content-heading span {
  display: block;
  margin-bottom: 5px;
  color: var(--dental-cyan);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 800;
}

.endo-content-heading h2,
.endo-content-copy h2,
.endo-symptoms-intro h2,
.endo-process-intro h2,
.endo-benefits-top h2,
.endo-aftercare-intro h2 {
  margin: 0;
  color: #003C48;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
}

.endo-content-heading--center {
  text-align: center;
}

.endo-content-heading--center h2 {
  font-size: clamp(28px, 3vw, 43px);
}

.endo-content-heading--center > i {
  display: block;
  width: 68px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--dental-cyan) 0 42%, transparent 42% 58%, var(--dental-cyan) 58%);
}

/* Navegación de contenidos */
.endo-content-services {
  position: relative;
  padding: 62px 0 76px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 15%, rgba(0, 141, 153, .08), transparent 22%),
    linear-gradient(180deg, #fff, #f8fcff);
}

.endo-content-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.endo-content-service-card {
  position: relative;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 16px 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 141, 153, .11);
  border-radius: 17px;
  color: #003C48;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 14px 34px rgba(0, 60, 72, .09);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.endo-content-service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--dental-blue), var(--dental-cyan), var(--dental-teal));
  opacity: 0;
  transition: opacity .25s ease;
}

.endo-content-service-card:hover,
.endo-content-service-card:focus-visible {
  color: #003C48;
  border-color: rgba(0, 141, 153, .35);
  box-shadow: 0 20px 38px rgba(0, 60, 72, .14);
  transform: translateY(-7px);
}

.endo-content-service-card:hover::before,
.endo-content-service-card:focus-visible::before {
  opacity: 1;
}

.endo-content-service-card > span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 50%;
  color: var(--dental-cyan);
  background: #eefaff;
  font-size: 33px;
}

.endo-content-service-card h3 {
  min-height: 45px;
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.endo-content-service-card > .bi-arrow-right {
  color: var(--dental-cyan);
  font-size: 23px;
  transition: transform .25s ease;
}

.endo-content-service-card:hover > .bi-arrow-right {
  transform: translateX(5px);
}

/* Qué es y cuándo se necesita */
.endo-content-about {
  position: relative;
  padding: 86px 0 78px;
  overflow: hidden;
  background: linear-gradient(120deg, #f9fdff 0%, #edf8ff 52%, #dff4ff 100%);
}

.endo-content-about::after {
  content: "";
  position: absolute;
  right: -210px;
  top: 310px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(0, 141, 153, .14);
  border-radius: 50%;
  pointer-events: none;
}

.endo-content-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: clamp(42px, 6vw, 90px);
}

.endo-content-copy h2,
.endo-symptoms-intro h2,
.endo-process-intro h2,
.endo-benefits-top h2,
.endo-aftercare-intro h2 {
  margin-top: 18px;
  font-size: clamp(35px, 4.2vw, 58px);
  line-height: 1.04;
}

.endo-content-copy > p,
.endo-symptoms-intro > p,
.endo-process-intro > div > p,
.endo-benefits-top > div > p,
.endo-aftercare-intro > p {
  margin: 22px 0 0;
  color: #003C48;
  font-size: 15px;
  line-height: 1.7;
}

.endo-content-highlights {
  display: grid;
  gap: 14px;
  margin: 25px 0 28px;
}

.endo-content-highlights > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 13px;
  color: #003C48;
  font-size: 12px;
  line-height: 1.45;
}

.endo-content-highlights i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--dental-teal);
  background: #e7f9fb;
  font-size: 22px;
}

.endo-content-highlights strong {
  display: block;
  color: var(--dental-navy);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.endo-content-highlights span {
  font-size: 12px;
}

.endo-content-copy .btn {
  min-height: 49px;
  padding: 12px 23px;
  border-radius: 9px;
  font-size: 12px;
}

.endo-content-media,
.endo-process-visual,
.endo-benefits-top figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 30px 30px 80px 30px;
  box-shadow: 0 28px 65px rgba(0, 60, 72, .16);
}

.endo-content-media::before,
.endo-process-visual::before,
.endo-benefits-top figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: inherit;
  pointer-events: none;
}

.endo-content-media {
  aspect-ratio: 4 / 3;
}

.endo-content-media img,
.endo-process-visual img,
.endo-benefits-top figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.endo-content-media img {
  object-position: 63% center;
}

.endo-content-media figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  color: #003C48;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 30px rgba(0, 60, 72, .12);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.endo-content-media figcaption i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--dental-blue), var(--dental-teal));
  font-size: 24px;
}

.endo-content-media figcaption strong {
  display: block;
  color: var(--dental-navy);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.endo-symptoms {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 50px;
  margin-top: 72px;
  padding-top: 54px;
  border-top: 1px solid rgba(0, 141, 153, .16);
}

.endo-symptoms-intro h2 {
  font-size: clamp(32px, 3.4vw, 46px);
}

.endo-symptoms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.endo-symptoms-grid article {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 141, 153, .13);
  border-radius: 15px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 24px rgba(0, 60, 72, .07);
}

.endo-symptoms-grid article > i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--dental-blue);
  background: var(--dental-soft);
  font-size: 24px;
}

.endo-symptoms-grid h3 {
  margin: 0 0 4px;
  color: #003C48;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.endo-symptoms-grid p {
  margin: 0;
  color: #003C48;
  font-size: 12px;
  line-height: 1.4;
}

/* Proceso del tratamiento */
.endo-content-process {
  padding: 82px 0 76px;
  background: #fff;
}

.endo-process-intro {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(470px, 1.22fr);
  align-items: center;
  gap: 42px;
}

.endo-process-visual {
  aspect-ratio: 16 / 8;
  border-radius: 28px;
}

.endo-process-visual img {
  object-position: 62% 54%;
}

.endo-treatment-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.endo-treatment-steps li {
  position: relative;
  min-height: 242px;
  padding: 24px 18px 22px;
  border: 1px solid rgba(0, 141, 153, .14);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(9, 13, 16, 0.08);
}

.endo-treatment-steps li::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, var(--dental-blue), var(--dental-cyan));
}

.endo-treatment-steps li > span {
  position: absolute;
  top: 17px;
  right: 16px;
  color: rgba(0, 141, 153, .24);
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.endo-treatment-steps li > i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 15px;
  color: var(--dental-cyan);
  background: #eefaff;
  font-size: 27px;
}

.endo-treatment-steps h3 {
  min-height: 49px;
  margin: 0 0 11px;
  color: #003C48;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 700;
}

.endo-treatment-steps p {
  margin: 0;
  color: #003C48;
  font-size: 14px;
  line-height: 1.5;
}

.endo-process-note {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  padding: 17px 22px;
  border: 1px solid #0FC8D8;
  border-radius: 15px;
  color: #003C48;
  background: linear-gradient(90deg, #eef9ff, #f9fdff);
}

.endo-process-note > i {
  color: var(--dental-blue);
  font-size: 27px;
}

.endo-process-note p {
  margin: 0;
  font-size: 14px;
}

.endo-process-note a {
  color: var(--dental-blue);
  font-size: 14px;
  font-weight: 800;
}

.endo-process-note .btn {
  min-height: 44px;
  padding: 10px 24px;
  font-size: 14px;
}

/* Beneficios */
.endo-content-benefits {
  position: relative;
  padding: 82px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #f9fdff, #eaf8ff);
}

.endo-benefits-top {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(500px, 1.28fr);
  align-items: center;
  gap: 45px;
}

.endo-benefits-top figure {
  aspect-ratio: 16 / 8.4;
  border-radius: 28px 28px 28px 80px;
}

.endo-benefits-top figure img {
  object-position: 70% center;
}

.endo-benefit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  margin-top: 38px;
}

.endo-benefit-grid article {
  min-height: 164px;
  padding: 21px 18px;
  border: 1px solid rgba(0, 141, 153, .13);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 27px rgba(0, 60, 72, .08);
}

.endo-benefit-grid article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--dental-blue);
  background: var(--dental-soft);
  font-size: 23px;
}

.endo-benefit-grid h3 {
  margin: 0 0 7px;
  color: #003C48;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 700;
}

.endo-benefit-grid p {
  margin: 0;
  color: #003C48;
  font-size: 14px;
  line-height: 1.45;
}

/* Cuidados posteriores */
.endo-content-aftercare {
  padding: 82px 0 88px;
  background: #fff;
}

.endo-aftercare-layout {
  display: grid;
  grid-template-columns: minmax(290px, .66fr) minmax(0, 1.34fr);
  align-items: center;
  gap: 58px;
}

.endo-aftercare-seal {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 15px;
  border: 1px solid rgba(0, 141, 153, .16);
  border-radius: 14px;
  color: #003C48;
  background: #f5fbff;
  font-size: 11px;
  line-height: 1.4;
}

.endo-aftercare-seal > i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--dental-blue), var(--dental-teal));
  font-size: 25px;
}

.endo-aftercare-seal strong {
  display: block;
  color: var(--dental-navy);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.endo-aftercare-seal span {
  font-size: 12px;
}

.endo-care-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.endo-care-list article {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 15px 16px;
  border: 1px solid rgba(0, 141, 153, .26);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(0, 60, 72, .07);
}

.endo-care-list article > span {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #008D99;
  font-size: 9px;
  font-weight: 800;
}

.endo-care-list article > i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--dental-blue);
  background: var(--dental-soft);
  font-size: 23px;
}

.endo-care-list article p {
  margin: 0;
  padding-right: 12px;
  color: #003C48;
  font-size: 14px;
  line-height: 1.45;
}

.endo-care-list aside {
  grid-column: 1 / -1;
  padding: 13px 17px;
  border: 1px solid rgba(0, 141, 153, .28);
  border-radius: 12px;
  color: #003C48;
  background: #f5fbff;
  font-size: 14px;
  text-align: center;
}

.endo-care-list aside i {
  margin-right: 7px;
  color: var(--dental-blue);
  font-size: 17px;
  vertical-align: middle;
}

@media (max-width: 1199.98px) {
  .endo-content-service-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .endo-content-service-card {
    grid-column: span 2;
  }

  .endo-content-service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .endo-content-service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .endo-treatment-steps,
  .endo-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .endo-content-split,
  .endo-symptoms,
  .endo-process-intro,
  .endo-benefits-top,
  .endo-aftercare-layout {
    grid-template-columns: 1fr;
  }

  .endo-content-copy,
  .endo-symptoms-intro,
  .endo-process-intro > div,
  .endo-benefits-top > div,
  .endo-aftercare-intro {
    max-width: 720px;
  }

  .endo-content-media,
  .endo-process-visual,
  .endo-benefits-top figure {
    width: 100%;
    max-height: 520px;
  }
}

@media (max-width: 767.98px) {
  .endo-content-shell {
    width: min(100% - 36px, 1280px);
  }

  .endo-content-services,
  .endo-content-about,
  .endo-content-process,
  .endo-content-benefits,
  .endo-content-aftercare {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .endo-content-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .endo-content-service-card,
  .endo-content-service-card:nth-child(4),
  .endo-content-service-card:nth-child(5) {
    grid-column: auto;
    min-height: 194px;
  }

  .endo-content-service-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }

  .endo-content-copy h2,
  .endo-symptoms-intro h2,
  .endo-process-intro h2,
  .endo-benefits-top h2,
  .endo-aftercare-intro h2 {
    font-size: clamp(31px, 8.3vw, 44px);
  }

  .endo-content-copy > p,
  .endo-symptoms-intro > p,
  .endo-process-intro > div > p,
  .endo-benefits-top > div > p,
  .endo-aftercare-intro > p {
    font-size: 14px;
  }

  .endo-content-media,
  .endo-process-visual,
  .endo-benefits-top figure {
    border-radius: 22px;
  }

  .endo-process-visual,
  .endo-benefits-top figure {
    aspect-ratio: 4 / 3;
  }

  .endo-symptoms-grid,
  .endo-treatment-steps,
  .endo-benefit-grid,
  .endo-care-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .endo-treatment-steps li {
    min-height: 224px;
  }

  .endo-process-note {
    grid-template-columns: 36px 1fr;
  }

  .endo-process-note a {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .endo-content-service-card {
    padding: 22px 12px 18px;
  }

  .endo-content-service-card > span {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .endo-content-service-card h3 {
    font-size: 13px;
  }

  .endo-content-media figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 42px 1fr;
    padding: 10px;
  }

  .endo-content-media figcaption i {
    width: 42px;
    height: 42px;
  }

  .endo-symptoms-grid article {
    grid-template-columns: 42px 1fr;
    min-height: 104px;
    padding: 12px 10px;
  }

  .endo-symptoms-grid article > i {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .endo-symptoms-grid h3 {
    font-size: 11px;
  }

  .endo-symptoms-grid p {
    font-size: 9px;
  }

  .endo-treatment-steps li {
    min-height: 218px;
    padding: 18px 12px 19px;
  }

  .endo-treatment-steps li > span {
    top: 13px;
    right: 11px;
    font-size: 18px;
  }

  .endo-treatment-steps li > i {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 13px;
    font-size: 22px;
  }

  .endo-treatment-steps h3 {
    min-height: 0;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .endo-treatment-steps p {
    font-size: 10px;
    line-height: 1.4;
  }

  .endo-benefit-grid article {
    min-height: 155px;
    padding: 17px 13px;
  }

  .endo-care-list article {
    grid-template-columns: 42px 1fr;
    min-height: 112px;
    padding: 13px 10px;
  }

  .endo-care-list article > i {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .endo-care-list article p {
    padding-right: 5px;
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .endo-content-service-card,
  .endo-content-service-card > .bi-arrow-right {
    transition: none;
  }
}
