/* ===========================
   UESG – Colección 1 (mejorado)
   =========================== */

:root{
  --c1-primary:#111111;
  --c1-accent:#eee5bc;         /* Amarillo UESG para botones */
  --c1-ink:#1c1c1c;
  --c1-shadow:rgba(0,0,0,.12);

  /* Cuadros */
  --tile-corner-color:#ffffff; /* color del marco/esquinas */
  --tile-corner-gap:18px;      /* separación del marco del borde */
  --tile-corner-len:44px;      /* longitud de cada línea de esquina */
  --tile-bg-dark:#3f3f3f;      /* placeholder oscuro (cuando no hay imagen) */
  --tile-bg-light:#cfcfcf;     /* placeholder claro opcional */
}

/* ---------- Cabecera ---------- */
.page-header.portfolio-three .theme-heading h1{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 42px; 
  font-weight: 900;
  color: #fff;
  position: relative;
  display: inline-block;
}

/* URBANS en naranja */
.page-header.portfolio-three .theme-heading h1 strong {
  color: #ff8a00;
}

/* Fondo de sombra gris */
.page-header.portfolio-three .theme-heading h1::before {
  content: "UESG URBANS";   /* Texto de fondo */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 64px;          /* Más grande */
  color: rgba(255,255,255,0.1); /* Gris claro bajito */
  z-index: -1;              /* detrás */
  width: 100%;
}
.page-header .heading-shape{ letter-spacing:.06em; }

/* ---------- Subtítulo y breadcrumb ---------- */
.theme-heading p{ max-width:820px; margin:10px auto 0; }
.breadcrumb-box .breadcrumb{ background:transparent; margin-bottom:0; }

/* =======================================================
   BOTONERA: categorías (Todos, Hombre, Mujer, Niño, Niña)
   ======================================================= */
.mixitup-btn{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:10px; margin:12px 0 26px; text-align:center;
}


/* =======================================================
   GRID DE PRODUCTOS – Cuadros con marco en esquinas
   ======================================================= */
.mix-default .work-gallery{ padding:8px; }

/* Limpio el “card” del template para que el cuadro tome el control */
.work-gallery .theme-hover{
  position:relative; overflow:visible; background:transparent; box-shadow:none;
}

/* El cuadro en sí */
.work-gallery figure{
  position:relative; display:block; width:100%; margin:0; overflow:hidden;
  aspect-ratio:1 / 1;                     /* CUADRADO por defecto */
  background:var(--tile-bg-dark);         /* fondo si no carga imagen */
  border-radius:0;                         /* sin redondeo para un look más técnico */
}

/* Variantes de tamaño (opcional) */
.work-gallery figure.tile--wide{ aspect-ratio:16 / 9; }   /* bloque ancho */
.work-gallery figure.tile--tall{ aspect-ratio:3 / 4; }    /* bloque alto */
.work-gallery figure.tile--light{ background:var(--tile-bg-light); } /* placeholder claro */

/* La imagen ocupa todo el cuadro */
.work-gallery figure > img{
  position:absolute; inset:0; width:100%; height:100% !important;
  object-fit:cover; transform:translateZ(0);
  transition:transform .35s ease, filter .35s ease;
}
.work-gallery:hover figure > img{ transform:scale(1.03); filter:contrast(1.02) saturate(1.02); }

/* Marco con 8 gradients (4 esquinas) */
.work-gallery figure::after{
  content:""; position:absolute; inset:var(--tile-corner-gap); pointer-events:none; z-index:2;
}

/* Overlay de fancybox por encima del marco */
.work-gallery figcaption{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.45); opacity:0; transition:opacity .25s ease; z-index:3;
}
.work-gallery:hover figcaption{ opacity:1; }



/* Etiqueta de categoría (opcional) */
.work-gallery [data-cat]::after{
  content:attr(data-cat);
  position:absolute; top:10px; left:10px; z-index:4;
  font-size:.72rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
  color:#111; background:rgba(255,210,0,.92);
  padding:4px 8px; border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,.12);
}

/* Fallback si el navegador no soporta aspect-ratio */
@supports not (aspect-ratio: 1 / 1){
  .work-gallery figure{ height:0; padding-top:100%; }
  .work-gallery figure.tile--wide{ padding-top:56.25%; }  /* 16/9 */
  .work-gallery figure.tile--tall{ padding-top:133.33%; } /* 3/4 */
  .work-gallery figure > img{ position:absolute; top:0; left:0; height:100% !important; }
}

/* ---------- Paginación ---------- */
.pagination ul{ display:flex; gap:8px; justify-content:center; }
.pagination ul li a{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:36px; height:36px; padding:0 10px; border-radius:8px;
  border:1px solid #e6e6e6; color:#111; transition:background .2s, border-color .2s;
}
.pagination ul li a:hover{ background:#f7f7f7; border-color:#dcdcdc; }

/* Suavizado para MixItUp */
.mix{ will-change:transform, opacity; }

/* Pequeños fixes */
.container .theme-heading h1{ margin-bottom:6px; }
.container .theme-heading h3{ margin-top:0; }


.sticket_a{

position: fixed;
   
    width: 96.5%;
    box-shadow: 0px 10px 12px rgba(220, 20, 60, 0.6);
    background: rgba(220, 20, 60, 0.5);
    color: #ffff;
    font-weight: bolder;
    padding: 3px 24px;
    text-align: center;
    bottom: -1px;
    font-size: 21px;
    letter-spacing: 13px;
    font-family: cursive;
    }



.sticket_d{

position: fixed;
    width: 96.5%;
    box-shadow: 0px 10px 12px rgba(54, 168, 109, 0.6);
    background: rgba(54, 168, 109, 0.5);
    color: #ffff;
    font-weight: bolder;
    padding: 3px 24px;
    text-align: center;
    bottom: -1px;
    font-size: 21px;
    letter-spacing: 13px;
    font-family: cursive;
    };


    /* ===== Ajuste general del grid ===== */
.work-gallery figure {
  width: 100%;
  height: 474px; /* Altura exacta del cuadrado */
  overflow: hidden;
  position: relative;
  border-radius: 6px; /* opcional: suaviza bordes */
  background-color: #f4f4f4; /* fondo si la imagen no llena todo */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== Ajuste de imagen ===== */
.work-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* llena todo el espacio sin deformarse */
  object-position: center; /* centra la imagen */
  transition: transform 0.3s ease-in-out;
}


/* ==== CARD UESG MODERNA ==== */
.card-uesg {
  width: 100%;
  max-width: 350px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin: 20px auto;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-uesg:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.card-img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-status {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-status.disponible {
  color: #d0fdd7;
}

.card-status.agotado {
  color: #d32f2f;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.selector-prenda {
  margin-bottom: 15px;
}

.selector-prenda label {
  display: block;
  font-weight: 600;
  margin-bottom: 1px;
  color: #333;

}

.selector-prenda select {
  width: 80%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}

.btn-pedido {
  background: #25d366;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-pedido:hover {
  background: #1ebd5a;
  transform: scale(1.05);
}

.btn-pedido i {
  font-size: 18px;
}


/* ======== GALERÍA FLEXIBLE PARA CARDS UESG ======== */
#mixItUpColeccion1 {
  display: flex;
  flex-wrap: wrap;             /* Permite que pasen a nueva fila si no caben */
  justify-content: center;     /* Centra las cards horizontalmente */
  align-items: stretch;        /* Igual altura visual */
  gap: 25px;                   /* Espacio entre cards */
  padding: 20px;
  box-sizing: border-box;
}



/* Responsividad: en pantallas pequeñas, una por fila */
/* =======================
   RESPONSIVIDAD AVANZADA
   ======================= */

/* Imagen dentro de la card */
.card-img {
  width: 100%;              /* ocupa el 100% del ancho de la card */
  height: auto;             /* ajusta la altura automáticamente */
  max-height: 410px;        /* límite máximo para evitar estirarse */
  object-fit: cover;
  object-position: center;
}

/* === Tablets (pantallas medianas) === */
@media (max-width: 992px) {
  .card-uesg {
    max-width: 300px;
  }
  .card-img {
    max-height: 360px;
  }
}

/* === Celulares (pantallas pequeñas) === */
@media (max-width: 768px) {
  #mixItUpColeccion1 {
    flex-direction: column;
    align-items: center;
  }
  .card-uesg {
    width: 90%;
    max-width: 380px;
  }
  .card-img {
    max-height: 320px;
  }
}

/* === Teléfonos muy pequeños === */
@media (max-width: 480px) {
  .card-uesg {
    width: 95%;
    margin: 10px auto;
  }
  .card-body {
    padding: 15px;
  }
  .card-title {
    font-size: 15px;
  }
  .card-img {
    max-height: 280px;
  }
}

/* === hasta aqui termina resposibidad === */

.btn-pedido[disabled] {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  color: #666;
}


/* Botones según estado */
.btn-pedido {
  background: #5e6464;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-pedido.disponible {
  background: #5e6464; /* Verde */
  margin: 5px;
}

.btn-pedido.pocas {
  background: #fbc02d; /* Amarillo */
  cursor: not-allowed;
}

.btn-pedido.agotado {
  background: #d32f2f; /* Rojo */
  cursor: not-allowed;
}

.btn-pedido:hover:not(:disabled) {
  background: #1ebd5a;
  transform: scale(1.05);
}



/* Estados visuales */
.card-status {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-status.disponible {
  color: #00b16a; /* Verde */
}

.card-status.pocas {
  color: #fbc02d; /* Amarillo */
}

.card-status.agotado {
  color: #d32f2f; /* Rojo */
}

/* Botones */
.btn-pedido {
  background: #25d366;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-pedido.disponible {
  background: #5e6464; /* Verde */
}

.btn-pedido.pocas {
  background: #fbc02d; /* Amarillo */
  cursor: not-allowed;
}

.btn-pedido.agotado {
  background: #d32f2f; /* Rojo */
  cursor: not-allowed;
}

.btn-pedido:hover:not(:disabled) {
  background: #1ebd5a;
  transform: scale(1.05);
}

#carrito-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  font-size: 22px;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
}

#carrito-btn:hover {
  background: #1ebd5a;
  transform: scale(1.05);
}

#carrito-count {
  background: #fff;
  color: #25d366;
  font-weight: bold;
  font-size: 15px;
  padding: 3px 8px;
  border-radius: 50%;
  margin-left: 6px;
}
.botones-card {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Botón WhatsApp */
.btn-pedido {
  background: #25d366;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-pedido:hover {
  background: #1ebd5a;
  transform: scale(1.05);
}

/* Botón carrito */
.btn-carrito {
  background: #5e6464;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-carrito:hover {
  background: #000;
  transform: scale(1.05);
}

/* Botones deshabilitados */
.btn-pedido[disabled],
.btn-carrito[disabled] {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  color: #666;
}

.btn-ver-carrito {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  position: relative;
  cursor: pointer;
}

#carrito-count {
  background: #ff6b00;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: -8px;
  right: -10px;
}
/* ===== AGRUPAR LAS ÚLTIMAS IMÁGENES EN DISPLAY FLEX ===== */

