body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

strong {
  font-weight: bold;
}

#main-content {
  min-height: 70vh;
}

#footer {
  min-height: 30vh;
  background: #111;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 50px;
}

/* Ocultos por defecto */
.megamenu,
.hidden {
  display: none !important
}

.megamenu.show {
  display: flex !important
}

/* HEADER */
header {
  background-color: var(--blanco);
  padding: 0 0 0;
  text-align: center;
  position: relative;
}

.rrss {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.middle {
  padding: 30px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--texto-base);
  font-family: var(--tipo-texto);
  font-size: 18px;
  font-weight: 500;
}

.middle button {
  color: var(--texto-base);
  font-family: var(--tipo-texto);
  font-size: 18px;
  font-weight: 500;
}

.logo-container,
.logores-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centra horizontalmente */
  justify-content: center;
  text-decoration: none;
}

.logo-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.logo {
  width: 275px;
  display: block;
  position: static;
  /* Quitamos absolute */
}

.logo-eyeware {
  display: block;
  margin-top: 4px;

  color: var(--texto-base);
  font-family: var(--tipo-texto);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;

  letter-spacing: 25px;

  width: 100%;
  text-align: center;

  /* Ajuste visual:
     elimina el espacio extra que añade la última letra */
  text-indent: 25px;

  pointer-events: none;
}

.middle nav>ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.middle_derecha {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.carrito span {
  font-size: 14px;
  font-weight: 400;
  font-family: var(--tipo-secundaria);
  background-color: var(--acento1);
  padding: 5px 10px;
  border-radius: 100px;
  color: var(--blanco);
}

/*  MEGAMENU */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: none;
  background-image: url(/assets/img/fondo-mgmenu.webp);
  background-size: cover;
  background-position: center center;
  padding: 1% 8%;
  min-height: 270px;
  justify-content: center;
}

.megamenu-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  width: min(100%,2000px);
}

.megamenu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 100px;
  width: 100%
}

.megamenu-item img {
  max-width: 500px;
  height: auto
}

.mgmenu-column {
  display: flex;
  gap: 100px;
  width: 100%
}

.mgmenu-list,
.mgsubmenu-list {
  width: 50%
}

.mgmenu-list,
.mgsubmenu {
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.mgmenu-list h3,
.mgsubmenu h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--principal);
  font-family: var(--negro);
  text-transform: uppercase;
  border-bottom: 1px solid var(--texto-base);
  margin-left: -15px;
}

.mgmenu-list ul>li,
.mgsubmenu a {
  font-family: var(--principal);
  font-weight: 500;
  font-size: 18px;
  color: var(--texto-base);
  padding-left: 10px;
  margin-top: 20px;
  text-align: left
}

.mgmenu-focus-links {
  margin-left: -20px;
}

.mgmenu-list li,
.mgsubmenu a {
  opacity: 1 !important;
}

.mgmenu-list li:hover,
.mgsubmenu a:hover {
  color: var(--principal);
  font-weight: 600;
  opacity: 1;
}

.mgsubmenu-list {
  display: none
}

.mgsubmenu-list.active {
  display: flex
}

/* UL interno (sin viñetas) */
.mgmenu-list ul {
  list-style: none;
  margin: 0;
  padding: 0
}

.mgmenu-list li {
  white-space: nowrap;
}

/* contenedor lateral */
.menu-responsive {
  position: fixed;
  /* <- antes era relative / absolute según media  */
  inset: 0 auto 0 0;
  /* top:0; right:auto; bottom:0; left:0 */
  width: 80vw;
  /* ancho por defecto; lo ajustamos en MQ */
  max-width: 480px;
  height: 100dvh;
  background-color: var(--beige);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .35s ease;
}

.menu-responsive.open {
  transform: translateX(0);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.megamenu-content ul {
  display: block;
  gap: 0;
}

/* cada accordion ocupa todo el panel, sobre el nivel-0 */
.accordion {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--beige);
  transform: translateX(100%);
  transition: transform .35s ease;
}

.accordion.show {
  transform: translateX(0)
}

/* botones de retorno */
.backToMain,
.backNivel2 {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  margin: 20px 30px;
  cursor: pointer;
  text-align: left;
}

/* paneles internos (nivel-1 y nivel-2) */
.mgmenu-responsive-nivel-1,
.mgmenu-responsive-nivel-2 {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 0 30px;
  box-sizing: border-box;
  transition: transform .35s ease;
}

.mgmenu-responsive-nivel-1 {
  transform: translateX(0)
}

.mgmenu-responsive-nivel-2 {
  transform: translateX(100%)
}

/* al activar el nivel-2 */
.accordion.lvl2 .mgmenu-responsive-nivel-1 {
  transform: translateX(-100%)
}

.accordion.lvl2 .mgmenu-responsive-nivel-2 {
  transform: translateX(0)
}


/*carrito*/

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100%;
  height: 100dvh;
  background-color: var(--blanco);
  box-shadow: -4px 0 12px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  padding: 20px
}

.cart-panel.hidden {
  display: none
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.cart-header h2 {
  font-size: 24px;
  font-family: var(--negro)
}

#closeCartBtn {
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  margin-top: 20px
}


/* HOME */
.hero,
.glide,
.glide__track,
.glide__slides,
.glide__slide {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.glide__slide img {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  object-fit: cover;
}

.banner-slider .banner-glide {
  aspect-ratio: 3 / 1;
  background-color: #f5f5f5;
  min-height: 180px;
  touch-action: pan-y;
  user-select: none;
}

.banner-slider .glide__slides {
  display: block;
  transform: none !important;
  height: 100%;
}

.banner-slider .banner-glide[data-banner-mounted="true"] .glide__slide {
  display: none;
  width: 100%;
  height: 100%;
}

.banner-slider .banner-glide[data-banner-mounted="true"] .glide__slide.is-active {
  display: block;
}

.banner-slider .glide__track,
.banner-slider .glide__slide {
  height: 100%;
}

.banner-slider .glide__slide picture,
.banner-slider .glide__slide a {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
  user-drag: none;
}

.banner-slide-link {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================
   SECCIÓN CATEGORÍAS - COVERFLOW SLIDER
========================================================== */

.categorias {
  background-color: var(--blanco);
  padding: 0;
  min-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0px;
  min-height: 300px;
}

.categoria {
  background-color: var(--blanco);
  color: var(--principal);
  font-size: 18px;
  font-weight: 600;
  text-align: center;

  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: 20px;

  transition:
    transform 0.45s ease,
    opacity 0.45s ease,
    filter 0.45s ease,
    box-shadow 0.45s ease;
}

.categoria:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.categoria img {
  width: auto;
  height: 80px;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.categoria img:hover {
  transform: scale(1.05);
}

/* ==========================================================
   CONTENEDOR PRINCIPAL DEL SLIDER
========================================================== */

.categorias.categorias-slider {
  display: block;
  padding: 50px 7%;
  min-height: 260px;
  overflow: hidden;
  justify-content: center;
  display: flex;
}

/* ==========================================================
   TRACK
========================================================== */

.categorias-track {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: pan-y;

  gap: 100px;

  min-width: 0;

  box-sizing: border-box;
}

.categorias-track::-webkit-scrollbar {
  display: none;
}

.categorias-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

/* Evita seleccionar texto e imágenes en el carrusel de categorías */
.categorias-track,
.categorias-track * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.categorias-track img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* ==========================================================
   TARJETAS DEL SLIDER
========================================================== */

.categorias-slider .categoria {
  width: 260px;
  min-width: 260px;

  min-height: 220px;

  margin: 0;
  padding: 0;

  transition:
    transform .3s ease,
    opacity .3s ease;
}

/* Tarjeta activa (centrada) */
.categorias-slider .categoria.is-active {
  transform: none;
  opacity: 1;
  filter: none;
}

/* Imagen activa */
.categorias-slider .categoria.is-active img {
  transform: scale(1.05);
}

/* Texto */
.categorias-slider .categoria p {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* Links */
.categorias-slider .categoria a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================
   BOTONES
========================================================== */

.categorias-slider-btn {
  display: none;
}

.categorias-slider-btn span {
  font-size: 36px;
  line-height: 1;
}

.categorias-slider-btn:hover:not(:disabled) {
  transform: scale(1.15);
}

.categorias-slider-btn:disabled {
  cursor: default;
  opacity: 0.25;
}

/* Ocultar botones si no hay overflow */
.categorias-slider:not(.has-overflow) .categorias-slider-btn {
  visibility: hidden;
  pointer-events: none;
}

/* Centrar si no hay overflow */
.categorias-slider:not(.has-overflow) .categorias-track {
  justify-content: center;
}

.estilo {
  background-color: var(--beige);
  padding: 5% 7%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 700px;
  gap: 100px;
}

.estilo__imagenes {
  width: 50%;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  position: relative;
}

.estilo__texto {
  width: 50%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.estilo__imagenes-1 {
  width: 400px;
  height: auto;
  padding: 0;
}

.estilo__imagenes-2 {
  width: 300px;
  height: auto;
  margin-left: auto;
  margin-top: -50px;
}

.estilo__texto h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--principal);
  font-family: var(--tipo-principal);
  gap: 20px;
  font-size: 42px;
  line-height: 1.2;
}

.estilo__texto p {
  font-size: 22px;
  font-weight: 400;
  color: var(--texto-base);
  font-family: var(--tipo-texto);
  gap: 20px;
  line-height: 1.5;
}

.estilo__link {
  text-decoration: underline;
  text-underline-offset: 10px;
  margin-top: 50px;
  font-size: 22px;
  font-weight: 400;
  color: var(--texto-base);
  font-family: var(--tipo-principal);
  line-height: 1.5;
  color: var(--principal);
  transition: all 0.3s ease;
}

.estilo__link:hover {
  text-underline-offset: 15px;
  font-weight: 600;
  color: var(--texto-base);
  line-height: 1.5;
}

.destacados {
  background-color: #fff;
  padding: 5% 7%;
  text-align: center;
}

.destacados h2 {
  font-weight: 600;
  margin-bottom: 60px;
  color: var(--principal);
  font-family: var(--tipo-principal);
  font-size: 42px;
  line-height: 1.2;
}

.productos-destacados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: start;
}

.producto-destacado {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}


.producto-destacado:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
  border-color: rgba(0, 0, 0, .12);
}

.icono-facial {
  margin-right: auto;
  display: none;
}

.icono-facial img {
  width: 24px;
  height: auto;
  margin-right: auto;
}

.producto-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.producto-info-principal {
  display: flex;
  flex-direction: column;
}

.precios {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: var(--tipo-secundaria);
  flex-wrap: wrap;
}

.modelo {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.2;
}

.precio {
  color: var(--negro);
  font-family: var(--tipo-secundaria);
  font-weight: 600;
  margin-left: 15px;
}

.precio-base {
  text-decoration: line-through;
  font-weight: 400;
  color: #555;
  margin: 0;
  font-size: 15px;
}

.precio-oferta {
  color: #e52323;
  font-weight: 700;
  margin: 0;
  font-size: 16px;
}

.precio-destacado-grid {
  display: grid;
  gap: 0.4rem;
}

.precio-producto-individual {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.producto-archive__tienda .colores {
  padding: 15px 0;
  display: flex;
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: all .35s ease;
}

.producto-archive__tienda:hover .colores {
  max-height: 50px;
  opacity: 1;
  transform: translateY(0);
}

.colores {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0px;
  flex-wrap: wrap;
}

.color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: transform .2s ease, border-color .2s ease;
}

.color.activo {
  border-color: var(--principal);
  transform: scale(1.1);
}

.oferta {
  background-color: var(--blanco);
  padding: 0% 7%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 1440px;
  margin: auto;
}

.categoria-lentes {
  background-color: var(--blanco);
  width: 100%;
  padding: 3% 7%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
  color: var(--blanco);
  font-size: 18px;
  font-weight: 600;
}

.cat-lentes-home {
  min-width: 50%;
  min-height: 700px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-family: var(--tipo-principal);
  text-align: center;
  padding: 50px;
}

.cat-lentes-home h2 {
  font-size: 32px;
  font-weight: bold;
  font-family: var(--tipo-principal);
  line-height: 1.2;
}

.cat-lentes-home a {
  text-decoration: underline !important;
  text-underline-offset: 10px;
  margin-top: 50px;
  font-size: 22px;
  font-weight: 400;
  color: var(--blanco) !important;
  font-family: var(--tipo-principal);
  line-height: 1.5;
  color: var(--principal);
  transition: all 0.3s ease;
}

.cat-lentes-home a:hover {
  text-underline-offset: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.cta-home {
  width: 100%;
  padding: 3% 7%;
  background-color: var(--blanco);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.cta-home__texto {
  display: flex;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-width: 25%;
  padding: 50px;
  height: 400px;
  text-align: center;
  position: relative;

  justify-content: center;
  align-items: flex-end;
}

.cta-home__texto a {
  font-family: var(--tipo-principal);
  color: var(--negro);
  background-color: var(--blanco);
  width: max-content;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: absolute;
}

/* FOOTER */
footer {
  background-color: var(--principal);
  padding: 20px 0 0;
  text-align: center;
  color: var(--blanco);
  font-family: var(--tipo-secundaria);
  font-size: 18px;
}



/* ERROR 404*/
.error_img {
  margin: auto;
  height: auto;
  width: 100%;
}

/* DETALLES DE PRODUCTO*/
.producto-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 0% 7% 5%;
  background-color: #fff;
}

.migas-de-pan {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  font-size: 18px;
  font-family: var(--principal);
  font-weight: 500;
  color: var(--principal);
}

.migas-de-pan p {
  font-weight: 600;
}

.migas-wrapper-producto {
  width: calc(100% + 14%);
  margin: 0 -7%;
  background-color: var(--beige);
  display: flex;
  justify-content: center;
  padding: 14px 7%;
}

.detalles-producto {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.image-producto-galeria {
  width: 58%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}

.miniaturas {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 18px;
  width: 110px;
  flex-shrink: 0;
}

.destacada {
  width: 100%;
  min-height: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

#face-time-btn {
  position: static;
  transform: none;
  width: 120px;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
  color: var(--negro);
  gap: 6px;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
  border-radius: 0;
  margin-top: 12px;
}

#face-time-btn span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

#face-time-btn img {
  width: 22px;
  height: 22px;
}

#face-time-btn p {
  margin-top: 0;
  font-size: 14px;
  font-family: var(--tipo-texto);
  line-height: 1.2;
}

.detalles-producto-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 42%;
  gap: 14px;
}

.detalles-producto-titulo {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--principal);
  gap: 18px;
}

.detalles-producto-titulo h1 {
  font-size: 32px;
  font-family: var(--principal);
  font-weight: 600;
  line-height: 1.15em;
  margin: 0;
}


/* ========== bolitas de color en la ficha de producto ========== */
.color-options {
  display: flex;
  /* que se alineen en fila              */
  gap: 8px;
  /* separadas                            */
  margin-top: .75rem;
}

.color-bolita {
  display: inline-block;
  width: 24px;
  /* diámetro                            */
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  /* anillo blanco                       */
  box-shadow: 0 0 0 1px #999;
  /* contorno gris fino          */
  cursor: pointer;
  transition: transform .15s;
}

input[name="color"]:checked+.color-bolita {
  transform: scale(1.15);
  /* bolita seleccionada algo mayor      */
  box-shadow: 0 0 0 2px #333;
}

input[name="color-filtro"]:checked+.color-bolita {
  transform: scale(1.15);
  /* bolita seleccionada algo mayor      */
  box-shadow: 0 0 0 2px #333;
}


.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tipo-texto);
  font-size: 14px;
  color: var(--texto-base);
  font-weight: 400;
}

.rating .stars {
  position: relative;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}

.rating .stars::before {
  content: "★★★★★";
  color: #ddd;
}

.rating .stars::after {
  content: "★★★★★";
  color: #c2a659;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--rating, 0%);
  overflow: hidden;
  white-space: nowrap;
}

.stars {
  display: inline-block;
  color: var(--blanco);
  /* Color estrella base */
  position: relative;
  font-size: 28px;
}

.stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  color: var(--blanco);
}

.stars::after {
  content: "★★★★★";
  letter-spacing: 2px;
  color: var(--acento1);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--rating, 0%);
  overflow: hidden;
  white-space: nowrap;
}

.reviews {
  margin-left: 8px;
}

.desplegable-producto {
  width: 100%;
  border: 1px solid #ece7dc;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.desplegable-producto + .desplegable-producto {
  margin-top: 10px;
}

.desplegable-producto-titulo {
  background-color: #f4ead9;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  font-family: var(--tipo-texto);
  font-size: 18px;
  color: var(--principal);
  font-weight: 500;
}

.desplegable-producto.completado .desplegable-producto-titulo {
  background: #f4ead9;
  color: var(--principal);
}

.desplegable-producto-titulo img {
  width: 18px;
  height: 18px;
}

.desplegable-producto-titulo .editar-texto {
  display: none;
  font-size: 13px;
  margin-left: 10px;
  text-decoration: underline;
  cursor: pointer;
}

.desplegable-producto-content {
  display: none;
  background-color: #fff;
  padding: 14px 18px 18px;
}

.desplegable-producto-content p {
  font-size: 14px;
  font-family: var(--tipo-texto);
  margin-bottom: 15px;
}

.desplegable-producto-content .tamanho-label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0px 0;
  position: relative;
  box-sizing: border-box;
}

.desplegable-producto-content .tamanho-label::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid var(--negro);
  border-radius: 50%;
  flex: 0 0 18px;
  box-sizing: border-box;
  background: #fff;
  transition: background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.desplegable-producto-content input[type="radio"]:checked + .tamanho-label::before {
  background: #111;
  box-shadow: inset 0 0 0 3px #fff;
}

.desplegable-producto.activo .desplegable-producto-content {
  display: block;
}

.desplegable-producto.activo .icono-menos {
  display: inline;
}

.desplegable-producto.activo .icono-mas {
  display: none;
}

.desplegable-producto .icono-menos {
  display: none;
}

.desplegable-producto .icono-mas {
  display: inline;
}

.desplegable-producto.completado .desplegable-producto-content {
  display: none;
}

.desplegable-producto.completado .editar-texto {
  display: inline;
}

.desplegable-producto.completado .icono-mas,
.desplegable-producto.completado .icono-menos {
  display: none;
}

.color-options {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

div.color-options-por-filtro {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  margin-left: 30px;
}

.color-radio {
  display: none;
}

.color-label {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  transition: border 0.2s;
}

.color-radio:checked+.color-label {
  border: 2px solid #000;
}

.tamanho-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ---------- Ocultamos el radio nativo ----------- */
.tamanho-radio {
  display: none;
}

/* ---------- Estructura del label ---------------- */
.tamanho-label {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  cursor: pointer;
  user-select: none;
  font-family: var(--tipo-texto);
  color: var(--texto-base);
}

/* texto en columna */
.tamanho-label .texto {
  display: flex;
  flex-direction: column;
  /* ← aquí la columna */
}


/* ---------- Títulos y descripción --------------- */
.tamanho-label .titulo {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.2;
  font-family: var(--tipo-principal);
}

.receta-titulo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.receta-max-size {
  font-family: var(--tipo-texto);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--texto-base);
}

.tamanho-label .desc {
  display: block;
  font-weight: 400;
  font-size: 14px;
  margin-top: 6px;
}

/* ---------- Estado seleccionado ----------------- */
.tamanho-radio:checked+.tamanho-label::before {
  background: var(--acento1);
  /* color de relleno elegido */
  border-color: var(--acento1);
}

.tamanho-radio:checked+.tamanho-label .titulo {
  color: var(--principal);
}

.ayuda-desplegable-producto {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.ayuda-desplegable-producto p {
  color: var(--principal);
  font-family: var(--tipo-texto);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0px;
}

.ayuda-desplegable-producto img {
  width: 18px;
  height: auto;
}

/* ---------- Pestañas ------------------------------------------- */
.medida-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 18px;
}

.tab {
  border: 1px solid var(--texto-base);
  background: transparent;
  color: var(--texto-base);
  font-family: var(--tipo-secundaria);
  padding: 6px 24px;
  cursor: pointer;
}

.tab.active {
  background: var(--principal);
  color: #fff;
}

/* ---------- Paneles (mensaje-lectura y formulario) -------------- */
.medida-panel {
  margin-top: 14px;
}

.hidden {
  display: none;
}

/* ---------- Subir receta --------------------------------------- */
.subir-receta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--principal);
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--tipo-principal);
  font-size: 24px;
  font-weight: 400;
  margin-top: 10px;
  color: var(--principal);
}

.subir-receta img {
  width: 20px;
  height: 20px;
}

.anuncio-medida-producto p {
  background-color: var(--principal);
  color: var(--blanco);
  width: 500px;
  max-width: 100%;
  text-align: center;
  margin: auto;
  padding: 15px;
  margin-bottom: 10px;
  font-size: 18px;
  margin-top: 20px;
}

.btn-comprar-producto {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid #111;
  border-radius: 4px;
  background-color: var(--negro);
  color: var(--blanco);
  font-family: var(--tipo-principal);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-comprar-producto:hover {
  background-color: #222;
  border-color: #222;
  transform: translateY(-1px);
}

.btn-comprar-producto.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.borrar-datos-seleccionados {
  width: 100%;
  text-align: center;
  color: var(--negro);
  font-size: 14px;
}

.abrir-carrito-compras {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid #bfbfbf;
  border-radius: 4px;
  background: #fff;
  color: var(--negro);
  font-size: 18px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.abrir-carrito-compras p {
  margin: 0;
  text-decoration: none;
  font-size: 18px;
  font-family: var(--tipo-texto);
  display: flex;
  align-items: center;
  gap: 10px;
}

.abrir-carrito-compras:hover {
  background: #fafafa;
}

.borrar-datos-seleccionados:hover,
.abrir-carrito-compras:hover {
  cursor: pointer;
}

.datos-adicionales {
  padding: 50px 7% 80px;
  background-color: var(--blanco);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-top: 1px solid #ededed;
}

.datos-adicionales-tabs {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 18px;
}

.datos-adicionales-tab-content {
  display: none;
  padding: 20px 0;
}

.datos-adicionales-tab-content.active {
  display: block;
}

.datos-adicionales-tab-content p {
  font-size: 16px;
  text-align: center;
  font-family: var(--tipo-texto);
  margin-bottom: 15px;
}

.datos-adicionales-tab-content ul {
  font-size: 16px;
  text-align: center;
  font-family: var(--tipo-texto);
  margin-bottom: 15px;
}

.datos-adicionales-tab-titulo {
  padding: 10px 16px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  font-size: 16px;
  font-family: var(--tipo-principal);
  margin-right: 5px;
  transition: background-color 0.3s ease;
}

.datos-adicionales-tab-titulo.active {
  font-weight: 600;
  text-decoration: underline;
}

.detalles-adicionales-producto-1 {
  background-color: var(--beige);
  padding: 28px 40px;
  width: min(100%, 980px);
  min-width: 0;
  border-radius: 12px;
  box-sizing: border-box;
}

.descripcion-prod {
  text-align: center;
  font-family: var(--tipo-texto);
  font-size: 16px;
  margin: 0 0 22px;
  color: var(--texto-base);
}

.specs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: center;
}

.specs-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-right: 28px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.specs-left img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.specs-measures {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-family: var(--tipo-texto);
  font-size: 15px;
  line-height: 1.3;
}

.specs-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 60px;
  align-items: start;
}

.spec-item {
  font-family: var(--tipo-texto);
  font-size: 16px;
  line-height: 1.35;
  color: var(--texto-base);
}

.spec-item strong {
  font-weight: 700;
}

.total-reshenas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.resumen-resenhas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.resumen-resenhas h3 {
  font-size: 48px;
  font-family: var(--tipo-texto);
  font-weight: 400;
}

.resumen-resenhas .rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.resumen-resenhas .stars {
  font-size: 32px;
  color: var(--acento2);
  /* Color estrella base */
}

.resumen-resenhas span {
  font-size: 16px;
  font-family: var(--tipo-texto);
  font-weight: 400;
}

.resumen-resenhas .stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  color: var(--acento2);
}

.escribir-resenha button {
  background-color: var(--negro);
  color: var(--blanco);
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--tipo-texto);
  font-weight: 400;
  margin-bottom: 20px;
}

.resenha {
  background-color: var(--beige);
  padding: 50px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.datos-resenha {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.resenha-titular .stars {
  font-size: 18px;
  color: var(--principal);
}

.resenha-titular .stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  color: var(--blanco);
}

.resenha-titular .stars::after {
  content: "★★★★★";
  letter-spacing: 2px;
  color: var(--principal);
}

.resenha-titular h4 {
  font-family: var(--tipo-texto);
  font-size: 14px;
}

.fecha-resenha p {
  font-family: var(--tipo-texto);
  font-size: 14px;
}

.resenha-titulo h5 {
  font-size: 32px;
  font-family: var(--tipo-principal);
  font-weight: 500;
  margin: 15px 0;
}

.resenha-titulo p {
  text-align: left;
  font-family: var(--tipo-texto);
  font-size: 14px;
  margin-right: 100px;
}

.miniaturas img {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.miniaturas img:hover,
.miniaturas img.active {
  border: 1px solid var(--principal);
}

.precio-producto-individual {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.precio-producto-individual .precio-base {
  text-decoration: line-through;
  font-weight: 400;
  font-size: 28px;
  color: var(--texto-base);
}

/*---------------------  TIENDA  ---------------------*/

/* CONTENEDOR GENERAL */
.filtro-wrapper_tienda {
  position: relative;
  background-color: var(--beige);
  text-align: center;
  justify-content: center;
  display: flex;
  padding: 0 7%;
}

/* BARRA SUPERIOR (breadcrumb) */
.filtro {
  display: flex;
  width: min(100%,2000px);
  justify-content: flex-start;
  min-height: 70px;
  position: relative;
  z-index: 20;
}

/*---------------------  LAYOUT TIENDA  ---------------------*/

.layout-tienda {
  display: flex;
  gap: 24px;
  padding: 24px 5% 0;
  align-items: flex-start;
}

/* SIDEBAR */
.sidebar-filtros {
  width: 255px;
  position: relative;
}

.filtros-topbar {
  display: none;
}



/* BOTON FILTROS */
#toggle-filtro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  font-size: 18px;
  font-family: var(--tipo-secundaria);
  font-weight: 500;
  color: var(--principal);
  text-decoration: none;
  cursor: pointer;
}

#toggle-filtro .fila1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

/* ocultamos la fila 2 cuando está cerrado */
#toggle-filtro .fila2 {
  display: none;
}

#toggle-filtro.activo .fila2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

#toggle-filtro:hover {
  opacity: .8;
}

/* textos del botón */
#txt-ocultar {
  display: none;
}

#clear-filtros {
  display: none;
  margin-left: 8px;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

/* contador */
#filtro-count {
  font-size: 14px;
  color: #777;
}

/*---------------------  PANEL FILTROS  ---------------------*/

.filtro-extendido {
  margin-top: 18px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height .35s ease, opacity .35s ease, transform .35s ease;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.filtro-extendido.activo {
  max-height: 2500px;
  opacity: 1;
  transform: none;
}

.filtro-extendido__filtro:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filtro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--principal);
}

/* BLOQUES DE FILTRO */

.filtro-extendido__filtro {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.filtro-extendido__filtro h3 {
  font-size: 16px;
  font-family: var(--tipo-principal);
  font-weight: 700;
  color: var(--principal);
  margin: 0;
  text-decoration: none;
}

/* LISTA OPCIONES */
.filtro-extendido__filtro fieldset {
  border: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 5px;
}

/* SCROLL FILTROS */
.filtro-extendido__filtro fieldset::-webkit-scrollbar {
  width: 6px;
}

.filtro-extendido__filtro fieldset::-webkit-scrollbar-thumb {
  background: var(--principal);
  border-radius: 3px;
}

/* ITEM FILTRO */
.filtro-extendido__filtro fieldset div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tipo-principal);
  font-size: 15px;
  color: #222;
  font-weight: 500;
}

/*---------------------  CHECKBOX PERSONALIZADO  ---------------------*/

.filtro-extendido__filtro input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--principal);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  flex: 0 0 16px;
}

.filtro-extendido__filtro input[type="checkbox"]:checked {
  background: var(--principal);
}

.filtro-extendido__filtro input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/*---------------------  ORDENAR POR  ---------------------*/

.tienda-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 30px;
}

.ordenar-por {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.ordenar-por label {
  font-size: 15px;
  font-weight: 500;
  color: #7a7a7a;
  font-family: var(--tipo-principal);
}

.ordenar-por select {
  min-width: 260px;
  height: 52px;
  padding: 0 48px 0 22px;
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  font-family: var(--tipo-principal);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .04);
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 1;
}

.ordenar-por select:hover {
  border-color: #cfcfcf;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .06);
}

.ordenar-por select:focus {
  outline: none;
  border-color: #bdbdbd;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.ordenar-por::after {
  content: "";
  position: absolute;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #6f6f6f;
  border-bottom: 2px solid #6f6f6f;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 2;
  transition: transform .25s ease;
}

.ordenar-por:focus-within::after {
  transform: rotate(45deg) translateY(1px);
}

.ordenar-por select option {
  font-weight: 500;
  color: #222;
}

/*---------------------  FILTRO COLORES  ---------------------*/

.color-circle {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid transparent;
}

#filtro-color input[type="checkbox"]:checked+label .color-circle {
  border-color: var(--principal);
}

#filtro-color label {
  display: inline-flex;
  align-items: center;
}

/*---------------------  CONTENIDO DERECHO  ---------------------*/

.contenido-tienda {
  flex: 1;
}

/* BANNER */
.tipo__imgaen {
  margin-bottom: 30px;
}

.tipo__imgaen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/*--------------------- TIPOS DE PRODUCTO ---------------------*/
.tipos-productos-slider {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 18px;
  padding: 24px 10%;
}

.tipos__productos {
  display: flex;
  gap: 32px;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.tipos__productos::-webkit-scrollbar {
  display: none;
}

.tipos-slider-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--principal);
  border-radius: 50%;
  background: var(--blanco);
  color: var(--principal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.tipos-slider-btn span {
  font-size: 30px;
  line-height: 1;
  transform: translateY(-1px);
}

.tipos-slider-btn:hover:not(:disabled) {
  background: var(--principal);
  color: var(--blanco);
}

.tipos-slider-btn:disabled {
  cursor: default;
  opacity: .35;
}

.tipos-productos-slider:not(.has-overflow) .tipos-slider-btn {
  visibility: hidden;
  pointer-events: none;
}

.tipos-productos-slider:not(.has-overflow) .tipos__productos {
  justify-content: center;
}

.categoria-card {
  flex: 0 0 calc((100% - 96px) / 4);
  min-width: 210px;
  height: 150px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
  scroll-snap-align: start;
}

.categoria-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.categoria-card p {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  text-align: center;
}

.categoria-card:hover img {
  transform: scale(1.1);
}

.categoria-card.activo {
  outline: 3px solid var(--acento1);
}

.tipos__productos a {
  text-decoration: none;
  color: var(--blanco);
  font-size: 18px;
  font-weight: 600;
  font-family: var(--tipo-principal);
  padding: 20px 40px;
  background-color: var(--negro);
}

.tipos__productos a:hover {
  cursor: pointer;
}

.tipos__productos a.activo {
  background: var(--acento1);
  color: var(--negro);
}

/*---------------------  PRODUCTOS  ---------------------*/

.productos-archive__tienda {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  width: 100%;
}

.productos-archive__tienda .productos-destacados {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 270px));
  justify-content: center;
  gap: 40px;
}

/* TARJETA */
.producto-archive__tienda {
  background: #fff;
  border: none;
  min-height: 230px;
  max-height: 340px;
  width: 100%;
  max-width: none;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.producto-archive__tienda:hover {
  transform: translateY(-5px);
}

/* CONTENEDOR DE IMAGEN */
.producto-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

/* IMÁGENES */
.producto-img img {
  width: 100%;
  display: block;
  transition: opacity .4s ease, transform .4s ease;
}

.producto-img img.is-empty {
  display: none;
}

/* SEGUNDA IMAGEN */
.producto-img .img2 {
  display: none;
}

.producto-img.has-secondary-image .img2 {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* EFECTO HOVER */
.producto-archive__tienda:hover .producto-img.has-secondary-image .img1 {
  opacity: 0;
}

.producto-archive__tienda:hover .producto-img.has-secondary-image .img2 {
  opacity: 1;
}


.banner {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.error-404 {
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3%;
}

.middle_derecha a img {
  width: 32px;
  height: 32px;
}

/* CONTENEDOR */
a#openFavBtn {
  display: flex;
}

/* CONTADOR */
a#openFavBtn span {
  position: relative;
  background: var(--acento1);
  color: var(--blanco);
  padding: 4px 10px;
  border-radius: 100%;
  top: -10px !important;
  left: 2px !important;
  font-size: 16px;
}

button#openCartBtn {
  display: flex;
}

button#openCartBtn img {
  width: 32px;
  height: 32px;
}

button#openCartBtn span {
  position: relative;
  background: var(--acento1);
  color: var(--blanco);
  padding: 6px 10px;
  border-radius: 100%;
  top: -10px !important;
  left: -2px !important;
  font-size: 16px;
}

button#openCartBtn:hover {
  cursor: pointer;
}

.opcion-seleccionada {
  font-family: var(--tipo-texto);
  font-size: 13px;
  margin-left: 12px;
}

input[type="radio"]:checked+label.tamanho-label::before {
  background-color: var(--principal);
  border-color: var(--principal);
}


/* CONTENEDOR GENERAL */

.selector-opciones-producto {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* TITULOS */

.selector-titulo {
  font-family: var(--tipo-texto);
  font-size: 14px;
  margin-bottom: 6px;
}

/* COLORES */

.selector-colores .color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* BOLITAS */

.color-bolita {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: .2s;
}

.color-bolita:hover {
  transform: scale(1.1);
}

/* TAMAÑOS */

.selector-tamanos .tamanho-options {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.selector-tamanos .tamanho-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 11px 22px;
  border: 1px solid #e5dcc9;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-family: var(--tipo-texto);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.selector-tamanos .tamanho-label .texto {
  display: flex;
  align-items: center;
  justify-content: center;
}

.selector-tamanos .tamanho-label .titulo {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.selector-tamanos input[type="radio"]:checked + .tamanho-label {
  background: #111;
  border-color: #111;
  color: #fff;
}

.selector-tamanos .tamanho-label:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}



/* ----------  ESTILOS PARA CURAR  ---------- */
/* --- footer --- */
.site-footer {
  background: #111;
  color: #fff;
  font-size: .9rem;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: space-between;
}

.footer__wrapper {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 70px 1rem;
}

.footer__col {
  justify-content: start;
  display: flex;
  flex-direction: column;
}

.footer__col h4 {
  margin-bottom: 25px;
  font-family: var(--tipo-primaria);
  font-weight: 600;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col p {
  margin-top: 15px;
}

.footer__col li+li {
  margin-top: 15px;
}

.footer__col a {
  color: #fff;
  text-decoration: none;
}

.footer__copy {
  border-top: 1px solid #333;
  padding: 1rem;
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1002;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  font-weight: 600;
}

.whatsapp-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #25d366;
  font-family: var(--tipo-primaria);
  font-size: 14px;
  line-height: 1;
}

.whatsapp-float__text {
  line-height: 1;
}

.whatsapp-float:hover {
  background: #1ebe5b;
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float__text {
    display: none;
  }
}



/*Cuenta*/
.seccion-cuenta {
  padding: 3% 7%;
  background-color: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.acceso-cuenta {
  width: 90%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.acceso-cuenta h1 {
  font-size: 36px;
  font-family: var(--tipo-principal);
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--principal);
  gap: 20px;
  line-height: 1.3;
}

.botones-acceso-top {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.botones-acceso-top-iten.active-acc-boton {
  background-color: var(--negro);
  color: var(--blanco);
  padding: 15px 35px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-family: var(--tipo-texto);
  font-weight: 500;
  margin-bottom: 20px;
}

.botones-acceso-top-iten {
  background-color: var(--beige);
  color: var(--principal);
  padding: 15px 35px;
  border: solid var(--principal) 1px;
  cursor: pointer;
  font-size: 18px;
  font-family: var(--tipo-texto);
  font-weight: 500;
  margin-bottom: 20px;
}

.boton-accesos-cuenta {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  gap: 0;
  align-items: stretch;
  justify-content: center;

  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.formulario-acceso,
.formulario-acceso-img {
  width: 50%;
}

.formulario-acceso-img {
  min-height: 650px;
  background-image: url(../img/login.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 15px 0 0 15px;
}

.formulario-acceso {
  min-height: 650px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 0 15px 15px 0;
  box-sizing: border-box;
}

.formulario-acceso form {
  width: 100%;
  padding: 0 50px;
}

.formulario-acceso-div {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;             
  margin-bottom: 10px;

}

.formulario-acceso-div label {
  font-size: 16px;
  font-family: var(--tipo-texto);
  color: var(--principal);
  font-weight: 500;
}

.formulario-acceso-div input {
  width: 100%;
  padding: 10px;
  border: solid 1px var(--principal);
  border-radius: 0px;
  font-size: 16px;
  font-family: var(--tipo-texto);
}

.formulario-acceso-div input:focus {
  outline: none;
  border: solid 1px var(--acento1);
}

.password-help {
  color: #5f5f5f;
  font-family: var(--tipo-texto);
  font-size: 13px;
  line-height: 1.35;
}

.formulario-acceso input[type="submit"] {
  background-color: var(--principal);
  color: var(--blanco);
  font-size: 18px;
  font-family: var(--tipo-texto);
  font-weight: 500;
  cursor: pointer;
  border: none;
  width: 100%;
  padding: 15px 30px;
}

.auth-link-button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 15px;
  background: none;
  border: none;
  padding: 0;
  color: var(--principal);
  font-family: var(--tipo-texto);
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

.auth-link-button:hover,
.auth-link-button:focus {
  color: var(--acento1);
}

.auth-recovery-panel {
  margin-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 22px !important;
}

.auth-recovery-panel[hidden] {
  display: none;
}

.auth-recovery-panel h2 {
  margin-bottom: 10px;
  color: var(--principal);
  font-family: var(--tipo-principal);
  font-size: 24px;
  font-weight: 600;
}

.auth-recovery-panel p {
  margin-bottom: 20px;
  color: var(--principal);
  font-family: var(--tipo-texto);
  font-size: 15px;
  line-height: 1.4;
}

.auth-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 700; 
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 5px;
  text-align: center;
  color: var(--principal);
}

.auth-subtitle {
  margin-bottom: 35px;
  text-align: center;
  color: #666;
  font-family: var(--tipo-texto);
}

/*Línea divisoria elegante*/
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 15px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}

.auth-divider span {
  color: #999;
  background: #fff;
  padding: 0 8px;
}

/*Estilo para el botón(Crear cuenta)*/

.auth-register-prompt {
  text-align: center;
  margin: 5px 0 15px 0;
  font-family: var(--tipo-texto);
  font-size: 13px;
  color: #7a7a7a;
}

.btn-crear-cuenta {
  display: block;
  margin: 0 auto;
  width: auto;
  padding: 12px 50px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #5f5f5f;
  border-radius: 8px;
  color: var(--principal);
  font-size: 15px;
  font-family: var(--tipo-texto);
  font-weight: 500;
  cursor: pointer;
}

/* iconos en el imput (iniciar seción) */

.input-con-icono {
  position: relative;
  display: flex;
  align-items: center; 
  height: 50px;
}

.input-con-icono .icono-input {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center; 
  pointer-events: none;
  z-index: 2;
}

.input-con-icono .icono-input svg {
  fill: var(--principal);
  width: 20px;
  height: 20px;
}

.input-con-icono input {
  width: 100%;
  height: 100%;
  padding-left: 45px !important; 
  box-sizing: border-box;
}

/* Registrarme*/

.auth-title-left {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 5px;
  color: var(--principal);
  text-align: left;
}

.auth-subtitle-left {
  margin-bottom: 35px;
  color: #666;
  font-family: var(--tipo-texto);
  text-align: left;
}

.link-bold {
  font-weight: 700;
  text-decoration: underline;
  color: var(--principal);
}

.auth-login-prompt {
  text-align: center;
  margin-top: 12px;
  font-size: 15px;
  font-family: var(--tipo-texto);
  color: var(--principal);
}

.terminos {
  display: flex;
  flex-direction: row !important; 
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.terminos-label {
  font-size: 14px; 
  color: #5f5f5f;
  margin: 0 !important;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

/*Legal*/
.tittle-legal {
  width: 100%;
  padding: 3% 7%;
  font-size: 36px;
  font-family: var(--tipo-principal);
  font-weight: 600;
  color: var(--principal);
  background-color: var(--beige);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3em;
}

.content-legal {
  width: 100%;
  padding: 3% 7%;
  background-color: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  line-height: 1.5em;
}

.content-legal h2 {
  font-size: 28px;
  font-family: var(--tipo-principal);
  font-weight: 600;
  color: var(--principal);
  margin-bottom: 20px;
  line-height: 1.3em;
}


/*Checkout*/
#header-checkout {
  width: 100%;
  padding: 1% 7%;
  background-color: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#header-checkout img {
  width: 275px;
  height: auto;
}

#header-checkout a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

#header-checkout .logo-eyeware {
  position: static;
  transform: none;
  margin-top: 4px;
}

.checkout {
  width: 100%;
  padding: 3% 7%;
  background-color: var(--beige);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#checkoutForm {
  width: 100%;
  max-width: 1500px;
  padding: clamp(16px, 2.4vw, 30px);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 64px);
}

.detalles-de-pago,
.resumen-compra {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 0;
}

.detalles-de-pago {
  flex: 1 1 680px;
  max-width: 760px;
}

.resumen-compra {
  flex: 0 1 450px;
}

.resumen-compra {
  position: sticky;
  top: 20px;
  align-self: start;
}

.detalles-de-pago h2 {
  font-size: 32px;
  font-family: var(--tipo-principal);
  font-weight: 600;
  color: var(--principal);
  margin-bottom: 20px;
  line-height: 1.3em;
}

.datos-facturacion {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.seguridad-aviso {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px; 
  padding-left: 5px;  
}

.datos-facturacion h3 {
  font-size: 18px;
  font-family: var(--tipo-secundaria);
  font-weight: 400;
  color: var(--negro);
}

.checkout__resumen-datos {
  background-color: var(--blanco);
  padding: 20px;
  width: 100%;
  max-width: 630px;
}

.checkout__resumen-datos {
  position: relative;
  color: var(--negro);
  font-family: var(--tipo-secundaria);
}

.checkout__resumen-datos h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
  line-height: 1.3em;
}

.checkout__resumen-datos p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 5px;
  line-height: 1.3em;
}

.checkout__resumen-datos span {
  position: absolute;
  right: 15px;
  bottom: 15px;
  text-decoration: underline;
  cursor: pointer;
}

.checkout-metodos-seleccionar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 15px;
}

.checkout-metodos-seleccionar .datos-facturacion h3, 
.checkout-metodos-seleccionar .datos-facturacion h4,
.checkout-metodos-seleccionar .datos-facturacion strong {
    margin-bottom: 20px; 
    display: block;
}

.datos-facturacion__formulario, 
.metodo-ckeckout__resumen {
  margin: 0 auto; 
}

/* Alineación de etiquetas y cajas */
.datos-facturacion__form__input {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.checkout-metodos-seleccionar > .datos-facturacion {
  flex: 1;
  min-width: 280px;
  margin-bottom: 0;
}

.metodo-ckeckout__resumen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

#metodo-de-pago {
  align-self: flex-end;
}

.metodo-ckeckout-item {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.metodo-ckeckout-item__img {
  width: 30%;
  height: auto;
}

.metodo-ckeckout-item__content {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
}

.metodo-ckeckout-item__content p {
  font-size: 16px;
  font-family: var(--tipo-secundaria);
  font-weight: 400;
  margin-bottom: 5px;
}

.resumen-compra {
  background-color: var(--blanco);
  justify-content: space-between;
}

.resumen-compra h2 {
  font-size: 22px;
  font-family: var(--tipo-secundaria);
  font-weight: 500;
  color: var(--negro);
  margin-bottom: 20px;
  line-height: 1.3em;
  padding: 30px 30px 0 30px;
}

.separador-resumen-compra {
  width: 100%;
  border: solid #F2F2F2 1px;
  padding: 0;

}

.resumen-producto-compra {
  padding: 30px;
}

.resumen-compra__total {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.resumen-compra__total-items {
  margin-top: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;

  gap: 30px;
}

.resumen-compra__total-items-precio {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 18px;

}

.checkout-coupon {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-coupon label {
  color: var(--principal);
  font-family: var(--tipo-principal);
  font-size: 15px;
  font-weight: 500;
}

.checkout-coupon__controls {
  display: flex;
  gap: 10px;
}

.checkout-coupon__controls input {
  min-width: 0;
  flex: 1;
  min-height: 44px;
  border: solid 1px var(--negro);
  color: var(--negro);
  font-family: var(--tipo-secundaria);
  font-size: 15px;
  padding: 11px 14px;
  text-transform: uppercase;
  border-radius: 5px;
}

.checkout-coupon__controls input:focus {
  border-color: var(--principal);
  outline: 2px solid color-mix(in srgb, var(--principal) 18%, transparent);
  border-radius: 5px;
}

.resumen-compra__total-items .checkout-coupon__controls button {
  width: auto;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 15px;
  white-space: nowrap;
  display: block; 
}

.checkout-coupon__message {
  min-height: 18px;
  color: var(--principal);
  font-size: 13px;
  line-height: 1.35;
}

.checkout-coupon__message[data-type="success"] {
  color: #1f7a45;
}

.checkout-coupon__message[data-type="error"] {
  color: #b42318;
}

.resumen-compra__total-items button {
  background-color: var(--negro);
  color: var(--blanco);
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: var(--tipo-secundaria);
}

#finalizeCheckoutBtn {
  width: 100%;
  padding: 15px 35px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#finalizeCheckoutBtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* ── zoom al pasar el mouse ───────────────────────────── */
.destacada {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

/* recorta la ampliación */
.destacada img {
  transition: transform .45s ease;
}

.destacada:hover img {
  transform: scale(1.15);
  cursor: zoom-in;
}



/* ── flechas laterales ────────────────────────────────── */
.nav-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(226, 206, 168, 0.95);
  color: #fff;
  font-size: 30px;
  transform: translateY(-50%);
  display: none;
  cursor: pointer;
  padding: 0 0 10px;
  z-index: 2;
}

.nav-arrow.prev {
  left: 12px;
}

.nav-arrow.next {
  right: 12px;
}

.destacada:hover .nav-arrow {
  display: block;
}

.image-producto-galeria-fotos {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

div#lens-color-preview-wrapper {
  width: 100%;
  max-width: 500px;
  align-self: center;
  margin-left: 0;
}

/*DASHBOARD CLIENTE*/
.cliente-dashboard-nav {
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: center;
}

.cliente-tab-btn {
  margin-top: 0px;
  text-decoration: none;
  color: var(--blanco);
  font-size: 18px;
  font-weight: 600;
  font-family: var(--tipo-principal);
  width: auto;
  padding: 20px 40px;
  background-color: var(--negro);
}

.cliente-tab-btn.active {
  background-color: var(--acento1);
  color: var(--negro);
}

.cliente-tab-btn:hover {
  cursor: pointer;
}

.cliente-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.cliente-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cuentadash h1 {
  font-size: 36px;
  font-family: var(--tipo-principal);
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--principal);
  gap: 20px;
  line-height: 1.3;
}

.cliente-dashboard-content {
  border: solid 2px var(--principal);
  padding: 35px;
  min-height: 300px;
  min-width: 100%;
  max-width: 1000px;
}

.cliente-tab-content h2 {
  gap: 8px;
  justify-content: flex-start;
  font-size: 18px;
  font-family: var(--principal);
  font-weight: 500;
  color: var(--principal);
}

.cliente-dash-tarjetas {
  margin-top: 30px;
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
}

.tarjeta-cl-dash {
  background-color: var(--blanco);
  padding: 20px;
  width: 40%;
  font-family: var(--tipo-secundaria);
}

.tarjeta-cl-dash h3 {
  font-size: 18px;
  color: var(--principal);
  margin-bottom: 25px;
  font-weight: 500;
  line-height: 1.3em;
}

.tarjeta-cl-dash p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 5px;
  line-height: 1.3em;
  margin-top: 20px;
}

.tarjeta-cl-dash p span {
  font-weight: 600;
}

#up-estado {
  background-color: red;
  color: var(--blanco);
  padding: 5px 10px;
}

.tarjeta-cl-dash a {
  text-decoration: underline;
}

/* --- cart panel --- */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90%;
  height: 100%;
  background: var(--beige);
  box-shadow: -4px 0 12px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
  z-index: 999;
  transition: transform .3s;
}

.cart-panel.hidden {
  transform: translateX(100%);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.cart-body {
  max-width: 100%;
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: .75rem;
  font-family: var(--tipo-secundaria);
  max-width: 100%;
}

.cart-item h4 {
  font-size: 1.2em;
  font-weight: 500;
  color: var(--principal);
}

.cart-item__media {
  display: inline-flex;
  align-self: flex-start;
}

.cart-item__title-link,
.mini-cart__link {
  color: inherit;
  text-decoration: none;
}

.cart-item__title-link:hover,
.mini-cart__link:hover {
  text-decoration: underline;
}

.cart-item img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 0rem;
}

.ci-info {
  display: flex;
  flex-direction: column;
  max-width: 160px;
}

.ci-details {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--negro);
}

button.ci-remove {
  height: 50px;
  align-self: end;
}

strong.ci-price {
  font-size: 14px;
  color: var(--principal);
}

.ci-qty {
  width: 100px;
  /* border: solid 1px; */
  background: var(--blanco);
  padding: 10px;
  display: flex;
  gap: .75rem;
  margin: .25rem 0;
  justify-content: center;
}

.ci-qty input[type="number"]::-webkit-inner-spin-button,
.ci-qty input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ci-qty input[type="number"] {
  -moz-appearance: textfield;
}

/* Quitar flechas en Firefox */

.ci-qty button {
  width: 24px;
  height: 24px;
}

.ci-qty input[type="number"] {
  width: 20px;
  text-align: center;
}

.cart-footer {
  margin-top: auto;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.cart-footer p {
  font-size: 1em;
  margin-bottom: 10px;
  color: var(--principal);
}

.btn--full {
  display: block;
  width: 100%;
  text-align: center;
  padding: .75rem;
  background: var(--principal);
  color: #fff;
  border: 0;
  border-radius: 0;
}

.btn.btn--full {
  background: #d9ff00;
  color: #000;
  border-radius: 5px;
}

.datos-facturacion__formulario {
  background-color: var(--blanco);
  padding: 20px;
  width: 100%;
  max-width: 630px;
}

.form-chec-fila {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px; 
  margin-bottom: 10px; 
  flex-wrap: wrap;
  width: 100%;
}

.datos-facturacion__form__input {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 180px;
  min-width: 0;
  gap: 10px;
  margin-bottom: 15px;
  padding: 0;
}

.datos-facturacion__form__input:has(#calle-envio),
.datos-facturacion__form__input:has(#referencia),
.datos-facturacion__form__input:has(textarea) {
  flex-basis: 100%;
}

.datos-facturacion__form__input.has-checkout-error {
  padding-bottom: 24px;
}

.datos-facturacion__form__input label {
  font-size: 15px;
  font-family: var(--tipo-principal);
  color: var(--principal);
  font-weight: 500;
  line-height: 1.3;
}

#invoice_type,
#doc_type,
#cliente-alterno {
  border: solid 1px;
  width: 100%;
  padding: 10px 15px;
}

.datos-facturacion__form__input input,
.datos-facturacion__form__input select {
  appearance: none;
  background-color: var(--blanco);
  border: solid 1px;
  color: var(--negro);
  font-family: var(--tipo-secundaria);
  font-size: 15px;
  min-height: 44px;
  width: 100%;
  padding: 11px 14px;
}

.datos-facturacion__form__input select {
  background-image: linear-gradient(45deg, transparent 50%, var(--principal) 50%),
    linear-gradient(135deg, var(--principal) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 36px;
}

.datos-facturacion__form__input input:focus,
.datos-facturacion__form__input select:focus,
.datos-facturacion__form__input textarea:focus {
  border-color: var(--principal);
  outline: 2px solid color-mix(in srgb, var(--principal) 18%, transparent);
  outline-offset: 0;
}

button.btn-guardar {
  padding: 15px 35px;
  background: var(--acento2);
}

.item-cart {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 10px;
}

.item-cart img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.tyc {
  display: flex;
}

.metodo-ckeckout-item.active {
  background: var(--acento2);
  border: solid 1px;
}

input[type="checkbox"] {
  appearance: checkbox;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.tcy a {
  color: var(--principal);
  text-decoration: underline;
}

.datos-facturacion__form__input textarea {
  border: solid 1px;
  width: 100%;
  padding: 11px 14px;
  font-family: var(--tipo-secundaria);
  font-size: 15px;
  resize: vertical;
}


.modal-review {
  position: fixed;
  inset: 0;
  background: #0008;
  display: flex;
  justify-content: center;
  align-items: center
}

.modal-review.hidden {
  display: none
}

.modal-review__box {
  background: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  border-radius: 8px;
  position: relative;
  z-index: 99;
}

.rv-close {
  position: absolute;
  top: .5rem;
  right: .7rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer
}

.rv-stars {
  direction: rtl;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.rv-stars input {
  display: none
}

.rv-stars label {
  cursor: pointer;
  color: #ddd;
  transition: .2s
}

.rv-stars input:checked~label,
.rv-stars label:hover,
.rv-stars label:hover~label {
  color: #c2a659
}

.rv-field {
  margin-bottom: 1rem
}

.rv-field input,
.rv-field textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px
}

.rv-status {
  display: block;
  margin-top: .5rem;
  font-size: .9rem
}

.btn-upload {
  display: inline-block;
  padding: .4rem .8rem;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
  font-size: .9rem;
}

#receta-status {
  margin-left: .5rem;
  font-size: .85rem
}

.gracias {
  max-width: 800px;
  margin: auto;
  padding: 2rem 1rem;
  font-family: var(--tipo-principal)
}

.gracias h1 {
  text-align: left;
  margin-bottom: 1rem
}

.gracias__estado {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem
}

.gracias__tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0
}

.gracias__tabla th,
.gracias__tabla td {
  border-bottom: 1px solid #ddd;
  padding: .5rem
}

.center {
  text-align: center
}

.right {
  text-align: right
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: .6rem 1.2rem;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px
}

label.btn-subir-receta {
  background: var(--principal);
  color: var(--blanco);
  padding: 10px 25px;
}

label.btn-subir-receta:hover {
  cursor: pointer;
}

/* ——— Adjuntar receta ——— */
#receta-upload-wrapper {
  margin-top: 12px;
}

/* Oculta el input nativo */
#receta-file {
  position: absolute;
  left: -9999px;
}

/* Botón/label con look sólido oscuro */
.btn-subir-receta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 12px 20px;
  min-height: 44px;

  background: #2f3b41;
  /* gris oscuro (como tu captura) */
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  text-decoration: none;

  transition: background .18s ease, transform .06s ease;
}

/* Hover / Active */
.btn-subir-receta:hover {
  background: #243036;
}

.btn-subir-receta:active {
  transform: translateY(1px);
}

/* Accesible al teclado */
.btn-subir-receta:focus-visible {
  outline: 2px solid #4fb0ff;
  /* foco visible */
  outline-offset: 2px;
}

/* Nombre del archivo al lado del botón */
.receta-file__nombre {
  display: inline-block;
  margin-left: 10px;
  font-size: 14px;
  color: #333;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.receta-preview {
  display: block;
  margin-top: 10px;
  max-width: 180px;
  max-height: 140px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.rx-input {
  display: none;
}

/* ===== FAQ PAGE ===== */
.faq-page {
  padding: 40px 7%;
  flex-direction: column;
  align-items: stretch;
}

.faq-hero {
  text-align: center;
  margin-bottom: 30px;
}

.faq-hero h1 {
  font-size: 42px;
  font-family: var(--tipo-principal);
  color: var(--principal);
  margin-bottom: 10px;
}

.faq-hero p {
  color: var(--texto-base);
  font-family: var(--tipo-texto);
}

.faq-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 700px;
  margin: 20px auto;
}

.faq-search input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.faq-search button {
  background: var(--principal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
}

.faq-group {
  max-width: 900px;
  min-width: 900px;
  margin: 20px auto;
}

.faq-group h2 {
  font-size: 24px;
  font-family: var(--tipo-principal);
  color: var(--principal);
  border-left: 4px solid var(--acento1);
  padding-left: 10px;
  margin-bottom: 25px;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 10px;
  margin: 10px 0;
  background: var(--acento2);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  background: #fff;
}

.faq-answer {
  padding: 0 16px 16px;
  font-family: var(--tipo-texto);
  font-size: 16px;
  color: var(--texto-base);
}

/* Ancla para enlaces # */
.faq-item summary .anchor {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  text-decoration: none;
}

.faq-item summary .anchor::after {
  content: "";
}

.faq-item summary .anchor:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .faq-hero h1 {
    font-size: 28px;
  }

  .faq-search {
    grid-template-columns: 1fr;
  }
}

/* (Opcional) En pantallas pequeñas que ocupe todo el ancho */
@media (max-width: 480px) {
  .btn-subir-receta {
    width: 100%;
  }

  .receta-file__nombre {
    display: block;
    margin: 8px 0 0 0;
    max-width: 100%;
  }
}


/* ====== LIBRO DE RECLAMACIONES ====== */
.libro-page {
  padding: 0 0 60px;
  background: var(--blanco);
}

.libro-legal {
  max-width: 980px;
  margin: 0 auto 20px;
}

.libro-legal p {
  margin-bottom: .6rem;
  font-family: var(--tipo-texto);
  color: var(--texto-base);
}

.libro-form-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 7%;
}

.libro-form {
  background: var(--acento2);
  padding: 24px;
  border: 1px solid #eee;
}

.libro-form__notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.chip {
  display: inline-block;
  padding: 6px 10px;
  background: var(--principal);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
}

.libro-fieldset {
  border: 1px solid #eaeaea;
  background: #fff;
  padding: 16px;
  margin: 14px 0;
}

.libro-fieldset legend {
  padding: 0 6px;
  font-weight: 600;
  color: var(--principal);
  font-family: var(--tipo-principal);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.fgroup {
  display: grid;
  gap: 6px;
}

.fgroup input,
.fgroup select,
.fgroup textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--tipo-texto);
}

.fgroup textarea {
  resize: vertical;
}

.fgroup input:focus,
.fgroup select:focus,
.fgroup textarea:focus {
  outline: none;
  border-color: var(--acento1);
}

.inline {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hidden {
  display: none !important;
}

.err {
  color: #b00020;
  font-size: 12px;
  min-height: 14px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 14px;
}

.checkline input {
  width: 18px;
  height: 18px;
}

.libro-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  border: none;
  padding: 12px 16px;
  cursor: pointer;
}

.btn--principal {
  background: var(--principal);
  color: #fff;
  font-weight: 600;
}


.libro-status {
  font-size: 14px;
  color: var(--texto-base);
}

.libro-modal::backdrop {
  background: rgba(0, 0, 0, .4);
}

.libro-modal {
  border: 0;
  border-radius: 10px;
  padding: 20px;
  max-width: 460px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.libro-legal-note {
  max-width: 980px;
  margin: 10px auto 0;
  padding: 0 7%;
  color: var(--texto-base);
  font-size: 14px;
}




/* ====== GRACIAS (Thank You) ====== */
.gracias {
  --card-bg: #fff;
  --card-bd: #eaeaea;
  --ok: var(--principal);
  --muted: var(--texto-base);
  max-width: 1100px;
  margin: 40px auto;
  padding: 24px;
  background: var(--acento2);
  border: 1px solid #eee;
  border-radius: 12px;
}

/* header bonito con check */
.gracias__head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.gracias__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e9f7ef;
  display: grid;
  place-items: center;
  border: 2px solid #d3efe0;
}

.gracias__icon svg {
  width: 34px;
  height: 34px;
  color: var(--ok);
}

.gracias__title h1 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  color: var(--principal);
  font-family: var(--tipo-principal);
}

.gracias__title p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* acciones */
.gracias__acciones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: 12px;
  padding: 16px;
}

.grid-2-responsive {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr .8fr;
}

@media (max-width: 900px) {
  .grid-2-responsive {
    grid-template-columns: 1fr;
  }
}

/* tabla productos */
.gracias__tabla-wrap {
  overflow: auto;
}

.gracias__tabla {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.gracias__tabla th,
.gracias__tabla td {
  border-bottom: 1px solid #eee;
  padding: 12px;
  text-align: left;
  font-family: var(--tipo-secundaria);
}

.gracias__tabla tfoot td {
  font-weight: 600;
}

.gracias__tabla .center {
  text-align: center;
}

.gracias__tabla .right {
  text-align: right;
}

/* datos en 2 columnas */
.gracias__info {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.gracias__info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--principal);
  font-weight: 600;
  font-family: var(--tipo-principal);
}

.gracias__info p {
  margin: 0;
  color: var(--texto-base);
}

/* Stepper de estado */
.order-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.order-step {
  position: relative;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.order-step:before {
  content: "";
  position: absolute;
  top: 10px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: #e4e4e4;
  z-index: 0;
}

.order-step:first-child:before {
  display: none;
}

.order-step__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 0 auto 6px;
  border: 2px solid #cfcfcf;
  background: #fff;
  z-index: 1;
  position: relative;
}

.order-step.done .order-step__dot {
  background: var(--ok);
  border-color: var(--ok);
}

.order-step.done {
  color: var(--principal);
}

.order-steps .order-step.done+.order-step:before {
  background: var(--ok);
}

/* botones */
.btn-principal,
.btn-secundario,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-principal {
  background: var(--principal) !important;
  color: #fff;
}

.btn-principal:hover {
  filter: brightness(0.95);
}

.btn-secundario {
  background: var(--negro) !important;
  color: #fff;
}

.btn-secundario:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: #fff;
  color: var(--principal) !important;
  border-color: var(--principal) !important;
}

.btn-outline:hover {
  background: var(--principal) !important;
  color: #fff !important;
}

/* utilidades */
.m0 {
  margin: 0;
}

.mt8 {
  margin-top: 8px;
}

.mt16 {
  margin-top: 16px;
}

.mt24 {
  margin-top: 24px;
}




/* Utilidades */
.hidden {
  display: none !important;
}

.hint {
  color: #666;
}

/* Layout */
.pedido-wrapper {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}

/* Verificación */
.verif-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
  background: #fafafa;
}

.verif-card .field {
  margin-bottom: 12px;
}

.verif-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.verif-card input {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.verif-card .btn-consultar {
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.msg-error {
  color: #d00;
  margin-top: 8px;
}

/* Cabecera y bloques */
.pedido-info p {
  margin: 4px 0;
}

.pedido-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.pedido-table th,
.pedido-table td {
  border-bottom: 1px solid #eee;
  padding: 10px 8px;
  text-align: left;
}

.prod-cell .prod-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.prod-specs {
  color: #555;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

/* Totales */
.pedido-totales {
  margin-top: 16px;
}

.pedido-totales p {
  margin: 4px 0;
}

.pedido-totales .total {
  font-size: 18px;
  font-weight: 700;
}

/* Uploader */
#receta-uploader {
  margin-top: 24px;
}

#receta-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#receta-form .btn-subir {
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

#receta-form select,
#receta-library-box select {
  min-width: 200px;
}

#receta-status {
  flex-basis: 100%;
}

.receta-preview {
  margin-top: 12px;
}

.receta-preview img {
  max-width: 360px;
  width: 100%;
  border-radius: 8px;
}

footer {
  margin-bottom: 0;
}

footer {
  bottom: 0;
}

main>*:last-child {
  margin-bottom: 0 !important;
}

#otro-persona {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
}

#footer-checkout {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  color: var(--blanco);
  background-color: var(--negro);
  margin: auto;
}

.info {
  gap: 10px;
  flex-direction: column;
  display: flex;
}

.checkout-field-alert {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  color: #b00020;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

.checkout-field-invalid {
  border-color: #b00020 !important;
}

body.popup-open {
  overflow: hidden;
}

.account-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
}

.account-popup.is-visible {
  display: flex;
}

.account-popup__card {
  width: min(100%, 360px);
  padding: 28px 24px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.account-popup__card h2 {
  margin: 0;
  color: var(--principal);
  font-family: var(--tipo-principal);
  font-size: 30px;
  line-height: 1.2;
}

.account-popup__card p {
  margin: 14px 0 0;
  color: var(--texto-base);
  font-family: var(--tipo-texto);
  line-height: 1.5;
}

.account-popup__actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.account-popup__actions .btn-principal {
  border: none;
}

/* Header megamenu reordered by gender */
.megamenu-item {
  gap: 60px;
}

.mgmenu-column {
  gap: 40px;
  width: 66%;
}

.mgmenu-preview {
  width: 34%;
  max-width: 430px;
  height: auto;
}

.mgmenu-category-list,
.mgmenu-focus-list {
  width: 50%;
}

.mgmenu-focus-list {
  display: none !important;
}

.mgmenu-focus-list.active {
  display: flex !important;
}

.megamenu-item:not(.has-focus-selection) .mgmenu-category-list {
  width: 100%;
  max-width: 360px;
}

.mgmenu-focus-list .mgsubmenu h4 {
  border-bottom: 1px solid var(--texto-base);
  padding-bottom: 0;
  text-decoration: none;
}

.mgmenu-category-list li,
.mgfocus-link {
  cursor: pointer;
}

.mgmenu-category-list li.active {
  color: var(--principal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 7px;
}

.mgmenu-focus-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.mgfocus-link {
  text-decoration: none;
}

.mgfocus-link:hover,
.mgfocus-link:focus-visible,
.mgfocus-link.active {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}

.mgmenu-empty,
.hint {
  color: var(--gris);
}



/* ================================
   OPCIONES COMPACTAS CON TOGGLE
================================ */
.option-card .texto {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.option-head-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.option-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.option-toggle:hover {
  transform: scale(1.05);
}

.option-toggle-icon {
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}

.option-extra {
  display: none;
  margin-top: 2px;
}

.option-card.is-expanded .option-extra {
  display: block;
}

.option-card .desc,
.option-card .hint {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: #666;
}

.option-card .hint {
  margin-top: 6px;
}

/* Mejor compactación móvil */
@media (max-width: 768px) {
  .option-card {
    padding: 12px 14px;
  }

  .option-card .titulo {
    font-size: 14px;
  }

  .option-card .precio {
    font-size: 14px;
  }

  .option-card .desc,
  .option-card .hint {
    font-size: 13px;
  }

  .option-toggle {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
}


.lens-color-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lens-color-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  padding: 4px 2px;
  cursor: grab;
  user-select: none;
  scroll-snap-type: x mandatory;
}

.lens-color-slider.dragging {
  cursor: grabbing;
}

.lens-color-slider img {
  pointer-events: none;
}

.lens-color-slider * {
  user-select: none;
}

.lens-color-slider::-webkit-scrollbar {
  display: none;
}

.lens-slide {
  flex: 0 0 180px;
  scroll-snap-align: start;
}

.lens-slide-card {
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: 0.25s ease;
}

.lens-slide-card:hover {
  transform: translateY(-2px);
}

.lens-slide-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  overflow: hidden;
}

.lens-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lens-slide-info {
  padding: 10px 12px;
  text-align: center;
}

.lens-slide-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #222;
}

#color-luna input[name="color-filtro"]:checked+.lens-slide-card {
  border-color: var(--principal);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.lens-color-slider-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.lens-color-empty {
  padding: 14px;
  border: 1px dashed #ddd;
  border-radius: 12px;
  color: #666;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .lens-slide {
    flex: 0 0 140px;
  }

  .lens-color-slider-wrap {
    gap: 8px;
  }

  .lens-color-slider-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 20px;
  }
}

.producto-nombre-color {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.producto-nombre-color .producto-color {
  font-size: 16px;
  font-family: var(--tipo-texto);
  color: var(--texto-base);
  margin: 0;
}

.paginacion {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.paginacion button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.paginacion button.active {
  background: black;
  color: white;
}

.favorito {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.8;
  cursor: pointer;
  z-index: 10;

}

.favorito i {
  font-size: 24px;
  color: var(--principal);
  transition: all 0.3s ease;
}

.favorito.activo i {
  font-weight: 900;
  /* cambia a sólido */
  color: red;
  transform: scale(1.1);
}

.contenido-favoritos {
  padding: 16px 5%;
}

.titulo-favoritos {
  font-size: 36px;
  font-family: var(--tipo-principal);
  text-align: center;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--principal);
  gap: 20px;
  line-height: 1.3;
}



/* ===== FAVORITOS ===== */


.mensaje-favoritos {
  text-align: center;
  color: #777;
  margin-bottom: 20px;
}

.favoritos-vacio {
  text-align: center;
  padding: 60px 20px;
}

.favoritos-vacio img {
  width: 100px;
  margin-bottom: 20px;
  display: block;
  margin: 0 auto 20px;
}

#vaciarFavoritos {
  display: block;
  margin: 0 auto 20px;
  padding: 10px 18px;
  background: #eee;
  border: none;
  cursor: pointer;
}

.favorito-producto {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);

  transition: all 0.25s ease;
}

.favorito-producto:hover {
  transform: scale(1.04);
}

.favorito-producto i {
  font-size: 26px;
  color: transparent;
  -webkit-text-stroke: 1.5px #111;
  transition: all 0.25s ease;
}

.favorito-producto.activo i {
  color: #111;
  -webkit-text-stroke: 0;
}

.btn-ver-productos {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: black;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* hover tarjetas */
.producto-archive__tienda {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-archive__tienda:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* animación eliminar */
.producto-archive__tienda.eliminando {
  opacity: 0;
  transform: translateX(100px);
}

.responsive-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-favoritos-responsive {
  position: relative;
  display: flex;
}

.btn-favoritos-responsive img {
  width: 50px;
}

.acciones-producto {
  display: flex;
  justify-content: center;
}

.acciones-producto--center {
  display: flex;
  justify-content: center;
}

/* 🔥 BOTÓN PRINCIPAL */
.btn-quick-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #d9ff00;
  color: #111;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}

.btn-quick-buy:hover {
  transform: translateY(-2px);
  opacity: .95;
}

/* ICONO */

.icono-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icono-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

/* 🔹 BOTÓN DERECHO */
.btn-learn-more {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #000;
}

.btn-learn-more:hover {
  text-decoration: underline;
}

.precio-slider {
  position: relative;
  height: 30px;
}

.precio-slider input[type="range"] {
  position: absolute;
  width: 101%;
  top: 7px;
  pointer-events: none;
  appearance: none;
  background: none;
}

.precio-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 14px;
  height: 14px;
  background: black;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
}

.precio-inputs {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.precio-inputs input {
  width: 70px;
  padding: 5px;
  border: 1px solid #ccc;
}

.precio-valores {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 5px;
}

#filtro-precio .filtro-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-track {
  position: absolute;
  height: 4px;
  width: 100%;
  background: #ddd;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 5px;
}

.toggle-icon {
  font-size: 18px;
  font-weight: bold;
}

.coupons-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.coupons-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.coupons-popup__panel {
  position: relative;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 24px;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.coupons-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.coupons-popup__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #757575;
}

.coupons-popup__panel h2 {
  margin: 0 36px 18px 0;
  font-family: var(--tipo-principal);
  font-size: 28px;
  line-height: 1.15;
}

.coupons-popup__list,
.coupon-card {
  display: grid;
  gap: 12px;
}

.coupon-card {
  padding: 16px;
  border: 1px solid #ece7da;
  border-radius: 8px;
  background: #fffdf6;
}

.coupon-card h3,
.coupon-card p {
  margin: 0 0 6px;
}

.coupon-card small {
  color: #666;
}

.coupon-card__value {
  font-weight: 700;
  color: #111;
}

.coupon-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.coupon-card__actions button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #111;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.coupon-card__actions button:last-child {
  background: #111;
  color: #fff;
}

.coupon-card__actions button:disabled {
  opacity: 0.6;
  cursor: default;
}

.banner-tablet-extra {
  display: none;
}

.titulo-con-icono {
    display: flex !important;     
    flex-direction: row !important; 
    align-items: center;
    gap: 10px;
    width: 100%;
}

.titulo-con-icono svg {
    margin-right: 10px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/*---beneficios---*/

.benefits {
  padding: 25px 20px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.benefits__layer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
}

.benefits__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.benefits__icon {
  width: 28px;
  height: 28px;
  fill: #333;      
}

.benefits__text-layer {
  text-align: left;
}

.benefits__title {
  font-size: 14px;
  margin: 0;
  color: #333;
}

.benefits__desc {
  font-size: 12px;
  margin: 2px 0 0;
  color: #777;
}

