
/* =====================
   ESTILO GENERAL
===================== */

.page-ropa{
  background:#171C22;
  color:#fff;
}

.page-ropa .contenido{
  color:#fff;
}

.app-layer{
  padding-top:90px;
}

/* =====================
   FILTRO
===================== */
.filter-bar{
  position: relative;
  margin-top: 0px;
  margin-bottom: 0px;
  top: 0;
  z-index:1;
  display:flex;
  justify-content:flex-end;
  padding:16px 0px;
}

.filter-btn{
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;
  padding:10px 16px;
  color:#fff;
  cursor:pointer;
}

.filter-panel{
  position:absolute;
  top:60px;
  right:20px;
  background:rgba(20,20,22,.9);
  backdrop-filter: blur(20px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:14px;
  display:none;
}

.filter-panel.active{display:block;}

.filter-panel label{
  display:block;
  padding:6px 0;
  cursor:pointer;
}

/* =====================
   SECCIONES
===================== */
.section{
  padding:10px 20px 20px;
}

.section h2{
  font-size:1.4rem;
  margin-bottom:20px;
}

.products{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:18px;
}

/* =====================
   CARD PRODUCTO
===================== */
.product{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  overflow:hidden;
  transition:transform .4s ease, box-shadow .4s ease;
}

.product:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,.4);
}

.product img{
  width:100%;
  aspect-ratio:1/1.2;
  object-fit:cover;
}

.product-info{
  padding:12px;
}

.product-info h3{
  font-size:.95rem;
  margin:0 0 6px;
}

.product-info p{
  font-size:.75rem;
  opacity:.75;
  margin:0 0 10px;
}

.product-info a{
  font-size:.75rem;
  text-decoration:none;
  color:#fff;
  opacity:.9;
}

/* =====================
   PARALLAX SUAVE
===================== */
.section{
  transform: translateZ(0);
}

.page-ropa .hero-carrusel{
  margin-top: 70px; /* ajustá al alto real del menú */
}
.page-ropa .hero-carrusel{
  margin-top: -70px; /* mismo alto del header */
}
.page-ropa .hero-carrusel{
  margin-top: -70px;
}
.filtro- {
  position: relative;
  top: 1px; /* debajo del header */
  z-index: 20;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 10px 14px;

  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
/* ==============================
   BOTÓN AGREGAR – iOS PREMIUM
============================== */
.producto button,
.product-card button,
button[onclick^="addToCart"]{
  width: 100%;
  padding: 14px 16px;
  margin-top: 12px;

  border: none;
  border-radius: 16px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .2px;

  box-shadow:
    0 8px 24px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.12);

  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

/* PRESIÓN iOS */
.producto button:active,
.product-card button:active,
button[onclick^="addToCart"]:active{
  transform: scale(.96);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* HOVER (desktop) */
@media (hover:hover){
  .producto button:hover,
  .product-card button:hover,
  button[onclick^="addToCart"]:hover{
    background: rgba(255,255,255,0.14);
  }
}
/* =========================
   CATEGORÍAS – PREMIUM 2025
========================= */

.categorias {
  width: 100%;
  overflow: hidden;
}



/* Pista infinita */
.track {
  display: flex;
  gap: 24px;
  width: max-content;

  transform: translate3d(0,0,0);
  will-change: transform;

  overflow: visible;
}

/* Item circular */
.item {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;

  opacity: 1;
  transform: translateY(30px) scale(0.9);
}

/* Imagen */
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texto encima */
.item span {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;

  background: rgba(0,0,0,.45);
  /* ❌ backdrop-filter ELIMINADO */
}

/* Hover sutil */
.item:hover img {
  transform: scale(1.08);
  transition: transform .4s ease;
}

/* ✨ Animación entrada (cuando aparece en viewport) */
.item.visible {
  animation: entrada 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes entrada {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.carrusel {
  width: 100%;
  overflow: hidden;
  position: relative;

  isolation: isolate;   /* 🔥 MUY IMPORTANTE */
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
.carrusel,
.carrusel * {
  overscroll-behavior: none !important;
}


/* ===== FULL BLEED REAL ===== */
.full-bleed{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 24px 0;
}
.hero-carrusel{
  position: relative;
  z-index: 1;
}
.categorias{
  position: relative;
  z-index: 5;
}
.categorias{
  padding: 20px 0;
}

.carrusel{
  overflow: hidden;
}

.carrusel .track{
  display: flex;
  gap: 16px;
}

.carrusel .item span{
  font-size: 12px;
  color: #fff;
  opacity: .9;
}
/* ===== CATEGORÍAS – FINAL LIMPIO ===== */

.categorias{
  position: relative;
  z-index: 10;
  margin-top: -40px;
  padding: 24px 0;
}

.carrusel{
  width: 100%;
  overflow: hidden;
}

.track{
  display: flex;
  gap: 24px;
  width: max-content;
}

/* Burbujas */
.item{
  width: 120px;       /* podés probar 110 / 130 */
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
}

/* Imagen llena */
.item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay texto */
.item span{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}
.categorias{
  position: relative;
  z-index: 10;
  padding: 48px 0 24px; /* 👈 CLAVE */
}
.full-bleed{
  overflow: visible;   /* 👈 MUY IMPORTANTE */
}
.carrusel{
  overflow: visible;   /* no hidden */
}

.section{
  padding: 20px 0;
}

.section h2{
  text-align: center;
  margin-bottom: 24px;
}

.section .products{
  padding: 0 20px;
}
/* ===== CONTENEDOR NORMAL (RESET FULL-BLEED) ===== */
.section{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.nueva-coleccion{
  margin-top: 40px;   /* separación de los círculos */
  margin-bottom: 12px; /* cerca del filtro */
  text-align: center;
}

.nueva-coleccion h2{
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 6px 24px rgba(0,0,0,.35);
}

/* =========================
   SECCIONES COLAPSABLES
========================= */

.collapsible{
  margin-bottom: -3px;
}

/* Barra full width */
.section-bar{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 96px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 24px;
  cursor: pointer;

  background-size: cover;
  background-position: center;

  overflow: hidden;
}

/* Vidrio negro SIN blur */
.section-bar-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 0;
}

/* Título */
.section-bar h2{
  position: relative;
  z-index: 1;

  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;

  margin: 0;
}

/* Flecha */
/* Flecha doble premium */
.section-bar .arrow{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -2px;

  opacity: .85;
  transform-origin: center;
  transition: transform .35s ease, opacity .2s ease;
}



/* Contenido oculto */
.section-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
}

/* Abierto */
.collapsible.open .section-content{
  max-height: 999999px; /* suficiente para productos */
}

.collapsible.open .arrow{
  transform: rotate(90deg);
}

/* Padding interno normal */
.section-content .products{
  padding: 24px 20px;
}
/* Estado abierto */
.collapsible.open .arrow{
  transform: rotate(90deg);
  opacity: 1;
}
.section-bar .arrow{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -2px;

  opacity: .85;

  /* CLAVE */
  transform: rotate(0deg);
  transform-origin: center;

  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}

/* Al abrir */
.collapsible.open .arrow{
  transform: rotate(90deg);
  opacity: 1;
}
.collapsible{
  will-change: transform;
}

@keyframes pulseArrow{
  0%,100%{ transform: translateX(0); }
  50%{ transform: translateX(4px); }
}
/* =========================
   FILTRO SIN SALTOS
========================= */

.section.collapsible{
  transition:
    max-height .6s cubic-bezier(.4,0,.2,1),
    opacity .4s ease,
    transform .4s ease;
  will-change: max-height, opacity, transform;
}

/* =========================
   FILTRO – LAYOUT CORRECTO
========================= */

.section.collapsible{
  transition: opacity .35s ease, transform .35s ease;
}

.section.collapsible.filtered-out{
  display: none !important;
}

/* Animación solo cuando aparece */
.section.collapsible.filtered-in{
  animation: fadeUp .35s cubic-bezier(.4,0,.2,1);
}

@keyframes fadeUp{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   FILTRO – ANIMACIÓN PREMIUM
========================= */

.section.collapsible{
  transition:
    opacity .45s cubic-bezier(.4,0,.2,1),
    transform .45s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}

/* estado ocultándose */
.section.collapsible.filter-hiding{
  opacity: 0;
  transform: translateY(32px);
}

/* oculto real */
.section.collapsible.filtered-out{
  display: none !important;
}

/* estado apareciendo */
.section.collapsible.filtered-in{
  animation: filterFadeUp .5s cubic-bezier(.4,0,.2,1);
}

@keyframes filterFadeUp{
  from{
    opacity: 0;
    transform: translateY(24px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px){
  .product{
    margin-bottom: 25px;
  }
}




.product-info p:last-of-type{
  margin-top: 12px;   /* 👈 aire antes del precio */
  margin-bottom: 16px; /* 👈 separación del botón */
  font-size: .85rem;
  font-weight: 700;
  opacity: 1;
}
.product-info{
  line-height: 1.35;
}
.product-info p{
  letter-spacing: .2px;
}
.product-info p{
  font-size: .75rem;
  opacity: .75;
  margin: 0 0 2px;   /* 👈 casi pegadas */
  line-height: 1.25; /* 👈 interlineado corto */
}
.product-info a{
  display: inline-block;
  margin-top: 14px;      /* 👈 separación del botón */
  font-size: .75rem;
  text-decoration: none;
  color: #fff;
  opacity: .6;
  transition: opacity .2s ease, transform .2s ease;
}
.product-info a:hover{
  opacity: 1;
  transform: translateX(2px);
}
.product-info{
  display: flex;
  flex-direction: column;
}
