body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
  margin: 0;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

.club-card {
  background: #1e1e1e;
  padding: 20px;
  margin: 10px auto;
  max-width: 400px;
  border-radius: 8px;
  cursor: pointer;
}

.club-card:hover {
  background: #2a2a2a;
}
#club-header {
  text-align: center;
  margin-bottom: 30px;
}

/* ===============================
   CÓDIGO DE DESCUENTO
=============================== */



/* ===============================
   TABLAS TALLES DOBLE
=============================== */

.talles-doble-modal {
  max-width: 900px;
}

.talles-doble-modal .galeria-scroll {
  justify-content: center;
  gap: 20px;
}

.talles-doble-modal .galeria-scroll img {
  max-height: 87vh;
  max-width: 45vw;
}

/* ===============================
   TALLES DOBLE – MOBILE FIX
=============================== */

@media (max-width: 767px) {

  .talles-doble-modal {
    max-width: 95vw;
    padding: 10px;
  }

  .talles-doble-modal .galeria-scroll {
    gap: 16px;
    padding: 10px;
  }

  .talles-doble-modal .galeria-scroll img {
    max-width: 85vw;
    max-height: 70vh;
  }

}

@media (max-width: 767px) {

  .talles-doble-modal .galeria-scroll {
    justify-content: flex-start; /* 🔥 clave */
    padding-left: 12px;
  }

}

    
.descuento-bloque .descuento-input {
  display: flex;
  gap: 12px;
  align-items: center;
}

.descuento-bloque .descuento-input input {
  flex: 1;
}

.descuento-bloque .btn-aplicar {
  background: #8C8C8C;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 22px; /* un poco más horizontal */
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.descuento-bloque .btn-aplicar:hover {
  background: #3C3C3C;
}

.descuento-msg {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}




.descuento-msg.ok { color: #2ecc71; }
.descuento-msg.error { color: #e74c3c; }

@media (max-width: 767px) {
  .descuento-bloque .descuento-input {
    flex-direction: column;
    gap: 10px;
  }

  .descuento-bloque .btn-aplicar {
    width: 100%;
  }
}

/* BOTÓN DESCUENTO APLICADO */
.descuento-bloque .btn-aplicar.ok {
  background: #2ecc71;
  cursor: default;
}

.descuento-bloque .btn-aplicar.ok:hover {
  background: #2ecc71; /* no cambia al hover */
}


.descuento-bloque .btn-aplicar {
  line-height: 50px;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-5px);
}

/* ===============================
   PRODUCT CARD
=============================== */
.product-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: left;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
}

.product-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}

.product-card-thumb .img-main,
.product-card-thumb .img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
  margin: 0;
}

.product-card-thumb .img-hover {
  opacity: 0;
}

@media (hover: hover) {
  .product-card:hover .product-card-thumb .img-hover {
    opacity: 1;
  }
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0f0f0;
  border-radius: 0;
  margin-bottom: 0;
  display: block;
}

.product-card-info {
  padding: 8px 2px 0;
}

.product-card h3 {
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.3;
  color: #111;
  padding: 0 10px;
}

.product-card strong {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0;
  display: block;
  color: #111;
  padding: 8px 10px 2px;
}

/* Precios en card — con promoción */
.card-precios {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 2px;
}

.precio-original-tachado {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.precio-promo-card {
  font-size: 15px;
  font-weight: 700;
  color: #e00000;
}

/* Precios en ficha de producto — con promoción */
.producto-precio-wrapper {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}

.producto-precio-original {
  font-size: 24px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.producto-precio-wrapper .producto-precio {
  color: #e00000;
  margin-bottom: 0;
}

.product-card button {
  display: none;
}

.product-card p {
  display: none !important;
}

#products {
  align-items: start;
}



/* ===============================
   GRID DE CLUBES
=============================== */
#clubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto;
}

/* ===============================
   CARD CLUB
=============================== */
.club-card {
  position: relative;
  height: 180px;
  background: #f2f2f2;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LOGO */
.club-card img {
  max-width: 80%;
  max-height: 80%;
  transition: transform 0.3s ease;
}

/* OVERLAY */
.club-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

/* NOMBRE */
.club-card h2 {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  color: #fff;
  font-size: 16px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 6px 10px;
  font-weight: 600;
}

/* HOVER */
.club-card:hover::after {
  background: rgba(0,0,0,0.0005);
}

.club-card:hover h2 {
  opacity: 1;
}

.club-card:hover img {
  transform: scale(1.25);
}

/* ===============================
   BUSCADOR
=============================== */
#buscador {
  display: block;
  margin: 10px auto 0;
  padding: 12px 16px;
  width: 280px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  color: #000;
  background: #ffeb00;
  text-align: center;
  font-weight: bold;

}



.main-header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 5px;
}

.main-header .logo {
  max-width: 350px;
  margin-bottom: 10px;
}



.main-footer {
  margin-top: 60px;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #eaeaea;
}

.main-footer p {
  font-size: 14px;
  color: #777;
  letter-spacing: 0.5px;
}



/* ===============================
   GRID DE PRODUCTOS
=============================== */
#products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 10px;
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 12px;
}

/* DESKTOP */
@media (min-width: 1024px) {
  #products {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
    padding: 0 40px;
  }
}


.producto-grid {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.galeria-mini img {
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 2px solid transparent;
}

.galeria-mini img.activa {
  border-color: #ffeb00;
}

.imagen-principal img {
  width: 100%;
  max-width: 420px;
}

.guia-talles {
  color: #0071e3;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  margin: 6px 0;
  display: inline-block;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-contenido {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
}

.modal.oculto {
  display: none;
}

/* POPUP ALERTA */
.modal-alerta-contenido {
  text-align: center;
  max-width: 320px;
  padding: 32px 28px 24px;
  animation: popupEntrar 0.2s ease;
}

@keyframes popupEntrar {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-alerta-icono {
  font-size: 46px;
  margin-bottom: 10px;
  line-height: 1;
}

.modal-alerta-msg {
  font-size: 17px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0 0 24px;
  line-height: 1.4;
}

.btn-aceptar-alerta {
  background: #ffeb00;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}

.btn-aceptar-alerta:hover {
  background: #f2dc00;
}


/* ===============================
   PRODUCTO PROLIJO
=============================== */

.producto-grid.prolijo {
  grid-template-columns: 90px 1.2fr 1fr;
  align-items: flex-start;
}

.producto-info {
  background: #fafafa;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.tag1 {
  display: inline-block;
  background: #b9b9b9;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 300px;
  margin-bottom: 1px;
  letter-spacing: 0.3px;
}

.tag2 {
  display: inline-block;
  background: #b9b9b9 ;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 300px;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}



.producto-titulo {
  font-size: 26px;
  margin: 3px 0 5px;
}

.producto-precio {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 5px;
}

.producto-form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.guia-talles {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 14px;
}

.talle-elegido {
  font-size: 14px;
  margin-bottom: 12px;
}

.btn-comprar {
  width: 100%;
  background: #ffeb00;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-comprar:hover {
  background: #f2dc00;
}

.beneficios {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  font-size: 16px;
  color: #444;
}

.producto-disclaimer {
  margin-top: 12px;
  padding: 10px 12px;
  background: #ffcccc;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #000;
}

.producto-tiempo {
  margin-top: 10px;
  padding: 10px 12px;
  background: #88E788;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #000;
}
.personalizala {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  font-size: 16px;
  color: #444;
}

.beneficios li {
  margin-bottom: 6px;
}

.select-talle {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
  background: #fff;
}


/* ===============================
   MODAL GU�A DE TALLES
=============================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.oculto {
  display: none;
}

.modal-contenido {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
}

.modal-contenido img {
  width: 100%;
  display: block;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
}


.galeria-modal {
  max-width: 90vw;
}

.galeria-scroll {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  padding: 20px;
}
.galeria-scroll img {
  max-height: 70vh;        /* nunca m�s alto que la pantalla */
  max-width: 90vw;         /* nunca m�s ancho que la pantalla */
  width: auto;
  height: auto;
  object-fit: contain;     /* CLAVE */
  border-radius: 12px;
  flex-shrink: 0;
  cursor: pointer;
  background: #000;        /* bordes prolijos si sobra espacio */
}

.ver-mas {
  height: 70px;
  border-radius: 8px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}

.titulo-personaliza {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 10px;
  color: #444;
}



/* ===============================
   TOP BAR (VOLVER + CARRITO)
=============================== */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
}

.btn-volver {
  background: #f2f2f2;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-volver:hover {
  background: #e6e6e6;
}

.btn-carrito {
  text-decoration: none;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#carrito-count {
  background: #ffeb00;
  color: #000;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}


/* ===============================
   CARRITO � ESTILO DROP
=============================== */

.carrito-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 24px;
}

/* GRID: izquierda info / derecha productos */
.carrito-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.carrito-col-productos {
  position: sticky;
  top: 24px;
}

/* T�TULO */
.carrito-titulo {
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0;
}

/* BLOQUES */
.carrito-bloque {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.carrito-bloque h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* TEXTO VAC�O */
.carrito-lista p {
  color: #777;
  font-size: 15px;
}

/* ITEMS DEL CARRITO */
.carrito-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.carrito-item:last-child {
  border-bottom: none;
}

.carrito-info strong {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.carrito-precio {
  font-weight: 700;
  font-size: 16px;
}

/* BOT�N ELIMINAR */
.btn-eliminar {
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
}

.btn-eliminar:hover {
  background: #ffecec;
  color: #c0392b;
}

/* GRUPO DE RADIOS */
.radio-group {
  display: flex;
  align-items: center;
  gap: 170px;          /* espacio natural */
  margin-bottom: 16px;
}

/* MOBILE: uno abajo del otro */
@media (max-width: 767px) {
  .radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* RADIO INDIVIDUAL */
.radio-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;     /* 🔥 CLAVE */
}

.radio-line input[type="radio"] {
  margin: 0;
  transform: translateY(-1px); /* ajuste óptico real */
}

/* INPUTS */
.carrito-bloque input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.carrito-bloque input:focus {
  outline: none;
  border-color: #000;
}


/* RESUMEN */
.carrito-resumen {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.total-linea {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  margin-bottom: 10px;
}

/* CTA */
.btn-finalizar {
  width: 100%;
  background: #ffeb00;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-finalizar:hover {
  background: #f2dc00;
}
.radio-line {
  white-space: nowrap;
}


/* FIX overflow inputs */
*, *::before, *::after {
  box-sizing: border-box;
}


/* ===============================
   TOAST CARRITO (MÁS GRANDE)
=============================== */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #111;
  color: #fff;
  padding: 18px 22px;              /* 🔥 MÁS GRANDE */
  border-radius: 18px;             /* 🔥 MÁS PREMIUM */
  display: flex;
  align-items: center;
  gap: 16px;                       /* 🔥 MÁS AIRE */
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  z-index: 9999;
  animation: toastIn 0.35s ease;
  min-width: 260px;                /* 🔥 ANCHO MÍNIMO */
}

.toast.oculto {
  display: none;
}

.toast-icon {
  font-size: 28px;                 /* 🔥 ÍCONO MÁS GRANDE */
}

.toast-texto {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.toast-texto strong {
  font-size: 16px;                 /* 🔥 TEXTO PRINCIPAL */
  font-weight: 700;
}

.toast-texto span {
  font-size: 14px;
  color: #ccc;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.datos-club {
  background: #88E788;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: #333;
}

.datos-retiro {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: #333;
}


.datos-retiro strong {
  display: block;
  margin-bottom:5px;
  margin-top: 8px;
}

.datos-retiro span {
  color: #555;
  font-size: 13px;
}


.total-final {
  font-size: 22px;
  font-weight: 800;
  color: #000;
  border-top: 2px solid #f0f0f0;
  padding-top: 14px;
  margin-top: 6px;
  margin-bottom: 18px;
}

.envio-linea {
  font-size: 15px;
  color: #666;
}

/* ===============================
   CARRITO MOBILE: grid + resumen sticky
=============================== */
@media (max-width: 767px) {
  .carrito-grid {
    display: flex;
    flex-direction: column;
  }

  /* productos primero en mobile */
  .carrito-col-productos { order: 0; }
  .carrito-col-info      { order: 1; }

  .carrito-col-productos {
    position: static;
  }

  .carrito-resumen {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    z-index: 500;
    padding: 18px 20px 110px; /* 110px cubre el círculo + bottom-nav */
    box-shadow: 0 -6px 28px rgba(0,0,0,0.13);
    margin-bottom: 0;
  }

  .carrito-container {
    padding-bottom: 260px;
  }

  .total-linea {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .total-final {
    font-size: 19px;
    margin-bottom: 14px;
    padding-top: 10px;
  }

  .btn-finalizar {
    padding: 14px;
    font-size: 15px;
  }
}

/* ===============================
   BOTTOM NAV – MERCADO LIBRE STYLE
=============================== */

.bottom-nav {
  display: none;
}

@media (max-width: 767px) {

  .top-bar {
    display: none;
  }

  body {
    padding-bottom: 90px;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #fff;
    border-top: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 9999;
  }

  /* BOTONES LATERALES */
  .nav-side {
    background: none;
    border: none;
    text-decoration: none;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
  }

  /* BOTÓN CARRITO CENTRAL */
  .nav-cart {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #000;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    top: -18px;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  /* CARRITO ACTIVO (CON PRODUCTOS) */
  .nav-cart.activo {
    background: #ffeb00;
  }

  /* CONTADOR */
  .nav-cart em {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #000;
    color: #fff;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
  }
}


/* ===============================
   ANIMACIÓN CARRITO MOBILE
=============================== */

@keyframes cartPop {
  0%   { transform: translateX(-50%) scale(1); }
  30%  { transform: translateX(-50%) scale(1.25); }
  60%  { transform: translateX(-50%) scale(0.95); }
  100% { transform: translateX(-50%) scale(1); }
}

.nav-cart.animar {
  animation: cartPop 0.45s ease;
}


/* ===============================
   MOBILE – CLUBES (2 COLUMNAS)
=============================== */
@media (max-width: 767px) {
  #clubs {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 16px;
    margin: 30px auto;
  }

  .club-card {
    height: 150px;
    border-radius: 16px;
  }

  .club-card img {
    max-width: 75%;
    max-height: 75%;
  }
}
/* ===============================
   MOBILE – PRODUCTOS CATÁLOGO
=============================== */
@media (max-width: 767px) {
  #products {
    gap: 10px 8px;
    padding: 0 10px;
    margin: 16px auto;
  }

  .product-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #f0f0f0;
  }

  .product-card h3 {
    font-size: 13px;
    min-height: unset;
    margin: 4px 0 2px;
  }

  .product-card strong {
    font-size: 13px;
    font-weight: 700;
  }
}


@media (max-width: 767px) {
  .main-footer {
    margin-top: 30px;
    padding: 16px 0 10px;
    font-size: 13px;
    color: #999;
  }
}
@media (max-width: 767px) {
  #clubs {
    margin: 20px auto 10px;
  }
}
@media (max-width: 767px) {
  .club-card {
    background: #f4f4f4;
  }

  .club-card h2 {
    font-weight: 700;
    letter-spacing: 0.2px;
 }

 @media (max-width: 767px) {
  .main-header .logo {
    max-width: 260px;   /* antes ~350 */
    margin-bottom: 8px;
  }

  .main-header p {
    font-size: 14px;
    margin-top: 6px;
  }
}




/* ===============================
   MOBILE – PRODUCTO ESTILO MERCADO LIBRE
=============================== */
@media (max-width: 767px) {

  /* grid general pasa a columna */
  .producto-grid,
  .producto-grid.prolijo {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px;
  }

  /* ===============================
     GALERÍA
  =============================== */

  .imagen-principal {
    order: 1;
    display: flex;
    justify-content: center;
  }

  .imagen-principal img {
    max-width: 100%;
    border-radius: 16px;
    background: #f5f5f5;
    padding: 0px;
  }

  .galeria-mini {
    order: 2;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .galeria-mini img,
  .ver-mas {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
  }

  /* ===============================
     INFO PRODUCTO
  =============================== */

  .producto-info {
    order: 3;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .badge-drop {
    font-size: 14px;
    padding: 6px 12px;
    margin-bottom: 10px;
  }

  .producto-titulo {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .producto-precio {
    font-size: 34px;
    margin: 10px 0 14px;
  }

  /* ===============================
     FORM
  =============================== */

  .producto-form input,
  .select-talle {
    font-size: 15px;
  }

  .btn-comprar {
    font-size: 16px;
    padding: 16px;
    border-radius: 14px;
    margin-top: 10px;
  }
}

}


/* ===============================
   USER BOX DESKTOP
=============================== */

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-box-desktop {
  display: flex;
  align-items: center;
}

/* Pill unificada: foto + nombre + separador + Salir */
.user-pill-full {
  display: flex;
  align-items: center;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  gap: 10px;
  transition: background .15s;
}

.user-pill-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 999px;
  padding: 2px 4px 2px 2px;
  transition: background .15s;
}

.user-pill-info:hover {
  background: rgba(0,0,0,0.06);
}

#user-photo-desktop {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

#user-name-desktop {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-sep {
  color: #ccc;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}

.pill-carrito {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  transition: opacity .15s;
}

.pill-carrito:hover {
  opacity: 0.65;
}

/* Botón salir — dentro de la pill */
#logout-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
  transition: color .15s;
}

#logout-btn:hover {
  color: #000;
}

/* Botón iniciar sesión desktop */
#login-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}

#login-btn:hover {
  background: #333;
}

/* ===============================
   MOBILE USER BOX
=============================== */

@media (max-width: 767px) {

  .nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-user img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
  }

  .nav-user button {
    background: #111;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-user button:hover {
    background: #333;
  }

}

/* PERFIL */

.perfil-header{
text-align:center;
padding:0px 20px;
}

.perfil-header img{
width:90px;
height:90px;
border-radius:50%;
object-fit:cover;
margin-bottom:10px;
}

.perfil-header h2{
font-size:20px;
font-weight:600;
margin-bottom:1px;
}

.perfil-pedidos{
max-width:700px;
margin:auto;
padding:1px;
}

/* ===============================
   PEDIDOS – PERFIL
=============================== */

.pedido-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* Header: ID + fecha / badge */
.pedido-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 10px;
}

.pedido-id {
  display: block;
  font-size: 15px;
  font-weight: 800;
  font-family: "Courier New", monospace;
  color: #111;
}

.pedido-fecha {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

.pedido-estado-badge {
  background: #f0f0f0;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Productos */
.pedido-productos {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 0;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pedido-producto {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pedido-prod-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pedido-prod-nombre {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.pedido-prod-detalle {
  font-size: 12px;
  color: #888;
}

.pedido-prod-precio {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

/* Step timeline */
.pedido-steps {
  display: flex;
  align-items: flex-start;
  margin: 18px 0 14px;
}

.pedido-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}

.pedido-step.done .step-dot,
.pedido-step.current .step-dot {
  background: #111;
}

.pedido-step.current .step-dot {
  box-shadow: 0 0 0 3px rgba(0,0,0,.12);
}

.step-label {
  font-size: 10px;
  color: #bbb;
  text-align: center;
  line-height: 1.3;
}

.pedido-step.done .step-label,
.pedido-step.current .step-label {
  color: #111;
  font-weight: 700;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #ddd;
  margin-top: 5px;
}

.step-line.done {
  background: #111;
}

/* Fecha entrega */
.pedido-entrega-row {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.pedido-entrega-row strong {
  color: #111;
}

/* Seguimiento */
.pedido-seguimiento {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.codigo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  padding: 10px 14px;
  border-radius: 10px;
}

.codigo-icono {
  font-size: 18px;
}

.codigo-texto {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  font-family: "Courier New", monospace;
  letter-spacing: .5px;
  color: #111;
}

.btn-copiar {
  background: #111;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.btn-copiar:hover {
  background: #333;
}

.btn-seguimiento {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  padding: 11px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.btn-seguimiento:hover {
  background: #333;
}

.pedido-disclaimer {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
  line-height: 1.5;
}

.perfil-loader{
text-align:center;
padding:40px;
font-size:16px;
color:#666;
}
.perfil-loader::after{
content:"";
display:inline-block;
width:16px;
height:16px;
border:2px solid #ccc;
border-top:2px solid black;
border-radius:50%;
margin-left:10px;
animation:spin 1s linear infinite;
}

@keyframes spin{
0%{transform:rotate(0)}
100%{transform:rotate(360deg)}
}

.codigo-box{
display:flex;
align-items:center;
justify-content:space-between;
background:#f5f5f5;
padding:10px 12px;
border-radius:10px;
margin:6px 0;
}

.codigo-texto{
font-weight:600;
letter-spacing:1px;
}

.btn-copiar{
border:none;
background:black;
color:white;
padding:6px 10px;
border-radius:6px;
font-size:12px;
cursor:pointer;
}

.perfil-wsp{
background:#f5f5f5;
padding:14px;
border-radius:12px;
margin-bottom:18px;
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
font-size:14px;
}

.btn-wsp{
display:flex;
align-items:center;
gap:6px;
background:#25D366;
color:white;
padding:8px 12px;
border-radius:8px;
text-decoration:none;
font-weight:600;
}

.btn-wsp img{
width:18px;
height:18px;
}


.admin-card{

background:white;
padding:20px;
border-radius:10px;
margin-bottom:20px;
box-shadow:0 4px 10px rgba(0,0,0,.05);

}

.admin-card input{

padding:8px;
border:1px solid #ccc;
border-radius:6px;
margin-right:8px;

}

.admin-card button{

background:black;
color:white;
border:none;
padding:8px 14px;
border-radius:6px;
cursor:pointer;

}


.admin-topbar{
  max-width:1100px;
  margin:20px auto 12px;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.admin-topbar h1{
  margin:0;
}

#admin-search{
  width:320px;
  max-width:100%;
  padding:10px 14px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:14px;
}

#admin-pedidos{
  max-width:1100px;
  margin:0 auto 30px;
  padding:0 20px;
}

.admin-card{
  background:#fff;
  border-radius:14px;
  padding:16px;
  margin-bottom:14px;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  display:grid;
  grid-template-columns: 1.2fr 1.4fr 0.9fr;
  gap:16px;
}

.admin-card h3{
  margin:0 0 10px;
  font-size:18px;
}

.admin-col{
  min-width:0;
}

.admin-col-main,
.admin-col-products,
.admin-col-track{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.admin-producto{
  background:#f7f7f7;
  border-radius:10px;
  padding:10px;
  font-size:13px;
}

.admin-col-track input{
  width:100%;
  padding:10px 12px;
  border:1px solid #ccc;
  border-radius:10px;
  font-size:14px;
}

.admin-col-track button{
  background:#000;
  color:#fff;
  border:none;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:600;
}

.admin-empty{
  background:#fff;
  border-radius:14px;
  padding:20px;
  text-align:center;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  color:#666;
}

@media (max-width: 900px){
  .admin-card{
    grid-template-columns:1fr;
  }

  .admin-topbar{
    flex-direction:column;
    align-items:stretch;
  }

  #admin-search{
    width:100%;
  }
}

.perfil-empty{
text-align:center;
padding:40px;
background:#fff;
border-radius:14px;
box-shadow:0 6px 18px rgba(0,0,0,.08);
color:#555;
font-size:15px;
}

/* ===============================
   INDEX – TOP BAR DESKTOP
=============================== */

.index-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.index-topbar-cart {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  background: #f5f5f5;
  padding: 7px 14px;
  border-radius: 20px;
}

.index-topbar-cart:hover {
  background: #eee;
}

.index-topbar #login-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.index-topbar #login-btn:hover {
  background: #333;
}

.index-topbar #user-photo-desktop {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #f0f0f0;
}

.index-topbar #user-photo-desktop:hover {
  border-color: #ccc;
}

@media (max-width: 767px) {
  .index-topbar { display: none; }
}

