
.lazy-image { opacity: 0; transition: opacity 0.3s ease !important; } 
.lazy-image.loaded { opacity: 1; }   
  
#adminCard { max-width: 500px; margin-left: auto; width: 100%; height: 100%; margin-right: auto; background: #00000088 !important; }
#logoutAdminWrapper button { font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 14px; padding: 8px 15px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.2); background: #212529; color: #f8f9fa; box-shadow: 0 0 6px rgba(255, 255, 255, 0.2); transition: all 0.3s ease; }

body.container.py-5.modo-oscuro { position: relative !important; border-radius: 40px !important; padding: 40px !important; margin: 0 auto !important; width: 100% !important; max-width: 1300px !important; box-sizing: border-box !important; }
body.container.py-5.modo-oscuro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%),
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(14, 165, 233, 0.2) 0%, transparent 30%);
  backdrop-filter: blur(40px) saturate(220%) brightness(1.2);
  -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(1.2);
  border-radius: 40px;
  z-index: -1;
}

body.container.py-5.modo-oscuro {
  box-shadow: 
    0 50px 120px rgba(0, 0, 0, 0.8),
    0 0 0 2px rgba(255, 255, 255, 0.2),
    inset 0 4px 30px rgba(255, 255, 255, 0.1),
    inset 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
}

.card, .card-giratoria { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); contain: content; padding: 12px; }
.card:hover, .card-giratoria:hover { transform: translateY(-5px); will-change: transform, box-shadow; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

.btn, .panel-grupos, .panel-subcategorias { contain: content; }
.logo, .card img { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
  
.modo-oscuro { color: white; isolation: isolate; }
.modo-claro { color: #333; isolation: isolate; }

.oculta { display: none !important; }

.barra-wrapper { position: relative; }

.barra-navegacion { position: fixed; padding: 8px 10px; gap: 8px; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); display: flex; justify-content: center; box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1); }
.barra-navegacion button { font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 14px; padding: 8px 15px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); color: white; box-shadow: 0 0 6px rgba(255, 255, 255, 0.2); transition: all 0.3s ease; }
.barra-navegacion button:hover { background-color: #fff; color: #333; transform: scale(1.05); }

.panel-grupos { position: fixed; scrollbar-width: none; -webkit-overflow-scrolling: touch; overflow-y: hidden; overflow-x: auto; white-space: nowrap; cursor: grab; cursor: -webkit-grab; max-height: 50vh; overflow-y: auto; left: 0; right: 0; z-index: 999; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); padding: 1px 0; text-align: center; box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1); transition: all 0.3s ease; }
.panel-grupos button { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 600; margin: 6px; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: rgba(255, 255, 255, 0.05); color: white; box-shadow: 0 0 6px rgba(255, 255, 255, 0.2); cursor: pointer; transition: all 0.3s ease; }
.panel-grupos button:hover { background-color: #fff; color: #333; transform: scale(1.05); box-shadow: 0 0 8px none; }

.panel-subcategorias { position: fixed; scrollbar-width: none; -webkit-overflow-scrolling: touch; overflow-y: hidden; overflow-x: auto; white-space: nowrap; cursor: grab; cursor: -webkit-grab; max-height: 50vh; overflow-y: auto; left: 0; right: 0; z-index: 998; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); padding: 1px 0; text-align: center; box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1); transition: all 0.3s ease; }
.panel-subcategorias button { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 600; margin: 6px; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: rgba(255, 255, 255, 0.05); color: white; box-shadow: 0 0 6px rgba(255, 255, 255, 0.2); cursor: pointer; transition: all 0.3s ease; }
.panel-subcategorias button:hover { background-color: #fff; color: #333; transform: scale(1.05); box-shadow: 0 0 8px none; }

.panel-grupos:not(.oculta), .panel-subcategorias:not(.oculta) { transform: translateY(0); opacity: 1; visibility: visible; }
.panel-grupos:not(.oculta) { animation: slideDown 0.3s ease-out; }
.panel-subcategorias:not(.oculta) { animation: slideDown 0.4s ease-out 0.1s both; }
@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 1024px) { .logo { width: 150px; height: 150px; max-height: none; } }


.descripcion-emprendimiento { background-color: rgba(0, 0, 0, 0.5); color: white; padding: 20px; border-radius: 10px; display: inline-block; max-width: 800px; text-align: center; font-size: 16px; line-height: 2.1; box-shadow: 0 0 6px rgba(255,255,255,0.3); }

.btn-volver-arriba { background-color: white; color: black; border: none; font-size: 20px; box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; -webkit-tap-highlight-color: transparent; }
.btn-volver-arriba:hover { background-color: #f0f0f0; transform: scale(1.1); }

.social-icons { margin-top: 40px; display: flex; justify-content: center; gap: 20px; }
.social-icons img { width: 40px; transition: transform 0.3s ease; }
.social-icons img:hover { transform: scale(1.1); filter: drop-shadow(0 0 0 transparent); }
  
.bloque-ubicacion { background-color: rgba(0, 0, 0, 0.5); color: white; padding: 12px 16px; border-radius: 10px; text-align: center; max-width: 600px; margin: 20px auto 0; box-shadow: 0 0 6px rgba(255,255,255,0.3); }

#carrito { position: fixed; bottom: 80px; right: 20px; padding: 15px; border-radius: 10px; width: 320px; z-index: 999; display: none; }
#toggleCarrito { position: fixed; border: black; bottom: 20px; right: 20px; z-index: 1000; padding: 10px 14px; border-radius: 50px; font-weight: bold; box-shadow: 0 0 5px black; cursor: pointer; }
.modo-oscuro #carrito { background-color: rgba(0,0,0,0.85); color: white; border: 1px solid white; box-shadow: 0 0 10px white; }

.productos-container, #productos { margin-top: 30px; content-visibility: auto; contain-intrinsic-size: 1px 5000px; }

.modal-talles-stock input[type="text"],
.modal-talles-stock input[type="number"] { font-size: 14px; }

.panel-grupos,
.panel-subcategorias { scroll-behavior: smooth; }

.panel-grupos:hover,
.panel-subcategorias:hover { cursor: grab; }

#loginToggleBtn { z-index: 997; }
#loginFloatingForm { z-index: 997; }
#loginFloatingForm button { background: rgba(0, 0, 0, 0.8);  color: white; border: 1px solid white; padding: 9px 15px; border-radius: 20px; font-size: 14px; }  

#imgModal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: none;  align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.3s ease; opacity: 0; }
#imgModal.show { display: flex; opacity: 1; }

.card-giratoria { perspective: 1000px; height: 470px; width: 100%; overflow: hidden; background: transparent !important; }

.card-contenedor { position: relative; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; }

.card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; padding: 15px; background-color: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.card-front:hover, .card-back:hover { box-shadow: 0 12px 25px rgba(0,0,0,0.4); }

.card-back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow-y: auto; }
.card-back h5 { color: #ff6b8b; margin-bottom: 15px; font-size: 1.2rem; }
.card-back .precio { font-size: 1.5rem; font-weight: bold; color: #4cd964; margin: 10px 0; }
.card-back .descripcion { font-size: 0.9rem; line-height: 1.5; margin: 10px 0; max-height: 150px; overflow-y: auto; padding: 0 10px; background: rgba(255,255,255,0.05); border-radius: 8px; padding: 10px; }

.btn-girar { position: absolute; right: 10px; width: 35px; height: 35px; border-radius: 50%; background: rgba(255, 255, 255, 0); border: rgba(255, 255, 255, 0); color: white; font-size: 26px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.btn-girar:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); }
.btn-reversa { position: absolute; top: 10px; pointer-events: auto; z-index: 20 !important; right: 10px; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0); border:rgba(255, 255, 255, 0); color: white; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.preservar-saltos { white-space: pre-line; word-wrap: break-word; }
.btn-reversa:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); } 

.fotos-adicionales { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); }
.fotos-adicionales img { transition: transform 0.2s; flex-shrink: 0; width: 60px !important; height: 60px !important; border: 1px solid rgba(255,255,255,0.2); }
.fotos-adicionales img:hover { transform: scale(1.2); z-index: 10; position: relative; }  
