/*layout.css*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, 
body{
  height: 100%; /* ⚡ clave para que 100vh funcione correctamente */
}

/* Empuje del contenido para que no quede tapado */
body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
  font-family: var(--font-ample);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--gray-light-color);
}

/* Footer abajo siempre */
footer.footer-main{
  margin-top: auto;
}


/* ===========================
   FLOATING ACTION BUTTONS
   =========================== */
.btn-whatsapp,
.btn-scroll-top{
  position: fixed;
  right: var(--fab-right);
  z-index: 9999;                /* arriba del resto */
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: transform .2s ease, opacity .2s ease;
}

/* WhatsApp (abajo) */
.btn-whatsapp{
  bottom: var(--fab-wa-bottom);
  background-color: #25D366;
  color: #fff;
}
.btn-whatsapp:hover{ background-color: #1ebe5d; }

/* ScrollTop (arriba del WhatsApp) */
.btn-scroll-top{
  bottom: calc(var(--fab-wa-bottom) + var(--fab-size) + var(--fab-gap));
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 1px solid #ccc;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.btn-scroll-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.btn-scroll-top:hover{ background-color: var(--secondary-color); }

/* ===========================
   BOTTOM NAV (mobile)
   =========================== */
.bottom-nav{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--dark-color);
  border-top: 1px solid #ddd;
  display: none; /* se mostrará solo en mobile */
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.bottom-item {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: rgb(132, 132, 132);	
  background: none;
  border: none;
  outline: none;
}

.bottom-item i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 3px;
}

.bottom-item.active,
.bottom-item:hover {
  color: var(--primary-color);
}

.cart-badge {
  position: absolute;
  top: 5px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Popup sin espacio extra */
.vm-msg-alert {
  padding: 0 !important;
  background: transparent;   /* si querés que no tenga fondo blanco fuera de la imagen */
  border-radius: 12px;
  overflow: hidden;
}

/* La imagen ocupa todo el ancho del popup */
.vm-msg-alert-img {
  margin: 0 !important;
  width: 100%;
  height: auto;
}

/* Botón X arriba a la derecha */
.vm-msg-alert-close {
  position: absolute !important;
  top: 8px;
  right: 8px;
  color: #ffffff !important;
  font-size: 1.6rem !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
}

/* ===========================
   LOADER GLOBAL (FULLSCREEN)
   =========================== */
.page-loader{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(2px);
}

.page-loader__box{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.page-loader__text{ font-size:14px; opacity:.7; }

.loader-logo{
  position: relative;
  width: 40px;
  height: 40px;
}

.loader-logo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
}

/* ✅ Ajuste fino de la LLAVE dentro de la TUERCA */
.loader-key{
  left: 50%;
  top: 50%;
  width: 50%;
  height: 50%;
  object-fit: contain;

  transform: translate(-0%, -0%) scale(.43); /* ⬅️ más chica */
  inset: auto !important;
}

.loader-gear{
  animation: loader-rotate 1.05s linear infinite;
  transform-origin: 50% 50%;
}


@keyframes loader-rotate{ to { transform: rotate(360deg); } }

.app-wrapper{
  flex: 1 1 auto;             /* ocupa todo el alto disponible */
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* El main siempre ocupa el espacio restante */
.site-main{
  min-height: calc(100vh - var(--header-total-h));
  flex: 1 0 auto;
}

/* el footer queda abajo dentro del wrapper */
.app-wrapper > footer.footer-main{
  margin-top: auto;
}

/* Popup más controlable */
.byc-swal-popup{
  max-width: 980px;
  border-radius: 14px;
  overflow: hidden;
}

/* Layout principal */
.byc-gallery{
  display: flex;
  gap: 0;
  width: 100%;
  min-height: 60vh;
  max-height: 80vh;          /* clave: no crecer infinito */
}

/* Columna imágenes */
.byc-gallery-left{
  flex: 1 1 58%;
  background: #fff;
  padding: 14px;
}

/* Columna atributos */
.byc-gallery-right{
  flex: 1 1 42%;
  background: #fff;
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  min-width: 280px;
}

.byc-gallery-title{
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px 0;
}

/* Scroll SOLO en atributos */
.byc-gallery-attrs{
  overflow: auto;
  padding-right: 10px;
  border-left: 1px solid #eee;
  padding-left: 14px;
  flex: 1 1 auto;
}

/* Slick imagen */
#swal-slick img{
  width: 100%;
  height: 62vh;             /* se controla en desktop */
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

/* Lista atributos (bullets alineados, wrap prolijo) */
.byc-swal-popup .attr-list{
  list-style: none;      /* quitamos bullet nativo */
  margin: 0;
  padding: 0;
}

.byc-swal-popup .attr-list li{
  position: relative;
  padding-left: 18px;    /* columna fija para el punto */
  margin: 6px 0;
  line-height: 1.35;
}

.byc-swal-popup .attr-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.35;
}
.attr-empty{
  opacity: .75;
}
.no-img{
  padding: 24px;
  opacity: .7;
}

/* ✅ Forzar alineación izquierda en atributos (pisar estilos globales) */
.byc-swal-popup .byc-gallery-right,
.byc-swal-popup .byc-gallery-attrs{
  text-align: left !important;
}

/* ✅ Lista: bullets alineados y texto SIEMPRE desde la misma columna */
.byc-swal-popup .attr-list{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.byc-swal-popup .attr-list li{
  display: block !important;
  position: relative !important;
  padding-left: 18px !important;
  margin: 6px 0 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: normal !important;
}

.byc-swal-popup .attr-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.35;
}

/* ======= MÓVIL: apilar ======= */
@media (max-width: 768px){
  .byc-gallery{
    flex-direction: column;
    min-height: auto;
    max-height: 85vh;
  }
  .byc-gallery-left{
    padding: 10px;
  }
  #swal-slick img{
    height: 42vh;           /* imagen arriba */
    max-height: 45vh;
  }
  .byc-gallery-right{
    padding: 10px;
    min-width: auto;
  }
  .byc-gallery-attrs{
    border-left: 0;
    padding-left: 0;
    max-height: 32vh;       /* atributos abajo con scroll */
  }
}

/* Evitar que la línea base tipográfica desplace los iconos flotantes. */
.btn-whatsapp > i,
.btn-scroll-top > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin: 0;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.btn-whatsapp > i::before,
.btn-scroll-top > i::before {
  display: block;
  line-height: 1;
  vertical-align: 0;
}


/* Visor de imágenes compartido: mismos ID, clases y navegación de la galería. */
.swal2-popup.byc-swal-popup {
 width: min(980px, calc(100vw - 24px)) !important;
 max-width: 980px;
 max-height: calc(100dvh - 24px);
 padding: 0 !important;
 border: 1px solid #e1e7ef;
 border-top: 4px solid #ff7900;
 border-radius: 18px;
 background: #f7f9fc;
 box-shadow: 0 20px 64px rgba(20, 43, 71, .2);
 display: flex !important;
 flex-direction: column;
 overflow: hidden;
}
.byc-swal-popup .swal2-title {
 flex: 0 0 auto;
 margin: 0;
 padding: 20px 64px 18px 22px;
 border-bottom: 1px solid #e1e7ef;
 color: #244d7c;
 font-size: 1.35rem;
 font-weight: 700;
 line-height: 1.3;
 text-align: left;
}
.byc-swal-popup .swal2-close {
 position: absolute;
 top: 12px;
 right: 14px;
 width: 36px;
 height: 36px;
 border: 0;
 border-radius: 10px;
 background: #eaf0f6;
 color: #244d7c;
 font-size: 1.8rem;
 line-height: 1;
 box-shadow: none;
 z-index: 5;
 display: flex;
 align-items: center;
 justify-content: center;
}
.byc-swal-popup .swal2-close:hover { background: #fff0e2; color: #e66a00; transform: none; }
.byc-swal-popup .swal2-close:focus-visible { outline: 2px solid #244d7c; outline-offset: 2px; }
.byc-swal-popup .swal2-html-container { margin: 0; padding: 0; min-height: 0; overflow: auto; scrollbar-width: thin; }
.byc-swal-popup .byc-gallery {
 display: grid;
 grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
 gap: 16px;
 min-height: 0;
 max-height: none;
 padding: 18px;
 box-sizing: border-box;
}
.byc-swal-popup .byc-gallery-left {
 min-width: 0;
 padding: 10px;
 border: 1px solid #e1e7ef;
 border-radius: 14px;
 background: #fff;
 overflow: hidden;
}
.byc-swal-popup .byc-gallery-right { min-width: 0; min-height: 0; padding: 4px 0; background: transparent; }
.byc-swal-popup .byc-gallery-title {
 margin: 0 0 12px;
 color: #244d7c;
 font-size: 1rem;
 line-height: 1.4;
}
.byc-swal-popup .byc-gallery-title::after { content: ''; display: block; width: 34px; height: 3px; margin-top: 7px; border-radius: 3px; background: #ff7900; }
.byc-swal-popup .byc-gallery-attrs {
 padding: 14px;
 border: 1px solid #e1e7ef;
 border-radius: 12px;
 background: #fff;
 color: #526174;
 font-size: .9rem;
 line-height: 1.6;
 max-height: min(48dvh, 420px);
 scrollbar-width: thin;
 scrollbar-color: #bbc9d9 transparent;
 overflow-wrap: anywhere;
}
.byc-swal-popup .attr-list li::before { color: #ff7900; }
.byc-swal-popup .attr-empty, .byc-swal-popup .no-img { opacity: 1; color: #7b8797; font-size: .9rem; }
.byc-swal-popup #swal-slick img { height: min(56dvh, 500px); max-height: none; object-fit: contain; }
.byc-swal-popup #swal-slick .slick-arrow {
 position: absolute;
 top: 50%;
 width: 36px;
 height: 36px;
 padding: 0;
 border: 1px solid #dce5ef;
 border-radius: 50%;
 background: rgba(255, 255, 255, .96);
 color: #244d7c;
 box-shadow: 0 3px 12px rgba(36, 77, 124, .1);
 display: flex !important;
 align-items: center;
 justify-content: center;
 transform: translateY(-50%);
 font-size: 15px;
 z-index: 2;
}
.byc-swal-popup #swal-slick .slick-prev { left: 6px; }
.byc-swal-popup #swal-slick .slick-next { right: 6px; }
.byc-swal-popup #swal-slick .slick-arrow::before { content: none; }
.byc-swal-popup #swal-slick .slick-arrow i { display: flex; line-height: 1; }
.byc-swal-popup #swal-slick .slick-arrow:hover { background: #fff3e8; color: #e66a00; border-color: #ffc999; }
.byc-swal-popup #swal-slick .slick-arrow:focus-visible { outline: 2px solid #244d7c; outline-offset: 2px; }
.byc-swal-popup #swal-slick .slick-arrow.slick-disabled { opacity: .35; cursor: default; }
@media (max-width: 768px) {
 .swal2-popup.byc-swal-popup { border-radius: 16px; }
 .byc-swal-popup .swal2-title { padding: 16px 54px 14px 16px; font-size: 1.1rem; }
 .byc-swal-popup .swal2-close { top: 9px; right: 10px; width: 32px; height: 32px; }
 .byc-swal-popup .byc-gallery { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
 .byc-swal-popup .byc-gallery-left { padding: 8px; border-radius: 12px; }
 .byc-swal-popup #swal-slick img { height: min(36dvh, 300px); }
 .byc-swal-popup .byc-gallery-right { padding: 0; }
 .byc-swal-popup .byc-gallery-title { margin-bottom: 9px; font-size: .94rem; }
 .byc-swal-popup .byc-gallery-attrs { max-height: 24dvh; padding: 12px; font-size: .84rem; }
}


/* Visor compacto: el título se obtiene de la card que abrió la imagen. */
.swal2-popup.byc-swal-popup { width: min(860px, calc(100vw - 24px)) !important; }
.byc-swal-popup .swal2-title { padding: 15px 60px 13px 18px; font-size: 1.15rem; overflow-wrap: anywhere; }
.byc-swal-popup .swal2-close { top: 8px; right: 10px; }
.byc-swal-popup .byc-gallery { gap: 12px; padding: 12px; align-items: start; }
.byc-swal-popup .byc-gallery-left { padding: 6px; }
.byc-swal-popup .byc-gallery-right { align-self: start; padding: 0; }
.byc-swal-popup .byc-gallery-title { margin-bottom: 9px; }
.byc-swal-popup .byc-gallery-attrs { flex: 0 1 auto; padding: 12px; max-height: min(44dvh, 360px); }
.byc-swal-popup #swal-slick img { height: min(44dvh, 360px); }
@media (max-width: 768px) {
 .byc-swal-popup .swal2-title { padding: 13px 50px 11px 14px; font-size: 1rem; }
 .byc-swal-popup .swal2-close { top: 7px; right: 8px; }
 .byc-swal-popup .byc-gallery { gap: 10px; padding: 10px; }
 .byc-swal-popup #swal-slick img { height: min(30dvh, 240px); }
 .byc-swal-popup .byc-gallery-attrs { padding: 10px; max-height: 22dvh; }
 .byc-swal-popup .byc-gallery-title { margin-bottom: 7px; }
}

/* Controles del visor: aislar las reglas globales de flechas de los carruseles. */
.byc-swal-popup #swal-slick .slick-arrow {
 width: 36px !important;
 height: 36px !important;
 border: 1px solid #dce5ef !important;
 background: rgba(255, 255, 255, .96) !important;
}
.byc-swal-popup #swal-slick .slick-arrow i { font-size: 15px !important; color: #244d7c !important; }
.byc-swal-popup #swal-slick .slick-arrow:hover { background: #fff3e8 !important; border-color: #ffc999 !important; }

/* Fotos y videos comparten el mismo marco, sin reproducción ni descarga automática. */
.byc-swal-popup #swal-slick video {
 display: block;
 width: 100%;
 height: min(44dvh, 360px);
 max-width: 100%;
 object-fit: contain;
 background: #17191d;
 border-radius: 8px;
}
@media (max-width: 768px) {
 .byc-swal-popup #swal-slick video { height: min(30dvh, 240px); }
}

.byc-swal-popup #swal-slick .byc-video-embed { display:block; width:100%; height:min(44dvh,360px); border:0; border-radius:8px; background:#17191d; }
.byc-swal-popup .byc-media-error { font-size:.8rem; margin:8px 0 0; color:#667589; }
@media (max-width:768px) { .byc-swal-popup #swal-slick .byc-video-embed { height:min(30dvh,240px); } }

/* YouTube: área mínima de controles y reproducción explícita en pantallas táctiles. */
.byc-swal-popup #swal-slick .byc-video-embed { min-height: 200px; }
.byc-swal-popup .byc-youtube-play { display: none; }
@media (max-width:768px) {
 .byc-swal-popup .byc-youtube-play {
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; min-height:44px; margin-top:8px; padding:10px 12px;
  border:0; border-radius:9px; background:#244d7c; color:#fff;
  font-size:.9rem; font-weight:600; line-height:1.3; cursor:pointer;
 }
 .byc-swal-popup .byc-youtube-play:disabled { opacity:.6; cursor:wait; }
 .byc-swal-popup .byc-youtube-play:focus-visible { outline:2px solid #ff7900; outline-offset:2px; }
}
