@import url("https://fonts.googleapis.com/css2?family=Cabin:wght@400;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/panton");

body {
  margin: 0;
  font-family: "Panton", sans-serif;
  font-weight: 700;
  color: #460487;
}

.navbar-custom {
  background-color: #7405c8;
  padding: 0;
  font-family: Helvetica, sans-serif;
}

.nav-link img {
  display: none;
}

#navbarNav {
  justify-content: end;
}

.navbar-custom a {
  color: #fff;
  font-size: 1.5vw;
}

.first-container {
  background-image: url("assets/bannerDesktop.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  text-align: center;
  height: 36.016vw;
}

.logoNav {
  width: 20vw;
}

#sucursales {
  font-size: 2.6em;
}

.spanMano {
  font-size: 2.6vw;
}

.arrowNav {
  display: none;
}

.first-container img {
  width: 200px;
  margin-bottom: 20px;
}

.first-container h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 900;
}

.first-container button {
  position: relative;
  background-color: #fabf1d;
  border: none;
  border-radius: 5vw;
  font-size: 1.7vw;
  color: #460487;
  font-weight: bold;
  width: 17vw;
  height: 4.5vw;
  left: 45vw;
  bottom: -22vw;
  font-family: Helvetica, sans-serif;
}

.second-container {
  padding: 0 12vw;
  background-color: #faf1fe;
  height: 25vw;
  gap: 4.5vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.sc-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.second-container h2 {
  width: 100%;
  font-size: 2.2vw;
  font-weight: 800;
  text-align: start;
}

.second-container p {
  color: #000;
  font-size: 1.2vw;
  font-weight: bold;
  font-family: Helvetica, sans-serif;
  text-align: start;
}

.third-container {
  height: 15vw;
  background-color: #7044ad;
}

.carousel-item img {
  height: 15vw;
  object-fit: fill;
}

.sc-div img {
  width: 12vw;
}

.fourth-container {
  background-color: #7044ad;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  height: 18vw;
}

.fourth-container h1 {
  font-size: 2.4vw;
  margin-bottom: 3vw;
  font-weight: 900;
}

.contact-methods {
  font-family: Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  gap: 5vw;
}

.contactFlex {
  display: flex;
  align-items: center;
  flex-direction: row;
  text-align: center;
  gap: 20px;
}

.contactFlex a {
  color: #fff;
}

.contact-methods h6 {
  margin: 10px 0 5px;
  font-size: 1.5vw;
}

.contact-methods img {
  width: 3.8vw;
  height: 3.8vw;
}

.footer-custom {
  background-color: #460487;
  color: #ffffff;
  padding: 20px 0;
  font-family: Helvetica, sans-serif;
}

.footer-custom p,
.footer-custom a {
  margin-bottom: 0;
  color: #ffffff;
}

.footer-custom img {
  width: 30px;
  height: 30px;
  margin-left: 10px;
}

.footer-custom a {
  text-decoration: none;
  margin-right: 15px;
}

.footer-custom .social-links {
  gap: 15px;
}

.footer-custom .footer-links {
  gap: 20px;
}

.copyright-text {
  text-align: end;
  width: 100%;
  font-weight: 100;
  font-size: 1vw;
}

#CarouselOsvaldo {
  height: 20vw;
}

.carousel-inner {
  height: 100%;
}

/* Ajuste de las imágenes dentro del carrusel */
#CarouselOsvaldo .carousel-item {
  height: 100%;
}

#CarouselOsvaldo img {
  height: 100%;
  object-fit: contain; /* Ajusta la imagen manteniendo su proporción y cubriendo el contenedor */
  width: 100%; /* Asegura que la imagen ocupe el ancho completo del carrusel */
}

/* Mapa */

.map {
  background-color: #faf1fe;
  padding: 4.5vw 0;
}

.mapContainer {
  background-color: #faf1fe;
  color: #460487;
  margin: 0;
}

#map {
  height: 450px;
  width: 100%;
}

.sidebar {
  height: 450px;
  overflow-y: auto;
  transition: transform 0.3s ease;
  position: relative;
  font-family: Helvetica, sans-serif;
  font-weight: normal;
}

.custom-btn {
  background-color: #fabf1d;
  color: #460487;
  font-family: Helvetica, sans-serif;
  border-color: #e5ead2;
  box-shadow: none;
}

.custom-btn:hover,
.custom-btn:focus {
  border-color: #e6f2e4;
}

.custom-dropdown-toggle::after {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.custom-dropdown-menu {
  width: 100%;
}

.list-itemBorder {
  padding-top: 1vw;
  margin: 0 10px;
  background-color: #f1f3f4;
}

.list-itemBorder:first-child {
  padding-top: 0;
}

.labelDistance {
  color: #dd1111;
}

.listItem {
  height: 160px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #460487;
  border-radius: 100px;
}

.sidebar::-webkit-scrollbar-track {
  background: none;
}
.btnStyle {
  padding: 25px;
  background-color: #f3e3fd;
  color: #460487;
  border: none;
  border-radius: 25px;
}

.sidebarBtnSmall {
  padding: 8px;
  border-radius: 5px;
}

.btnSucursales {
  background-color: #fabf1d;
  color: #460487;
  display: none;
  font-family: Helvetica, sans-serif;
  font-size: 1.1em;
  font-weight: bold;
  align-self: center;
}

.mostrarMas,
.mostrarMenos {
  color: #299139;
  cursor: pointer;
}

.mostrarMas:hover,
.mostrarMenos:hover,
.mostrarMas:focus,
.mostrarMenos:focus,
.mostrarMas:active,
.mostrarMenos:active {
  color: #207a2e;
}
.infoSucursal {
  overflow: hidden;
  height: 30px;
  /* altura por defecto cuando está colapsado */
  transition: height 0.3s ease;
}
.expandido {
  height: auto;
  /* altura automática cuando está expandido */
}

.mostrarMenos {
  display: none;
}
.sucursalesBtn {
  display: none;
}
/*.icon{
    width: 50%;
    height: 50%;
}*/

@media only screen and (max-width: 768px) {
  .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }

  .first-container {
    background-image: url("assets/bannerMovil.png");
    height: 80vw;
  }

  .logoNav {
    width: 200px;
  }

  .navbar-custom {
    padding: 0;
  }

  .nav-link img {
    display: block;
  }

  .arrowNav {
    display: block;
    text-align: end;
    font-size: 1.3em;
  }

  .navbar-custom a {
    color: #460487;
    font-size: 1.2em;
    font-weight: 500;
    padding: 10px 20px;
    font-family: Helvetica, sans-serif;
  }

  .navbar-toggler {
    margin-right: 20px;
  }

  .container-fluid {
    padding: 0;
  }

  #navbarNav {
    background-color: #fabf1d;
    padding: 15px 0 10px 0;
    justify-content: center;
  }

  .first-container button {
    width: 36vw;
    height: 11vw;
    right: 0;
    bottom: -20vw;
    left: 50vw;
    top: auto;
    margin: 20px auto;
    font-size: 3.5vw;
    font-weight: 800;
  }

  .second-container {
    height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
  }

  .sc-div {
    flex-direction: column;
    padding: 0 30px;
  }

  .sc-div img {
    width: 20vw;
    align-self: center;
  }

  .sc-div h2 {
    padding-top: 20px;
    font-size: 4.2vw;
    text-align: center;
  }

  .sc-div p {
    font-size: 3.1vw;
    font-weight: 500;
    text-align: center;
  }

  .spanMano {
    font-size: 1.7em;
    text-align: center;
  }

  #CarouselOsvaldo {
    height: 50vw;
  }

  .contact-methods {
    flex-direction: column;
    gap: 20px;
  }

  .fourth-container {
    height: 280px;
  }
  .fourth-container h1 {
    font-size: 1.6em;
  }

  .contact-methods img {
    width: 50px;
    height: 50px;
  }

  .contact-methods h6 {
    font-size: 1em;
  }

  .footer-custom .d-flex {
    flex-direction: column;
    align-items: center;
  }

  .footer-custom .social-links {
    flex-direction: row;
    align-items: start;
    gap: 10px;
  }

  .footer-custom .footer-links {
    flex-direction: column;
    align-items: start;
    gap: 5px;
  }

  .footer-custom .social-links img {
    margin: 5px 0;
  }

  .footer-custom .footer-links a {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .footer-custom small {
    text-align: start;
  }

  .footer-links,
  .social-links {
    width: 100%;
  }

  .social-links {
    padding-bottom: 20px;
  }

  .copyright-text {
    font-size: 0.8em;
  }

  /* Mapa */

  .map {
    padding-bottom: 0;
  }

  #sucursales {
    font-size: 2em;
  }

  .selectOptions {
    gap: 10px;
  }

  .sidebar.hidden {
    transform: translateX(-100%);
  }
  .sidebar {
    position: fixed;
    display: block;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 85%;
    background: white;
    z-index: 99;
    overflow-y: auto;
  }
  .btnSucursales {
    display: block;
  }

  .sidebarBtn {
    width: 100%;
    text-align: left;
    padding: 5px 3vw;
    border-radius: 0;
  }

  #map {
    height: 700px;
  }
}

/* ========================================
   FARMACLUB - CLUB DE PUNTOS
   ======================================== */

.container-club-puntos {
  display: grid;
  grid-template-columns: 1fr;
}

/* Orden móvil (mobile-first) */
.puntos-hero {
  order: 1;
}
.club-info-section {
  order: 3;
}
.puntos-beneficios {
  order: 2;
}
.club-banner-section {
  order: 4;
}

/* HERO (antes cgp-elemento-1) */
.puntos-hero {
  width: 100%;
  height: 392px;
  background-color: #460487;
  padding: 30px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.puntos-hero__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.puntos-hero__title-image {
  width: 332px;
  height: 134px;
  object-fit: contain;
}

.puntos-hero__coins-image {
  width: 116px;
  height: 182px;
  object-fit: contain;
  position: absolute;
  top: -15px;
  right: -60px;
}

.puntos-hero__title {
  padding-top: 20px;
  color: #fabf1d;
  text-align: center;
  font-size: 4.5vw;
  line-height: 1.2;
}

.puntos-hero__subtitle {
  color: white;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
  font-family: "Helvetica", sans-serif;
}

/* BENEFICIOS (antes cgp-elemento-3) */
.puntos-beneficios {
  background-color: #f3e3fd;
  height: 461px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

/* Carrusel móvil */
.beneficios-carousel {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.beneficios-carousel__track {
  position: relative;
  width: 100%;
  height: 353px;
  overflow: hidden;
}

.beneficios-carousel__track a {
  text-decoration: none;
}

.beneficio-card {
  position: absolute;
  background-color: #fff;
  height: 333px;
  width: 100%;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
}

.beneficio-card.is-active {
  opacity: 1;
  transform: translateX(0);
}

.beneficio-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.beneficio-card h2 {
  color: #460487;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.beneficio-card small {
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: "Helvetica", sans-serif;
}

.beneficio-card__list {
  margin-top: 10px;
  padding-left: 0;
  list-style: none;
}

.beneficio-card__list li {
  color: #460487;
  position: relative;
  padding-left: 15px;
}

.beneficio-card__list li::before {
  content: "•";
  color: #fabf1d;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
}

/* Indicadores */
.carousel-indicators {
  display: flex;
  gap: 12px;
  margin-top: 5px;
  align-items: flex-end;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.carousel-indicator.is-active {
  background-color: #460487;
  width: 16px;
  height: 16px;
  transform: translateY(-2px);
}

/* ========================================
     SECCIÓN CLUB DE PUNTOS - INFORMACIÓN
     ======================================== */

.club-info-section {
  background-color: #f3e3fd;
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 20px;
}

.club-info-section-auxiliar {
  height: auto;
  width: auto;
}

.club-info-section > .info-card {
  width: 100%;
  max-width: 400px;
}

.info-card--subscription,
.info-card--renewal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.info-card--requirements {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 15px;
}

.info-card__icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.info-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.info-card__title {
  color: #460487;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.info-card__description {
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: "Helvetica", sans-serif;
  line-height: 1.4;
}

.info-card__requirements-list {
  margin-top: 8px;
}

.info-card__requirement-item {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #460487;
  font-family: "Helvetica", sans-serif;
}

/* Banner */
.club-banner-section {
  background-color: #f3e3fd;
  padding: 0 30px 30px 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-dr-osvaldo-desktop,
.banner-dr-osvaldo-mobile {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  max-width: 100%;
}

.banner-dr-osvaldo-desktop {
  display: none;
}
.banner-dr-osvaldo-mobile {
  display: block;
}

/* Desktop */
@media (min-width: 768px) {
  .banner-dr-osvaldo-desktop {
    display: block;
  }
  .banner-dr-osvaldo-mobile {
    display: none;
  }

  .beneficios-carousel {
    max-width: 100%;
  }

  .club-info-section-auxiliar {
    background-color: #f3e3fd;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .club-info-section {
    padding: 50px;
    background-color: #460487;
    padding: 0px 60px 0px 0;
  }

  .container-club-puntos {
    display: grid;
    grid-template-columns: 6.5fr 3.5fr;
    grid-template-rows: 600px auto auto;
  }

  /* Fila 1 */
  .puntos-hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 600px;
    padding: 100px;
    height: 400px;
  }

  .club-info-section {
    grid-column: 2;
    grid-row: 1;
    min-height: 600px;
    padding: 0px 60px 0px 0;
  }

  /* Fila 2 */
  .puntos-beneficios {
    grid-column: 1 / -1;
    grid-row: 2;
    height: auto;
    padding: 60px 60px 60px 60px;
  }

  /* Fila 3 */
  .club-banner-section {
    grid-column: 1 / -1;
    grid-row: 3;
    height: auto;
    padding: 0px 60px 60px 60px;
  }

  .banner-dr-osvaldo-desktop {
    max-width: 1400px;
    width: 100%;
    height: auto;
  }

  /* Carrusel estático en desktop */
  .beneficios-carousel__track {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 100%;
    width: 100%;
    overflow: visible;
  }

  .beneficio-card {
    position: relative;
    opacity: 1;
    transform: none;
    height: 333px;
  }

  .carousel-indicators {
    display: none;
  }
}

/* ===== Menú móvil superpuesto debajo del header ===== */
@media (max-width: 991.98px) {
  :root {
    --altura-header: 64px;
  }

  body.no-scroll {
    overflow: hidden;
    touch-action: none;
  }

  .navbar-toggler {
    position: relative;
    z-index: 1042;
  }

  .navbar-collapse {
    position: fixed;
    top: var(--altura-header);
    left: 0;
    right: 0;
    background: #f4b41a;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.28s ease;
    z-index: 1041;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .navbar-collapse.show {
    transform: translateY(0);
  }

  #fondoMenu {
    display: none;
  }
  #fondoMenu.activo {
    display: block;
    position: fixed;
    top: var(--altura-header);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
    backdrop-filter: blur(2px);
  }
}
