/* inicio.css — home page styles */

/* ─────────────────────────────────────────────────────────────────────────────
   Hero
   Two-zone layout: white left (~58%) / solid-blue right (~42%).
   Diagonal separator via clip-path on the blue background layer.
   Doctor photo anchored to bottom, extends left across the diagonal.
───────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  /* transparent so the Vanta animation shows through the white zone */
  background: transparent;
}

/* Solid blue right zone — diagonal left edge leans left as it goes down */
.hero__bg-right {
  position: absolute;
  inset: 0;
  background: #244693;
  /* top-left at 57%, bottom-left at 47% → ~10% lean = visible diagonal */
  clip-path: polygon(65% 0, 100% 0, 100% 100%, 55% 100%);
  z-index: 0;
}

/* Inner content wrapper: flex row, constrained width, not a Bootstrap container */
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 460px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 180px 60px 0;
}

/* ── Left zone (~62%) ── */
.hero__left {
  flex: 0 0 62%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 40px;
}

.hero__logo {
  max-width: 145px;
  width: 100%;
}

.hero__tagline {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #1a1a2e;
  text-align: center;
  line-height: 1.45;
  /* no max-width: let the full column width keep text on one line */
  margin: 0;
  white-space: nowrap;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

/* Both buttons: same 340×65px footprint */
.hero__ctas .cta-icon {
  width: 340px;
  min-height: 65px;
  justify-content: center;
}

.hero__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 340px;
  min-height: 65px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(270deg, #3798af, #244693);
  border-radius: 10px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease;
}
.hero__phone:hover {
  color: #ffffff;
  opacity: 0.88;
}

/* ── Right zone (~38%) ── */
.hero__right {
  flex: 0 0 38%;
  position: relative;
  align-self: stretch;
}

/* Doctor photo: anchored bottom, pulled left toward the diagonal boundary */
.hero__doctor {
  position: absolute;
  bottom: 0;
  left: -160px;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
}

/* Floating badge */
.hero__badge {
  position: absolute;
  top: 18%;
  right: 5%;
  background: linear-gradient(270deg, #371e70, #3798af);
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 23px;
  font-weight: 200;
  line-height: 1.4;
  text-align: center;
  padding: 14px 20px;
  border-radius: 18px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
  width: 300px;
  z-index: 3;
  animation: badge-float 6s ease-in-out infinite;
}

/* Scroll indicator: centered at the bottom of the hero */
.hero__scroll-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero__scroll-indicator img {
  display: block;
  opacity: 0.75;
}

@keyframes badge-float {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(10px, -10px);
  }
  50% {
    transform: translate(0, -20px);
  }
  75% {
    transform: translate(-10px, -10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  /* Blue zone: clean single-diagonal bottom band */
  .hero__bg-right {
    clip-path: polygon(0 68%, 100% 48%, 100% 100%, 0 100%);
  }

  .hero__inner {
    flex-direction: column;
    align-items: center;
    padding: 110px 24px 0;
    min-height: auto;
  }

  .hero__left {
    flex: none;
    width: 100%;
    align-items: center;
    padding-bottom: 16px;
  }

  .hero__tagline {
    white-space: normal;
    font-size: 16px;
    max-width: 280px;
    text-align: center;
  }

  /* Buttons full width up to 300px */
  .hero__ctas .cta-icon,
  .hero__phone {
    width: 100%;
    max-width: 300px;
  }

  .hero__right {
    flex: none;
    width: 100%;
    height: 280px;
    position: relative;
  }

  .hero__doctor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: auto;
    height: 100%;
    width: auto;
    max-width: 70%;
  }

  /* Badge hidden on mobile — too wide for narrow screens */
  .hero__badge {
    display: none;
  }

  .hero__scroll-indicator {
    position: absolute;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
    z-index: 3;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Meet the Doctor
   Two-column: circular photo left + bio text right.
   Video background with gradient overlay (same pattern as PathologySection).
───────────────────────────────────────────────────────────────────────────── */
.meet-dr {
  position: relative;
  overflow: hidden;
  padding-block: 3.5rem;
}

.meet-dr__video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.meet-dr__video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(94deg, #3798af 16%, #244693 100%);
  opacity: 0.92;
  z-index: 1;
}

.meet-dr__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.meet-dr__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.meet-dr__heading {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 2.25rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem;
}

.meet-dr__photo {
  border-radius: 50%;
  width: 320px;
  height: 320px;
  object-fit: cover;
  object-position: top center;
}

.meet-dr__text {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

.meet-dr__text p {
  margin-bottom: 1.25rem;
}

.meet-dr__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .meet-dr__video-bg {
    display: none;
  }

  .meet-dr {
    background-image: linear-gradient(94deg, #3798af 16%, #244693 100%);
  }

  .meet-dr__photo {
    width: 220px;
    height: 220px;
    margin-bottom: 1.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   YouTube section
   Wide 16:9 responsive embed, centered, with vertical breathing room.
───────────────────────────────────────────────────────────────────────────── */
.yt-section {
  padding-block: 3.5rem;
  position: relative;
  z-index: 100;
}

.yt-section__inner {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.yt-section__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.yt-section__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Consulta médica especializada
───────────────────────────────────────────────────────────────────────────── */
.consulta-home {
  position: relative;
  overflow: hidden;
  padding-block: 4rem;
}

.consulta-home__video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.consulta-home__video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(91deg, #5f3b83 0%, #244693 100%);
  opacity: 0.92;
  z-index: 1;
}

.consulta-home__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.consulta-home__inner {
  position: relative;
  z-index: 1;
}

.consulta-home__title {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

.consulta-home__text {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 1rem;
}

.consulta-home__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  background: #ffffff;
  color: #244693;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.consulta-home__btn:hover {
  opacity: 0.88;
  color: #244693;
}

@media (max-width: 767px) {
  .consulta-home__video-bg {
    display: none;
  }
  .consulta-home {
    background-image: linear-gradient(91deg, #5f3b83 0%, #244693 100%);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Seguros aceptados
───────────────────────────────────────────────────────────────────────────── */
.insurance-section__logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.insurance-section__text {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #244693;
  line-height: 1.5;
  margin: 0;
}

.insurance-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.insurance-section__insurance-logo {
  width: 100%;
  height: 48px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.insurance-section__insurance-logo:hover {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Te esperamos en consulta
───────────────────────────────────────────────────────────────────────────── */
.contact-home {
  background-image: radial-gradient(ellipse at 0% 50%, #371e70, #244693, #3798af);
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
}

.contact-home__title {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.contact-home__subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.contact-home__info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-home__info-text {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #ffffff;
  margin: 0;
}

.contact-home__map {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: 8px;
  display: block;
}

.contact-home__photo {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Tipos de cirugía
───────────────────────────────────────────────────────────────────────────── */
.surgery-types {
  background-image: radial-gradient(ellipse at 0% 50%, #371e70, #244693, #3798af);
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
}

.surgery-types__title {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

.surgery-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
}

.surgery-item__name {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.3;
}

.surgery-types__photo {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.surgery-types__footer {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #ffffff;
  max-width: 600px;
  margin-inline: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Principales Patologías
───────────────────────────────────────────────────────────────────────────── */
.pathologies-home__gif {
  display: block;
  margin-inline: auto;
}

.pathologies-home__title {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #244693;
  line-height: 1.2;
  margin: 0;
}

.pathologies-home__intro {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  max-width: 680px;
  margin-inline: auto;
}


/* ─────────────────────────────────────────────────────────────────────────────
   Testimonials carousel (home)
───────────────────────────────────────────────────────────────────────────── */
.testimonials-home__row {
  gap: 2rem 0;
}

.testimonials-home {
  background: linear-gradient(270deg, #371e70, #244693, #3798af);
}

.testimonials-home__title {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}
.swiperTestimonialsHome {
  padding-bottom: 3rem !important;
}

.swiperTestimonialsHome .swiper-pagination {
  bottom: 0 !important;
}

.swiperTestimonialsHome .swiper-slide {
  display: flex;
  height: auto;
}

.swiperTestimonialsHome .swiper-slide > * {
  width: 100%;
}

