/* body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden; 
  overflow-y: auto;   
  
} */

.complement-container {
  margin-top: 2%;
  margin-bottom: 2%;
  margin-left: 2%; /* centra horizontal */
  margin-right: 2%; /* centra horizontal */
  border-radius: 6%;
  background-color: #fff;
  /* width: 81%; */
  position: relative;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.section-titulo {
  font-family: "Averia Serif Libre", serif;
  font-size: 160%; /* ajustable */
  color: #111827;
  display: inline-block; /* para que el ancho se ajuste al contenido */
  margin-bottom: 3%;
}

.section-titulo .fire-svg {
  width: 20px; /* achica el svg */
  height: auto;
  vertical-align: middle; /* lo centra con el texto */
  margin-left: 5px; /* espacio entre texto e ícono */
}

.contenido {
  padding: 2% 2% 0% 2%; /* arriba, derecha, abajo, izquierda */
  margin-top: 0%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  background-color: #fff; /* opcional para resaltar */
}

.contenido > * {
  width: 100%;
  margin-bottom: 2%; /* ajusto un poco el espacio entre hijos */
}

.paquetes {
  margin-left: auto;
  margin-right: auto;
  margin-top: 2%; /* opcional, para darle respiro arriba */
  margin-bottom: 2%; /* opcional, para darle respiro abajo */
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0%;
  z-index: 1;
  display: block;
  width: 100%; /* ocupa todo el ancho disponible */
  height: auto; /* se adapta al contenido */
}

/* TARJETAS DE PAQUETES */

.swiper {
  position: relative;
  width: 100%; 
  height: auto; 
  z-index: 1;
  transition-property: transform;
  transition-timing-function: var(
    --swiper-wrapper-transition-timing-function,
    initial
  );
  box-sizing: border-box;
  overflow: hidden; 
  text-align: center; 
}

.swiper-slide {
  display: inline-block;
  vertical-align: top; 
  width: 25%;
  height: auto;
  position: relative;
  transition-property: transform;
  box-sizing: border-box; 
  margin: 0; 
  padding: 1%; 
}

.swiper-wrapper {
  white-space: nowrap;
  overflow-x: none; 
  text-align: center; 
  
}

.close-button-complemento {
  position: static;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: 400;
  color: #8a2be2;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-button-complemento:hover {
  color: #000;
}

.card {
  position: relative;
  height: 400px;
  width: 95%;
  border-radius: 3%;
  overflow: hidden;
  box-shadow: 0 2% 5% -1% rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  text-align: left;
  padding: 5%;
  color: #fff; /* para que texto contraste sobre la foto */
}
.card-content {
  position: absolute;
  bottom: 5%;
  left: 10%;
  right: 5%;
}

/* detalle */
.card-detalle {
  display: inline-block;
  padding: 4% 8%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  font-size: 72%;
  letter-spacing: 1px;
  text-transform: uppercase;
  background-color: #8b5cf6;
  color: #fff;
  margin-bottom: 5%;
}

/* titulo */
.card-titulo {
  font-size: 140%;
  font-weight: 700;
  line-height: 120%;
  color: #fff;
  white-space: normal;
}

/* btn */
.btn-card {
  background-color: #7000fe;
  color: #fff;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
  height: auto;
  padding: 15px 25px;
  border: none;
  cursor: pointer;
  margin-top: 3%;
  display: inline-block;
  text-align: center;
}

/* contenido interno del btn */
.btn-content {
  display: inline-block;
  text-align: center;
}

.btn-content img {
  width: 15%;
  height: auto;
  vertical-align: middle;
  margin-right: 5%;
}

.btn-content p {
  display: inline-block;
  font-size: 100%;
  margin: 0;
  vertical-align: middle;
  font-weight: bold;
}

.card-slider {
  position: relative;
  overflow: hidden;
  border-radius: 3%;
  height: 300px; /* mantiene tam de la card */
}

.card-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* turnos para cada imagen */
.card-images img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeSlide 16s infinite;
}

/* Overlay */
.card-images::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

/* Para que el contenido quede por encima */
.card-content {
  position: absolute;
  bottom: 5%;
  left: 5%;
  right: 5%;
  z-index: 2;
}

/* cada imagen entra en turno con su delay */
.card-images img:nth-child(1) {
  animation-delay: 0s;
}
.card-images img:nth-child(2) {
  animation-delay: 4s;
}
.card-images img:nth-child(3) {
  animation-delay: 8s;
}
.card-images img:nth-child(4) {
  animation-delay: 12s;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  } /* empieza a aparecer */
  25% {
    opacity: 1;
  } /* se queda visible */
  30% {
    opacity: 0;
  } /* se difumina */
  100% {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-modal-comple .spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #eee;
  border-top-color: #7000fe;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 8px;
}

.card-content {
  position: absolute;
  bottom: 5%;
  left: 5%;
  right: 5%;
  z-index: 2;
}


/* Indicadores */
.indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: inline-block;
}

/* Animacion  */
@keyframes slide {
  0% {
    transform: translateX(0%);
  }
  14% {
    transform: translateX(0%);
  }

  15% {
    transform: translateX(-100%);
  }
  28% {
    transform: translateX(-100%);
  }

  29% {
    transform: translateX(-200%);
  }
  42% {
    transform: translateX(-200%);
  }

  43% {
    transform: translateX(-300%);
  }
  56% {
    transform: translateX(-300%);
  }

  57% {
    transform: translateX(-400%);
  }
  70% {
    transform: translateX(-400%);
  }

  71% {
    transform: translateX(-500%);
  }
  84% {
    transform: translateX(-500%);
  }

  85% {
    transform: translateX(-600%);
  }
  100% {
    transform: translateX(-600%);
  }
}

/*COMPLEMENTOS*/
.title-complement {
  width: 100%;
  height: auto; /* que se adapte al contenido */
  box-sizing: border-box;
  overflow: hidden;
  line-height: 1; /* ayuda al centrado vertical */
}

.title-section h2 {
  font-family: Recoleta, serif;
  font-size: 160%;
  color: #111827;
  display: inline-block;
}

/*BOTONES*/
.btn-complementos {
  background-color: #ffffff;
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 1% 3%;
  font-size: 90%;
  cursor: pointer;
  display: inline-block;
  text-align: left;
  margin-left: 0;
  box-sizing: border-box;
  min-width: 8%;
  margin-right: 1%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Contenedor del icono + texto */
.btn-complementos-container {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
}

/* icono alineado */
.btn-complementos img {
  width: 14%;
  height: auto;
  vertical-align: middle; /* asegura que el icono quede centrado */
  margin-right: 5%;
}

/* Texto alineado */
.btn-complementos-container span,
.btn-complementos-container p {
  display: inline-block;
  vertical-align: middle;
  font-size: 90%;
  font-weight: 500;
  margin: 0;
}

.btn-complementos:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Btn Lista de Deseos */
.btn-lista {
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 1% 3%;
  font-size: 90%;
  cursor: pointer;
  display: inline-block;
  text-align: left;
  margin-left: 0;
  box-sizing: border-box;
  min-width: 8%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Efecto hover */
.btn-lista:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contenedor icono + texto */
.btn-lista span {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
}

/* Icono corazon */
.btn-lista img {
  width: 18px;
  height: auto;
  vertical-align: middle;
  margin-right: 6px;
}

.btn-confirmacion {
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 1% 3%;
  font-size: 90%;
  cursor: pointer;
  display: inline-block;
  text-align: left;
  margin-left: 0;
  box-sizing: border-box;
  min-width: 8%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin-left: 1%;
}

/* Efecto hover */
.btn-confirmacion:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contenedor icono + texto */
.btn-confirmacion span {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
}

/* Icono corazon */
.btn-confirmacion img {
  width: 20px;
  height: auto;
  vertical-align: middle;
  margin-right: 6px;
}

/*notificaciones complementos*/
.notif-complementos {
  width: 97%;
  border: 0.2px solid #7000fe;
  border-radius: 1%;
  background-color: #ebe4fe;
  display: block;
  padding: 2%;
  text-align: left;
  box-sizing: border-box;
  border-radius: 12px;
}

/* icono */
.notif-complementos img {
  display: inline-block;
  width: 2%;
  max-width: 20px;
  vertical-align: middle;
  margin-right: 1%;
}

/* Texto */
.notif-complementos p {
  display: inline-block;
  width: 90%; /* ocupa el resto del espacio */
  vertical-align: middle;
  color: #7000fe;
  font-size: 90%; /* relativo para que escale */
  margin: 0;
}
/*complementos con extras*/

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  margin: 4px 0;
}

.discount {
  font-size: 0.9rem;
  margin: 4px 0;
  border-radius: 8px;
  padding: 4px 8px;
  display: inline-block;
}

.discount.green {
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 3px solid #10b981;
  margin-top: 4px;
  box-shadow: 0 2px 4px #10b9811a;
}

.discount.purple {
  background: linear-gradient(135deg, #7000fe, #1f003f);
  color: #fff;
  border-left: 3px solid #1f003f;
}
.per-person {
  font-size: 0.85rem;
  color: #666;
  margin: 4px 0;
}

.installments {
  font-size: 16px;
  color: #000000;
  margin: 4px 0;
}

.installments strong {
  color: #000;
}

.image-container {
  position: relative;
}

.more-info {
  font-size: 1.5rem;
  color: #7000fe;
  text-decoration: none;
  margin-left: 4%;
}

/* FILTROS */

/* contenedor general */
.filter-container {
  width: 100%;
  font-size: 0; /* elimina espacios en blanco entre inline-block */
  margin: 20px 0;
  text-align: left;
  display: flex;
}

.filter-container::after {
  content: "";
  display: inline-block;
  /* width: 100%; */
}

/* hijos en fila */
.filter-container > * {
  display: inline-block;
  vertical-align: middle;
  width: 32%; /* 3 elementos = 32% cada uno + 2% de margen */
  margin-right: 2%;
  font-size: initial;
}

.filter-container > *:last-child {
  margin-right: 0;
}

/* Filtro Categoria */
.select-categoria,
.filtro-precio {
  position: relative;
}

.select-wrapper {
  display: inline-block;
  width: 100%;
  padding: 6px 10px;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.select-wrapper:hover {
  border-color: #9ca3af;
}

.select-wrapper .default {
  color: #1e293b;
  font-size: 12px;
  font-weight: 400;
  display: inline-block;
  vertical-align: middle;
  width: 85%;
}

.select-wrapper .arrow-svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 9%;
  width: 14px;
  height: auto;
  filter: grayscale(100%) brightness(40%);
  transition: transform 0.3s ease;
}

.arrow-svg.rotada {
  transform: rotate(180deg);
}

/* texto dentro */
.default {
  margin: 0;
  color: #1e293b;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  width: 80%;
  vertical-align: middle;
}

/* Dropdown cat */
.dropdown-categorias {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px #0000001a;
  z-index: 50;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.2s ease;
}

.dropdown-categorias.activo {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* buscador dentro del dropdown */
.buscar-categoria {
  display: block;
  width: 100%;
  padding: 3% 0;
  border-bottom: 0.5% solid #e2e8f0;
  line-height: 1.5;
  white-space: nowrap;
}

.buscar-categoria > * {
  display: inline-block;
  vertical-align: middle;
  margin-right: 2%;
  margin-left: 4%;
}

.buscar-categoria > *:last-child {
  margin-right: 0;
}

.buscar-input {
  display: inline-block;
  width: 85%;
  border: none;
  outline: none;
  font-size: 12px;
  color: #1e293b;
  background: transparent;
  vertical-align: middle;
}

.items-list {
  max-height: 250px;
  overflow-y: auto;
}

.item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 3% 5%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.item > * {
  display: inline-block;
  vertical-align: middle;
  margin-right: 3%;
}

.item > *:last-child {
  margin-right: 0;
}

.item-checkbox {
  margin-right: 10px;
}

.item-name {
  font-size: 12px;
  color: #1e293b;
}

/* FILTRO PRECIO */

.dropdown-precio {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
  z-index: 50;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.2s ease;
  padding: 16px;
}

.dropdown-precio.activo {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Header */
.header-precio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.titulo-rango {
  font-size: 14px;
  font-weight: 600;
  color: #7d00ff;
}

.valor-rango {
  background: #f5f3ff;
  color: #7d00ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Campos */
.campos-precio {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.campo input {
  width: 110px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.guion {
  margin: 0 4px;
  font-size: 14px;
  color: #6b7280;
  margin-top: 5%;
}

/* Botones */
.btn-cerrar,
.btn-aplicar {
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-cerrar {
  background: #f3f4f6;
  color: #6b7280;
}

.btn-aplicar {
  background: #7d00ff;
  color: #fff;
}

/* BUSCADOR */
.search {
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 10px;
  box-sizing: border-box;
}

.search img.glass-svg {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  margin-right: 8px;
  opacity: 0.7;
}

.search-input {
  display: inline-block;
  vertical-align: middle;
  width: 80%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1e293b;
}

.search-input::placeholder {
  color: #94a3b8;
}

/* Contenedor de la parte derecha de la card */
.title-container {
  display: flex;
  flex-direction: column;
  gap: 1px;
  height: 60%;
  padding: 12px;
  box-sizing: border-box;
  justify-content: space-between;
}

/* Contenedor donde va precio o "Consultar Adicional" */
.price-wrap {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
}

/* Botón se pega abajo cuando hay espacio libre */
.text-btn-action {
  margin-top: auto;
  display: flex;
  gap: 2px;
}

/*CARDS COMPLEMENTOS*/

/* CARD INDIVIDUAL */
.card-container {
  position: relative;
  font-weight: 500;
  width: 100%;
  box-shadow: 0 0 20px #0000005c;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* IMAGEN / CARRUSEL */
.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 220px;
}

.carousel .slides-complemento {
  display: flex;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 25%; /* 4 imágenes visibles por card */
  height: 220px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

/* INFO CARD */
.title-container {
  padding: 10px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-card {
  font-size: 1rem;
  margin: 0;
}

.per-person,
.installments {
  font-size: 0.9rem;
}

/* Base: móvil — 1 card por fila (fallback) */
.lista-complementos {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 1 por fila en móvil */
  gap: 1rem; /* puedes ajustar para igualar tu gap */
  margin: 1% 0;
  padding: 0 2%;
  /* align-items: start; */
  box-sizing: border-box;
}

/* titulos */
.title-container {
  padding: 4% 6%;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0px;
}

.title-card {
  font-size: larger;
  font-weight: 600;
  color: #111827;
}

.subtitle {
  font-size: 0.9vw;
  color: #6b7280;
  margin-top: 4px;
}

.info {
  display: inline-block;
  width: 88%;
  padding: 6% 6% 6%;
  box-sizing: border-box;
}

.info > * {
  display: inline-block; /* que se alineen en la misma linea */
  vertical-align: middle; /* alineacion vertical pareja */
  width: 47%;
  margin-right: 6%;
}

.info > *:last-child {
  margin-right: 0;
}

.consult {
  background-color: #9d52ff;
  width: 100%;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  text-align: center;
  padding: 20px 10px;
  cursor: pointer;
  border: none;
}

.text-btn-action {
  text-align: center;
  white-space: nowrap;
}

.more-info {
  color: #7000fe;
  border: 1px solid #7000fe;
  width: 20%;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  padding: 8px 0;
  text-decoration: none;
  margin-left: 2%;
}

.carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.slides-complemento {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
}

.carousel-nav.prev {
  left: 10px;
}
.carousel-nav.next {
  right: 10px;
}

/*MODAL COMPLEMENTOS*/

/* ESTRUCTURA GENERAL  */
.complement-resumen {
  position: relative;
  width: 100%;
  margin-bottom: 5%;
  overflow: hidden; /*  evita que ambos compartan scroll */
  display: block;
  clear: both;
}

.complement-resumen::after {
  content: "";
  display: table;
  clear: both;
}

/*  COLUMNA IZQUIERDA  */
.left-container {
  position: relative;
  float: left;
  width: 45%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
}

/* contenedor del carrusel */
.left-container .carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* tira de IMG (ocupa todo el carrusel) */
.left-container .carousel-images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.left-container .carousel-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeSlide 16s infinite;
  border-radius: 10px;
}

/* overlay */
.left-container .carousel-images::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* tiempos por imagen */
.left-container .carousel-images img:nth-child(1) {
  animation-delay: 0s;
}
.left-container .carousel-images img:nth-child(2) {
  animation-delay: 4s;
}
.left-container .carousel-images img:nth-child(3) {
  animation-delay: 8s;
}
.left-container .carousel-images img:nth-child(4) {
  animation-delay: 12s;
}

/* animación */
@keyframes fadeSlide {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.content-images {
  width: 100%;
  height: auto;
}

.content-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/*  COLUMNA DERECHA  */
.right-container {
  float: right;
  width: 50%;
  max-height: 300px; /*  altura fija visible */
  overflow-y: auto; /*  permite scrollear solo el texto */
  padding-right: 2%;
  box-sizing: border-box;
}

.right-container h2 {
  font-family: Recoleta, serif;
  font-size: 160%;
  color: #111827;
  margin-bottom: 3%;
  margin-right: 70%;
}

.right-container p {
  color: #484646;
  line-height: 1.3;
  text-align: justify; /* Alinea el texto como párrafo */
  text-indent: 2%;
}

/*  SEPARADOR  */
.separator {
  height: 1px;
  background-color: #e0e0e0;
  margin: 20px 0;
}

/*  SECCION DE DETALLES */
.modal-detalles {
  display: block;
  width: 100%;
}

.modal-detalles > * {
  margin-bottom: 3%;
}

.modal-detalles > *:last-child {
  margin-bottom: 0;
}

/*  CONTENEDOR DE PAGO */
.payment-container {
  width: 100%;
  margin: 0 auto;
}

.payment-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  margin-right: 80%;
  font-weight: 10%;
}

/*  TARJETA DE GIFT CARD */
.gift-card {
  background-color: #f8f0ff;
  padding: 1%;
  display: block;
  margin-bottom: 3%;
  border: 0.2px solid #f0e0ff;
  border-radius: 10px;
  text-align: left;
}

.gift-card > * {
  display: inline-block;
  vertical-align: middle;
  width: 48%;
  margin: 0;
}

/* ---- info y monto ---- */
.gift-info {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

.gift-info > * {
  display: inline-block;
  vertical-align: middle;
  margin-right: 1.5%;
  margin: 0;
  font-size: 90%;
}

.gift-info > *:last-child {
  margin-right: 0;
}

/*fuerza el color violeta*/
.gift-icon img {
  filter: invert(22%) sepia(98%) saturate(3440%) hue-rotate(260deg)
    brightness(95%) contrast(97%);
}

.gift-amount {
  font-weight: 500;
  margin-left: 82%;
  vertical-align: middle;
  margin-top: -2.5%;
}

.amount {
  color: #8a2be2;
  font-weight: 700;
  margin: 0;
}
/* ---- Estado sin saldo ---- */
.gift-card.sin-saldo {
  background-color: #f8f0ff;
  border: 0.5px solid #f0e0ff;
  border-radius: 10px;
  padding: 1.2%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.gift-card.sin-saldo .gift-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 15px;
  font-weight: 400;
}

.gift-card.sin-saldo .gift-icon img {
  width: 18px;
  height: 18px;
  filter: invert(22%) sepia(98%) saturate(3440%) hue-rotate(260deg)
    brightness(95%) contrast(97%);
}

/*  OPCIONES DE PAGO */
.payment-options {
  display: block;
  width: 100%;
  text-align: center; /* centra las tarjetas en la fila */
  margin-bottom: 3%;
  font-size: 0; /* elimina el espacio entre inline-blocks */
}

.payment-options > * {
  display: inline-block;
  vertical-align: top;
  width: 31.5%;
  margin-right: 2%;
  margin-bottom: 3%;
  box-sizing: border-box;
  font-size: 16px;
}

.payment-options > *:nth-child(3n) {
  margin-right: 0;
}

/* TARJETAS GENERALES */
.option-card,
.option-card-recommended,
.option-card-gift {
  background-color: #fff;
  border: 0.2px solid #e0e0e0;
  border-radius: 15px;
  padding: 1%;
  position: relative;
  height: auto;
  display: inline-block;
  vertical-align: top;
  transition: 0.2s;
  text-align: left;
}

/* Contenido interno */
.option-card > *,
.option-card-recommended > *,
.option-card-gift > * {
  display: block;
  margin-bottom: 1.5%;
}

.option-card > *:last-child,
.option-card-recommended > *:last-child,
.option-card-gift > *:last-child {
  margin-bottom: 0;
}

/* ---- iconos dentro de tarjetas ---- */
.option-icon,
.option-icon-card,
.option-icon-gift {
  display: block;
  width: 100%;
  border-radius: 2%;
  margin-top: 1%;
  color: #333;
  text-align: left;
}

.option-icon > *,
.option-icon-card > *,
.option-icon-gift > * {
  display: inline-block;
  vertical-align: middle;
  margin-right: 2%;
}

.option-icon > *:last-child,
.option-icon-card > *:last-child,
.option-icon-gift > *:last-child {
  margin-right: 0;
}

/* ---- ÍCONOS ---- */
.option-icon img,
.option-icon-card img,
.option-icon-gift img {
  width: 25px;
  filter: invert(17%) sepia(93%) saturate(5100%) hue-rotate(265deg)
    brightness(70%) contrast(110%);
}

/* Tipografia en tarjetas */
.option-card h3,
.option-icon-card h3,
.option-icon-gift h3 {
  font-size: 18px;
  font-weight: 500;
}

.option-icon p {
  font-size: 18px;
  color: #000;
  font-weight: 500;
  margin: 0;
}

.option-card > p {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-top: 4px;
}

.option-card-recommended > p {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-top: 4px;
}

/*TARJETA RECOMENDADA */
.option-card-recommended {
  border: 2px solid #66c866;
  background-color: #f8f0ff;
}

.recommended {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translate(-50%);
  background-color: #66c866;
  color: #fff;
  padding: 1% 3%;
  border-radius: 50px;
  font-size: 1vw;
  font-size: 80%;
}

/*TARJETA GIFT CARD */
/*gris sin salfo*/
.option-card-gift.gris {
  color: #888; /* texto gris */
  border: 1px solid #ccc; /* borde gris claro */
  background-color: #f5f5f5; /* leve fondo gris (opcional) */
  transition: all 0.3s ease;
}

/* Icono en estado gris */
.option-card-gift.gris .option-icon-gift img {
  filter: invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(85%)
    contrast(90%);
  transition: filter 0.3s ease;
}

/*con saldo*/
.option-card-gift.color {
  background-color: #f8f0ff;
  border: 1px solid #66c866;
  color: #333;
}

.text-gift {
  font-size: 12px;
  height: 4%;
  margin-top: 2%;
}

/*carrousel img*/
.carousel {
  position: relative;
  width: 100%;
  overflow: 30%;
  border-radius: 10px;
}
/* Contenedor de img */
.carousel-images {
  white-space: nowrap;
  transition: transform 0.5s ease;
}
/* Cada imagen */
.carousel-images img {
  display: inline-block;
  width: 100%;
  height: 40%;
  border-radius: 10px;
}
/* Botones del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Flechas izquierda y derecha */
.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/*   PRECIO GIFT CARD  */

.amount-section {
  background-color: #f8f0ff;
  border-radius: 10px;
  margin-bottom: 2%;
  animation: slideInLeft 0.5s;
  margin-top: 20px;
  font-family: "Inter", sans-serif;
  width: 80%;
  margin-left: 8%;
}

/* Contenedor de la fila */
.amount-question {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
}

/* Texto a la izquierda */
.amount-question span {
  width: calc(100% - 160px); /* deja lugar para el input */
  line-height: 38px; /* alinea vertical con el input */
}

/* Input a la derecha */
.amount-question input {
  float: right;
  width: 140px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 0.5%; /* margen arriba */
  margin-right: 2%; /* corrido 5% desde el borde derecho */
}

.amount-question input:focus {
  border-color: #7000fe;
  box-shadow: 0 0 0 2px rgba(112, 0, 254, 0.15);
}

/* Error por falta de saldo  */
.amount-question input.input-error {
  border-color: red;
  box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
}

/* Mensaje de error centrado abajo */
.error-msg {
  margin-top: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: red;
  text-align: center;
}

/*detalle de adicionales*/
.price-section {
  width: 100%;
  margin-top: 2%;
  font-family: "Inter", sans-serif;
}

.adicional-item {
  width: 100%;
  border-bottom: 1px solid #f1f1f1;
  padding: 0.8% 0;
  overflow: hidden;
}

.adicional {
  float: left;
  width: 70%;
  color: #666;
  font-size: 100%;
  font-weight: 400;
  text-align: left;
}

.amount-adicional {
  float: right;
  width: 30%;
  color: #555;
  font-weight: 600;
  text-align: right;
  font-size: 100%;
}

.totales-section {
  width: 100%;
  margin-top: 3%;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.totales-row {
  width: 100%;
  overflow: hidden;
  margin: 0.5% 0;
}

.label-totales {
  float: left;
  width: 70%;
  color: #666;
  font-size: 100%;
  font-weight: 400;
  text-align: left;
  margin-top: 4px;
  margin-bottom: 4px;
}

.valor-totales {
  float: right;
  width: 30%;
  text-align: right;
  color: #333;
  font-weight: 600;
}

/* Colores de descuentos */
.verde {
  color: #00a65a;
  font-weight: 700;
}

.violeta {
  color: #7000fe;
  font-weight: 700;
}

/* Separador */
.divider-totales {
  width: 100%;
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}

.total-final .valor-totales {
  font-size: 16px;
}

/*agregar codigo*/

.add-code {
  font-size: 14px;
  color: #7000fe;
  cursor: pointer;
  margin-top: 3%;
  display: inline-block;
  transition: color 0.3s;
  user-select: none;
  margin-right: 79%;
}

.add-code:hover {
  color: #8a2be2;
}

/*  Contenedor oculto inicialmente */
.insert-code {
  overflow: hidden; /* evita saltos visuales */
  max-height: 0; /* colapsa verticalmente */
  opacity: 0; /* invisible */
  transform: translateX(-40px); /* desplazado a la izquierda */
  transition: all 0.5s ease;
}

/* Estado visible */
.insert-code.active {
  max-height: 100px;
  opacity: 1;
  transform: translateX(0);
  margin-right: 40%;
}

/* Input y btn  */
.insert-code > * {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.input-code {
  border: 1px solid #dddddd;
  border-radius: 4px;
  padding: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.btn-code {
  background-color: #7000fe;
  color: #fff;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-code:hover {
  background-color: #8a2be2;
}

/* Mensaje de error / exito */
.error-code {
  font-size: 14px;
  margin-top: 6px;
  display: none;
}

.error-code.error {
  color: #e60000;
  margin-right: 60%;
}

.error-code.success {
  color: #0bbd2c;
  margin-right: 50%;
}

/* Input en error */
.input-code.error {
  border: 1px solid #e60000;
  color: #e60000;
}

/* Loader dentro del btn */
.btn-code.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
  color: transparent !important; /* oculta el texto "Aplicar" */
}

.btn-code.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* plan de cuotas */
.payment-plan h3 {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
  margin-top: 3%;
  margin-right: 86%;
}

.select-cuotas {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

/* select */
.plan-select {
  width: 100%;
  padding: 1.5% 7% 1.5% 2%; /* espacio derecho para la flecha */
  border: 0.2vw solid #e0e0e0;
  border-radius: 1vw;
  appearance: none;
  background-color: #fff;
  /* font-size: 1vw; */
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease;
  display: inline-block;
  box-sizing: border-box;
}

/* borde violeta al hover o foco */
.plan-select:hover,
.plan-select:focus {
  border-color: #7000fe;
}

/* icono del desplegable */
.arrow-svg {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 2%;
  height: auto;
  pointer-events: none;
  filter: invert(26%) sepia(97%) saturate(7377%) hue-rotate(259deg)
    brightness(94%) contrast(104%);
  transition: transform 0.3s ease;
}

/* rotacion suave cuando se enfoca */
.plan-select:focus + .arrow-svg {
  transform: translateY(-50%) rotate(180deg);
}

/*detalle de cuotas */
.payment-summary {
  background: #f9f5ff;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.summary-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 2%;
  box-sizing: border-box;
}

/* Elementos internos: texto a la izquierda, valor a la derecha */
.summary-item > * {
  display: inline-block;
  vertical-align: middle;
  width: 49%; /* ocupa casi la mitad cada uno */
  box-sizing: border-box;
}

/* alineacion visual */
.summary-item > :first-child {
  text-align: left;
}

.summary-item > :last-child {
  text-align: right;
}

.summary-label {
  color: #666;
  font-size: 16px;
}

.summary-value {
  font-weight: 600;
  color: #6700ea;
  font-size: 20px;
}

.totales-row:has(#descCuotas) {
  display: none;
}
.oculto {
  display: none !important;
}
.totales-cuotas {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.totales-cuotas.oculto {
  opacity: 0;
  transform: translateY(-5%);
  display: none !important;
}

.heart-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease;
}

/* Efecto al pasar el mouse */
.heart-icon:hover {
  transform: scale(1.15);
}

/* Cuando está marcado como favorito → cambia el ícono al rojo */
.heart-icon.favorited {
  content: url("../../images/heart2.svg"); /* usa tu corazón rojo */
}

.image-container {
  position: relative;
}

/* >= 600px -> 2 columnas */
@media (min-width: 600px) {
  .lista-complementos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* >= 900px -> 3 columnas (tu punto actual de tablet/desktop medio) */
@media (min-width: 900px) {
  .lista-complementos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* >= 1200px -> 4 columnas (máximo) */
@media (min-width: 1200px) {
  .lista-complementos {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* RESPONSIVO */
@media screen and (max-width: 900px) {
  .card-container {
    min-width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    scroll-snap-align: start;
    box-sizing: border-box;
    padding-bottom: 8px; /* menor espacio inferior */
    border-radius: 12px;
  }

  .image-container {
    /* reducir para quitar espacio */
    max-height: 360px;
    overflow: hidden;
  }

  /* Forzar que la img rellene la caja exactamente */
  .image-container,
  .carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border-radius: 12px 12px 0 0; /* mantener radios superiores si querés */
  }

  /* Título/descripción: menos padding arriba para acercarlo a la imagen */
  .title-container {
    padding-top: 8px !important; /* antes 4% — se reduce bastante */
    padding-bottom: 12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Resetar márgenes que suelen crear huecos */
  .title-container > * {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
  }
  .title-card {
    margin: 4px 0 2px 0;
  }
  .subtitle {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
  }

  /* Opcional: si hay un gap entre slides y título por .slides-complemento */
  .slides-complemento,
  .carousel-slides {
    height: 100% !important;
    min-height: 0 !important;
  }

  .title-section h2 {
    font-family: Recoleta, serif;
    font-size: 160%;
    color: #111827;
    display: inline-block;
    margin: 2% 2% 3% 2%;
  }
}

/* Alternativa para pantallas muy pequeñas (< 420px) */
@media screen and (max-width: 420px) {
  .consult {
    width: 100%;
    font-size: 15px;
    padding: 12px;
  }

  /* Botón se pega abajo cuando hay espacio libre */
  .text-btn-action {
    margin-top: auto;
    display: flex;
    gap: 2px;
  }

  .title-section h2 {
    font-family: Recoleta, serif;
    font-size: 160%;
    color: #111827;
    display: inline-block;
    margin: 2% 2% 3% 2%;
  }
}

/* Responsivo */
@media screen and (max-width: 1064px) {
  .complement-container {
    border-radius: 6%;
    background-color: #fff;
    width: 98%;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .section-titulo {
    font-family: "Averia Serif Libre", serif;
    font-size: 20px;
    color: #111827;
    display: inline-block;
  }


  .card {
    width: 100%;
    height: 80%;
    border-radius: 4%;
    overflow: hidden;
    background-color: #fff;
  }

  .card-slider {
    height: 280px;
    position: relative;
  }

  .card-content {
    position: absolute;
    bottom: 6%;
    left: 6%;
    right: 6%;
    color: #fff;
    z-index: 2;
  }

  .card-detalle {
    font-size: 70%;
    padding: 3% 6%;
    border-radius: 10px;
    background-color: #8b5cf6;
    display: inline-block;
    color: #fff;
    margin-bottom: 4%;
  }

  .card-titulo {
    font-size: 120%;
    font-weight: 700;
    color: #fff;
    line-height: 120%;
  }

  .btn-card {
    display: inline-block;
    background-color: #7000fe;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    padding: 15px 25px;
    font-size: 100%;
    margin-top: 5%;
  }

  .btn-content img {
    width: 15%;
    height: auto;
    margin-right: 5%;
    vertical-align: middle;
  }

  .btn-content p {
    display: inline-block;
    font-size: 100%;
    margin: 0;
    vertical-align: middle;
    font-weight: bold;
  }

  .section-titulo .fire-svg {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-left: 5px;
    margin-bottom: 2%;
  }

  .banners-carousel {
    position: relative;
    width: 97%;
    height: 14%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 5%;
    margin-left: 2%;
  }

  .btn-complementos,
  .btn-lista,
  .btn-confirmacion {
    display: block;
    width: 90%;
    margin: 4% 0% 4% 4%;
    text-align: center;
  }

  .notif-complementos img {
    display: inline-block;
    width: 8%;
    max-width: 20px;
    vertical-align: middle;
    margin-right: 1%;
  }

  .notif-complementos {
    width: 97%;
    border: 0.2px solid #7000fe;
    border-radius: 1%;
    background-color: #ebe4fe;
    display: block;
    padding: 2%;
    text-align: left;
    box-sizing: border-box;
    border-radius: 12px;
    margin-left: 2%;
  }

  .select-categoria,
  .filtro-precio,
  .search {
    display: block;
    width: 90%;
    margin: 3% auto;
  }

  .select-wrapper,
  .search {
    text-align: center;
  }

  .search-input {
    width: 80%;
    text-align: center;
  }
  .campos-precio {
    display: flex;
    align-items: center;
  }
  .btn-cerrar,
  .btn-aplicar {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5%;
    margin-left: 1%;
  }

  .filter-container > *:last-child {
    margin-left: 5%;
  }

  .title-card {
    font-size: 23px;
    font-weight: 600;
    color: #111827;
  }

  

}

@media screen and (min-width: 1350px) {
.container-layout {
    width: auto !important;
  }
}

@media screen and (max-width: 1350px) {
  .container-layout {
    margin-left: 0% !important;
    width: auto;
  }
    .complement-container {
    border-radius: 6%;
    background-color: #fff;
    width: 98%;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

}
.modal-slide {
  display: none;
}
.modal-slide.active {
  display: block;
}

.modal-carousel {
  height: 320px;
  overflow: hidden;
  position: relative;
}
.modal-slides {
  height: 100%;
  width: 100%;
  position: relative;
}
.modal-slide {
  display: none;
  height: 100%;
  width: 100%;
}
.modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-slide.active {
  display: block;
}
.carousel-nav {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
}
/* Grid: hidden en mobile por defecto */
.modal-grid {
  display: none;
  gap: 8px;
  padding: 8px;
  height: 100%;
  box-sizing: border-box;
  align-items: stretch;
}
.modal-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Desktop: mostrar grid, ocultar slides y nav */
@media (min-width: 900px) {
  .modal-slides {
    display: none !important;
  }
  .carousel-nav {
    display: none !important;
  }
  .modal-grid {
    display: grid;
  }
  /* hasta 6 columnas (si hay menos, repeat ajusta con auto-fit) */
  .modal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .modal-grid-item {
    height: 17rem;
    overflow: hidden;
    border-radius: 8px;
  }
  .modal-detalle-centrado{
        width: 100%;
        display: block;
        margin: 15px auto;
        max-width: 700px;
  }

  .combo-section{
     width: 100%;
        display: block;
        margin: 15px auto;
        max-width: 700px;
  }
  .swiper-wrapper { 
  height: auto !important;
  
}
.categoria-filtros{
    justify-content: center;
}


}

/* Mobile: mostrar slides, ocultar grid */
@media (max-width: 899px) {
  .modal-grid {
    display: none !important;
  }
  .modal-slides {
    display: block;
  }
  .modal-slide img{
    height: 50%;
  }
 .input-giftcard{
  flex-direction: column;
  align-items: center !important;
 }
.swiper{
  height: 80% !important;
}
.btn-complementos{
  padding: 4% 3%;
}
.btn-lista{
  padding: 4% 3%;
}
.btn-confirmacion{
  padding: 4% 3%;
}
.buscador-nombre-fil {
  display: flex;
  flex-direction: column;
}

.share-btn {
    left: 4%;
}


}
.modal-grid {
  display: grid;
  gap: 10px;
}

/* MOBILE: 1 imagen por fila */
@media (max-width: 600px) {
  .modal-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* TABLET: 2 por fila */
@media (min-width: 601px) and (max-width: 1024px) {
  .modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PC: 3 por fila (3 arriba y 3 abajo) */
@media (min-width: 1025px) {
  .modal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modal-grid-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.lightbox-slide img { max-width:100%; max-height:100%; object-fit:contain; }


.agregar-carrito:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    opacity: 1; 
}


.cat-btn:hover { transform: translateY(-1px); }
.cat-btn.active {
       /* background: #eeeeee69; */
    color: #fff;
    border-color: #9333ea;
    border-radius: 15%;
    font-weight: bold;
}



/* contenedor */
.cat-buttons {
  display:flex;
  align-items:center;
  gap:6px;
  justify-content: center;
  padding:8px 0;
}

/* botón: contenedor flex vertical */
.cat-btn {
  display:flex;
  flex-direction:column;
  align-items:center;
  width:86px;         /* ancho del botón */
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  text-align:center;
  user-select: none;
  padding:0;
}

/* circulo con imagen/icono */
.cat-thumb {
  width:72px;
  height:72px;
  border-radius:50%;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 6px 18px rgba(33,10,60,0.12), 0 2px 6px rgba(33,10,60,0.08);
  background: linear-gradient(180deg,#7b2bef,#6b22f0); /* degradado base */
  transition: transform .12s, box-shadow .12s, opacity .12s;
}

/* imagen dentro del circulo: ajusta y centra */
.cat-thumb img {
  display:block;
  max-width:64%;
  max-height:64%;
  object-fit:contain;
  filter: brightness(1) saturate(1);
}

/* etiqueta (nombre) */
.cat-label {
  margin-top:8px;
  font-size:12px;
  line-height:1.1;
  max-width:86px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#6f24f0;
}

/* estado activo */
.cat-btn.active .cat-thumb {
     transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 5px #9333eaad;
    border: 2px solid rgba(255, 255, 255, 0.06);
}

/* cuando no hay imagen, se puede mostrar iniciales/ícono con color de fondo */
.cat-thumb.no-img {
  font-weight:700;
  color:rgba(255,255,255,0.95);
  font-size:18px;
}

/* focus accesible */
.cat-btn:focus .cat-thumb {
  outline: 3px solid rgba(107,34,240,0.14);
  outline-offset: 3px;
}

.cat-thumb .initials {
  font-weight:700;
  color: #fff;
  font-size:18px;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cat-thumb.no-img {
  background: linear-gradient(180deg,#7b2bef,#6b22f0);
}


/* contenedor principal del combo */
.combo-section {
  margin-top: 12px;
  padding: 12px;
  background: #fbf9ff;                  /* mismo tono que usás en totales */
  border-radius: 8px;
  border: 1px solid #f0e6ff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  font-size: 0.95rem;
  color: #333;
  line-height: 1.3;
}

/* etiqueta / título */
.combo-section > label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2c1b6f;                       /* tono morado coherente */
}

/* lista sin bullets */
.combo-section .combo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

/* cada item del combo (fila) */
.combo-section .combo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
  border-bottom: 1px solid #eee;
}

/* quitar borde al último ítem */
.combo-section .combo-item:last-child {
  border-bottom: none;
}

/* nombre del ítem */
.combo-section .combo-item .nombre {
  flex: 1 1 auto;
  color: #333;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* precio (alineado a la derecha) */
.combo-section .combo-item .precio {
  flex: 0 0 auto;
  margin-left: 12px;
  font-weight: 700;
  color: #7b2bff;                        /* mismo morado de botones */
  min-width: 90px;
  text-align: right;
}

/* si querés mostrar "porPersona" u otra etiqueta pequeña */
.combo-section .meta {
  display: inline-block;
  font-size: 0.85rem;
  color: #777;
  margin-left: 8px;
}

/* opción: limitar alto si la lista es muy larga */
.combo-section.scrollable {
  max-height: 220px;                    /* ajustar según necesidad */
  overflow: auto;
  padding-right: 6px;                   /* para que el scroll no chupe contenido */
}

/* estilos de scrollbar (opcional, no en todos los navegadores) */
.combo-section.scrollable::-webkit-scrollbar {
  width: 8px;
}
.combo-section.scrollable::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.08);
  border-radius: 8px;
}




/* Estilos para la sección de Invitados */
.invitados-section {
    margin-top: 16px;
    background: rgb(250, 246, 255);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgb(240, 230, 255);
}

.invitados-section label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
}

.invitados-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap; /* Para responsive */
}

.invitados-input {
    flex-basis: 120px; /* Ancho base que se expande en mobile */
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5d5ff;
    background: #fff;
    font-size: medium;
    box-sizing: border-box; /* Asegura que el padding no añada ancho extra */
}

.invitados-info {
    color: #666;
    font-size: 0.95rem;
    flex-grow: 1;
    min-width: 150px;
}

.invitados-info div {
    margin-bottom: 4px;
}

.invitados-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.btnAbrirModalCompartir {
    /* Estilos Base */
    background: none;
    border: 1px solid #7B4397;
    color: #7B4397;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s; /* Mejora la transición */
}

.btnAbrirModalCompartir:hover {
    /* Fondo más claro para indicar que es clickeable */
    background: #f0e6ff; 
    /* También puedes oscurecer el borde/texto si quieres más contraste */
    border-color: #643580; 
    color: #643580;
}

/* --- 1. CAPA PRINCIPAL DEL MODAL (OVERLAY) --- */
.modal-overlay-compartir {
    /* Propiedades de visualización y posicionamiento */
    display: none; /* Controlado por JS para mostrarlo como 'flex' */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Fondo semi-transparente */
    background: rgba(0, 0, 0, 0.5); 
    
    /* Centrado del contenido */
    align-items: center; 
    justify-content: center;
    
    /* Capa superior para evitar que se esconda */
    z-index: 10000; 
}

/* --- 2. CONTENEDOR INTERNO DEL MODAL --- */
.mini-modal-content {
    background: white; 
    padding: 25px; 
    border-radius: 12px; 
    width: 90%; 
    max-width: 400px; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* --- 3. ELEMENTOS DE TEXTO DENTRO DEL MODAL --- */
.mini-modal-header h3 {
    margin-top: 0;
    color: #333;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.mini-modal-close-btn {
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: #999;
}

.mini-modal-description {
    color: #666; 
    margin-bottom: 20px;
}

/* --- 4. CAMPO DE ENLACE (INPUT) Y BOTÓN COPIAR --- */
.link-input-container {
    margin-bottom: 15px;
}

.link-input {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 6px 6px 0 0; 
    box-sizing: border-box; 
    background: #f7f7f7;
    font-size: 0.9rem;
    cursor: default; /* Indicar que es solo lectura */
}

.btn-copiar-link {
    width: 100%; 
    padding: 12px; 
    background: #7B4397; /* Violeta principal */
    color: white; 
    border: none; 
    border-radius: 0 0 6px 6px; 
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-copiar-link:hover {
    background: #643580; /* Violeta más oscuro al pasar el ratón */
}

/* --- 5. BOTÓN WHATSAPP --- */
.whatsapp-btn-container {
    text-align: center; 
    margin: 20px 0;
}

.btn-whatsapp-share {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    padding: 10px 20px; 
    background: #25D366; /* Verde WhatsApp */
    color: white; 
    border-radius: 25px; 
    text-decoration: none; 
    font-weight: 700;
    transition: opacity 0.2s;
}

.btn-whatsapp-share:hover {
    opacity: 0.9;
}

.buscador-nombre-fil {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    /* margin-bottom: 18px; */
  }

  .filtro-nombre-fil {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #d6c4ff;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
  }

  .filtro-nombre-fil:focus {
    border-color: #7a3bff;
    box-shadow: 0 0 0 3px rgba(122,59,255,0.2);
  }

  /* Botones base */
  .btn-filtrar-nombre-fil,
  .btn-limpiar-nombre-fil {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Botón FILTRAR */
  .btn-filtrar-nombre-fil {
    background: #7a3bff;
    color: white;
    font-weight: 600;
  }

  .btn-filtrar-nombre-fil:hover {
    background: #642fcc;
    box-shadow: 0 4px 12px rgba(122,59,255,0.3);
  }

  /* Botón limpiar */
  .btn-limpiar-nombre-fil {
    background: #f3eaff;
    color: #7a3bff;
    font-weight: bold;
  }

  .btn-limpiar-nombre-fil:hover {
    background: #e9dcff;
  }
  

  .coleccion-block { margin: 24px 0; }
.coleccion-title { font-size: 1.1rem; margin: 0 0 12px; }
#lista-complementos-colecciones .swiper { padding-bottom: 24px; } /* espacio para paginación */


.card-container { position: relative; }
.image-container { position: relative; }


.share-btn {
     position: absolute;
    top: 8px;
    left: 5%;
    background: #ffffff80;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
}

.share-icon {
    width: 34px;
    height: 20px;
    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.15s 
ease, opacity 0.15s 
ease;
}

.share-btn:hover .share-icon {
  transform: scale(1.12);
  opacity: 1;
}


