/* QUITA el límite a partir de 1300px */
@media (min-width: 1300px) {
  .product-dtls-nav {
    max-height: none;
  }
}

@media (min-width: 1024px) {
  .gallery-desktop {
    display: block !important;
  }

  .gallery-mobile {
    display: none !important;
  }
}

@media (max-width: 1023.98px) {
  .gallery-desktop {
    display: none !important;
  }

  .gallery-mobile {
    display: block !important;
  }
}

.product-dtls-slider img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .product-dtls-wrapper {
    align-items: stretch !important;
  }

  .product-dtls-wrapper > * {
    min-height: 0;
  }

  .gallery-desktop .product-dtls-nav {
    min-height: 360px;
  }

  .product-dtls-nav .thumb {
    height: 118px;
    /* antes 150px */
    margin: 4px 0;
    /* antes 6px 0 */
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    user-select: none;
  }

  .product-dtls-nav .slick-list {
    will-change: height;
    overflow: hidden;
    /* lo controla JS igualando a la altura del main */
  }
}

/* Estética miniatura */
.product-dtls-nav .thumb img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 8px;
  pointer-events: none;
}

.product-dtls-nav .thumb.slick-current {
  outline: 2px solid #111;
  border-radius: 8px;
}

/* Cursores drag cuando Slick está activo */
.product-dtls-nav .slick-list.draggable {
  cursor: grab;
}

.product-dtls-nav .slick-list.draggable:active {
  cursor: grabbing;
}

@media (max-width: 1023px) and (min-width: 700px) {
  .product-dtls-slider img {
    max-height: 420px;
    object-fit: contain;
  }
}

/* ===== Móvil: centrar ===== */
@media (max-width: 1023.98px) {
  .product-dtls-wrapper {
    width: 100%;
    max-width: 750px;
    padding: 0 1rem;
    margin: 0 auto;
  }

  .product-dtls-slider,
  .product-dtls-nav-mobile {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-dtls-nav-mobile .slick-slide {
    margin: 0 7px;
  }

  .product-dtls-nav-mobile .slick-list {
    margin: 0 -7px;
  }
}

.mask-item {
  pointer-events: none;
}

@media (min-width: 1600px) {
  .product-dtls-slider,
  .product-dtls-slider .slick-list {
    min-height: 640px;
  }
}

@media (min-width: 1900px) {
  .product-dtls-slider,
  .product-dtls-slider .slick-list {
    min-height: 720px;
  }
}

.product-dtls-wrapper .mask-item,
.gallery-desktop .mask-item,
.gallery-mobile .mask-item,
.product-dtls-slider .mask-item {
  background: rgba(0, 0, 0, 0.09) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.dark .product-dtls-wrapper .mask-item,
.dark .gallery-desktop .mask-item,
.dark .gallery-mobile .mask-item,
.dark .product-dtls-slider .mask-item {
  background: rgba(0, 0, 0, 0.09) !important;
}

.gallery-mobile.slick-initialized .slick-slide {
  margin: 0 8px;
}

.gallery-mobile.slick-initialized .slick-list {
  margin: 0 -8px;
}

/* Altura fija ya viene por tus clases h-[250px] */

.cnt_iconos img {
  transition: filter 0.2s ease;
}

/* En modo oscuro, vuelve blancos los SVG monocromo */
.dark .cnt_iconos img {
  filter: brightness(0) invert(1);
}

/* Switch dentro del body (arriba derecha) */
.body-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 9999px;
  transition: background 0.2s;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.switch .slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 9999px;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.switch input:checked + .slider {
  background: #16a34a;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Selección de baldosas */
.finish-tile.is-selected {
  border-color: #000;
  box-shadow: 0 0 0 2px #000 inset;
}

.group-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Grid más ancho */
#acabadosAccordion .faq-body .grid {
  grid-template-columns: repeat(auto-fit, 92px) !important;
  /* antes 76px */
  gap: 12px !important;
  justify-content: start;
}

/* Tile más amplio */
#acabadosAccordion .finish-tile {
  width: 92px !important;
  /* antes 76px */
  padding: 5px 5px 4px !important;
  background: transparent;
}

/* Miniatura más grande y cuadrada */
#acabadosAccordion .finish-tile img {
  width: 86px !important;
  /* antes 70px */
  height: 86px !important;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
  margin: 0 auto;
}

/* Texto sin elipsis, puede saltar de línea */
#acabadosAccordion .finish-tile small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  /* + legible */
  line-height: 1.15;
  max-width: 88px;
  /* acompasa al tile */
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  text-align: center;
}

/* Menos aire en el body del panel */
#acabadosAccordion .faq-body {
  padding: 8px 8px 4px !important;
}

/* Desktop: también más grandes */
@media (min-width: 1024px) {
  #acabadosAccordion .finish-tile {
    width: 96px !important;
  }

  #acabadosAccordion .finish-tile img {
    width: 80px !important;
    /* antes 60px */
    height: 80px !important;
  }

  #acabadosAccordion .finish-tile small {
    max-width: 92px;
    font-size: 12px;
  }
}

.relative .fondo-detalle-producto {
  background: #ffffff;
}

/*
.product-color input[type="radio"]:checked + span {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  transform: scale(1.05);
}
*/

/* ====== Ancho controlado para los modales (sin tocar HTML) ====== */
#modal-presupuesto.quick-view-popup,
#modal-asesor.quick-view-popup {
  /* Centrado */
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;

  /* Tamaño elástico: entre 360px y 900px, preferencia 92vw */
  width: clamp(360px, 92vw, 900px) !important;

  /* Rompe el max-w-[720px]! de Tailwind del HTML */
  max-width: 900px !important;
}

/* Evita que el contenido “empuje” el contenedor */
#modal-presupuesto .quick-view-popup-inner,
#modal-asesor .quick-view-popup-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Separación vertical cómoda entre bloques del formulario */
#modal-presupuesto form > * + *,
#modal-asesor form > * + * {
  margin-top: 16px;
}

.product-dtls-nav .thumb img[src*="img/transparent.png"] {
  background: transparent !important;
}





/* ===== MODAL: Cómo imprimir una ficha técnica ===== */

/* Ancho y centrado (independiente de Tailwind) */
#modal-ficha-tecnica.quick-view-popup{
  position: fixed;
  z-index: 9999999;
  top: 80px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: clamp(320px, 86vw, 760px) !important;
  max-width: 760px !important;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 60px rgba(0,0,0,.25);
  overflow: hidden;
}

/* Limitar altura y permitir scroll interno */
#modal-ficha-tecnica .quick-view-popup-inner{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

/* Cabecera centrada con icono arriba */
#modal-ficha-tecnica .modal-head{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;                 /* espacio icono/título */
  padding: 36px 24px 30px;   /* más aire arriba y abajo */
  border-bottom: 1px solid #E5E7EB;
}
#modal-ficha-tecnica .modal-icon{
  font-size: 36px;
  line-height: 1;
  color: #6B7280;            /* gris medio */
  margin-top: 8px;
  margin-bottom: 14px;
}
#modal-ficha-tecnica .modal-title{
  margin: 0;
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
}

/* Cuerpo */
#modal-ficha-tecnica .modal-body{
  padding: 20px 24px 24px;
}

/* Vídeo 16:9 (un poco menos alto) */
#modal-ficha-tecnica .video-16x9{
  position: relative;
  width: 100%;
  padding-top: 40%;          /* antes 56.25% */
  background: #000;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  max-width: 685px;
  margin: 0 auto 18px;
}
#modal-ficha-tecnica .video-16x9 > video,
#modal-ficha-tecnica .video-16x9 > iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Texto explicativo */
#modal-ficha-tecnica .steps{ font-size: 15px; line-height: 1.6; }
#modal-ficha-tecnica .steps p{ margin: 0 0 8px; }
#modal-ficha-tecnica .steps .label{ font-weight: 600; }

/* Acciones */
#modal-ficha-tecnica .modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
}




/* Colores de texto nítidos */
#modal-ficha-tecnica{
  color: #111827; /* base */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: none !important;
  filter: none !important;
}
/* Títulos / labels en negro */
#modal-ficha-tecnica .modal-title,
#modal-ficha-tecnica .steps .label,
#modal-ficha-tecnica .steps p strong{
  color: #111827 !important; /* gray-900 */
  font-weight: 600;
}
/* Párrafos en gris medio */
#modal-ficha-tecnica .steps p,
#modal-ficha-tecnica .steps li,
#modal-ficha-tecnica .modal-body{
  color: #4B5563 !important; /* gray-600 */
  font-weight: 400;
}

/* Dark mode (opcional) */
.dark #modal-ficha-tecnica.quick-view-popup{ background:#0f172a; color:#fff; }
.dark #modal-ficha-tecnica .modal-head{ border-color: rgba(255,255,255,.12); }
.dark #modal-ficha-tecnica .video-16x9{ border-color: rgba(255,255,255,.12); }

.dark #modal-ficha-tecnica .modal-title,
.dark #modal-ficha-tecnica .steps .label,
.dark #modal-ficha-tecnica .steps p strong{ color:#fff !important; }
.dark #modal-ficha-tecnica .steps p,
.dark #modal-ficha-tecnica .steps li,
.dark #modal-ficha-tecnica .modal-body{ color:#CBD5E1 !important; }

/* Móviles muy pequeños */
@media (max-width: 480px){
  #modal-ficha-tecnica .video-16x9{ max-width: 100%; padding-top: 54%; }
}


/* ——— Alinear el ancho del texto y botones al del vídeo ——— */
#modal-ficha-tecnica .modal-body .steps,
#modal-ficha-tecnica .modal-actions{
  max-width: 685px;          /* igual que el .video-16x9 */
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* En móviles: que usen todo el ancho como el vídeo */
@media (max-width: 480px){
  #modal-ficha-tecnica .modal-body .steps,
  #modal-ficha-tecnica .modal-actions{
    max-width: 100%;
  }
}
