@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url(https://db.onlinewebfonts.com/c/af8360322ea08b2e685007f3951b7c8f?family=Zico+Display+H%2BL+Inline);
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');

@font-face {
  font-family: 'EurostileExtended';
  src: url('../../fonts/EurostileExtended-Black.woff2') format('woff2'),
      url('../../fonts/EurostileExtended-Black.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main, .catalogo-container {
  flex: 1;
}

.titulo_drop {
  text-align: center;       /* Centra el texto horizontalmente */
  width: 100%;              /* Ocupa todo el ancho disponible */
  margin-bottom: 30px;      /* Separación de los productos */
  font-size: 2rem;          /* Tamaño de fuente, opcional */
  font-weight: 700;         /* Negrita */
  color: #222;              /* Color del texto */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.filtros-catalogo {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 30px 15px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.filtros-catalogo select,
.filtros-catalogo button {
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.filtros-catalogo button {
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filtros-catalogo button:hover {
  background-color: #2980b9;
}

.sidebar-filtros button:hover {
  background-color: #2980b9;
}

/* Desktop: no mostramos el botón */
.btn-toggle-filtros { display: none; }

@media (max-width: 768px) {

  /* Botón para mostrar/ocultar filtros */
  .btn-toggle-filtros{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #2d2d2d;
    background: #111;
    color: #fff;
    cursor: pointer;
    margin-bottom: 10px;
    font-family: Poppins, sans-serif;
  }

  .btn-toggle-filtros .flecha{
    transition: transform .2s ease;
  }

  /* Flecha girada */
  .btn-toggle-filtros.abierto .flecha{
    transform: rotate(180deg);
  }
}

.catalogo-container {
  display: flex;
  gap: 40px;
  padding: 30px 40px;
  align-items: flex-start;
}

.sidebar-filtros {
  width: 240px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-filtros h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
}

/* Categorías como lista vertical */
.sidebar-filtros .filtro-categorias,
.sidebar-filtros .filtro-orden {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-filtros label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.sidebar-filtros select,
.sidebar-filtros button {
  display: none;
}

/* Estilo para los botones de categoría */
.sidebar-filtros .categoria-btn,
.sidebar-filtros .orden-btn {
  padding: 10px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s;
  color: #333;
  font-weight: bold;
}

.sidebar-filtros .categoria-btn:hover,
.sidebar-filtros .orden-btn:hover {
  background-color: #dcdcdc;
}

.sidebar-filtros .categoria-btn.active,
.sidebar-filtros .orden-btn.active {
  background-color: #b1b1b1;
  color: #333;
}

/* ================================
   Filtro de Temporada (Nuevo)
   ================================ */
.filtro-temporada {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filtro-temporada label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 16px;
}

.filtro-temporada .categoria-btn {
  padding: 10px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
  color: #333;
  font-weight: bold;
}

.filtro-temporada .categoria-btn:hover {
  background-color: #dcdcdc;
}

.filtro-temporada .categoria-btn.active {
  background-color: #b1b1b1;
  color: #333;
}

/* Productos */
.contenedor__productos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.link__producto {
  text-decoration: none;
  color: inherit;
}

.card__producto {
  background-color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card__producto:hover {
  transform: scale(1.03);
}

.contenedor_imagen {
  width: 100%;
  height: 300px; /* Altura fija uniforme */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

.contenedor_imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 5px;
  margin: 0;
  padding: 0;
}

.info__producto {
  padding: 15px;
  text-align: center;
}

.nombre__producto {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0;
  color: #222;
}

.precio__producto {
  font-size: 16px;
  color: #222222;
  font-weight: bold;
}

.sin-resultados {
  font-size: 1.3rem;
  text-align: center;
  color: #777;
  grid-column: 1 / -1;
}

footer {
    background-color: #111;
    color: #eee;
    padding: 40px 0 10px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1 1 250px;
    margin: 20px 0;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 2px solid #444;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    font-size: 14px;
    color: #bbb;
    margin: 8px 0;
}

.footer-section i {
    margin-right: 8px;
}

.social-icons a {
    color: #eee;
    margin-right: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1da1f2;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 13px;
    color: #888;
}

/* Estilos responsivos para catálogo */
@media (max-width: 1024px) {
  .catalogo-container {
    flex-direction: column;
    padding: 20px;
  }

  .sidebar-filtros {
    width: 100%;
    position: relative;
    top: auto;
    max-height: none;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .contenedor__productos {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .filtros-catalogo {
    flex-direction: column;
    gap: 10px;
    padding: 20px 10px;
  }

  .sidebar-filtros {
    padding: 15px;
  }

  .contenedor__productos {
    gap: 15px;
  }

  .card__producto {
    border-radius: 10px;
  }

  .nombre__producto {
    font-size: 16px;
  }

  .precio__producto {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .contenedor__productos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .link__producto {
    width: 100%;
  }

  .card__producto {
    width: 100%;
    max-width: 100%;
  }

  .contenedor_imagen {
    height: auto;
  }

  .contenedor_imagen img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

.card__producto {
  width: 100%;
  margin: 0 auto;
  max-width: none;
}

/* Mejoras adicionales para responsive móvil y tablet */
@media (max-width: 1024px) {
  .contenedor__productos {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .catalogo-container {
    padding: 15px 10px;
  }

  .card__producto {
    max-width: 100%;
  }

  .contenedor_imagen {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .catalogo-container {
    padding: 10px 5px;
  }

  .contenedor_imagen {
    height: 220px;
  }

  .nombre__producto {
    font-size: 15px;
  }

  .precio__producto {
    font-size: 14px;
  }

  .filtros-catalogo select,
  .filtros-catalogo button {
    font-size: 14px;
    padding: 8px 12px;
  }

  .sidebar-filtros {
    padding: 10px;
  }
}

/* === FIX HEADER EN CATALOGO === */
header {
  position: relative;
  z-index: 1000;
  box-shadow: none !important;
}

/* Fondo oscuro igual que en index */
body {
  display: block; /* restaura el flujo normal */
}

/* Mantener el fondo claro solo del área del catálogo */
.catalogo-container {
  background-color: #f9f9f9 !important;
  position: relative;
  z-index: 10;
  padding-top: 40px; /* pequeño margen para evitar superposición */
}

main {
  background-color: transparent !important;
}

/* ===========================
   MOBILE DEFINITIVO: sin hueco + botón compacto
   =========================== */
@media (max-width: 768px) {

  /* Evita overflow horizontal por algún padding/gap */
  body, .catalogo-container { overflow-x: hidden; }

  /* Wrapper */
  .filtros-mobile-wrap{
    width: 100%;
    margin: 0 0 12px 0;
  }

  /* Botón más chico */
  .btn-toggle-filtros{
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #2d2d2d;
    background: #111;
    color: #fff;

    font-size: 14px;
    line-height: 1;
    cursor: pointer;

    margin: 0; /* IMPORTANTÍSIMO: no agrega huecos raros */
  }

  .btn-toggle-filtros span{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-toggle-filtros .flecha{
    font-size: 14px;
    flex-shrink: 0;
    transition: transform .2s ease;
  }

  .btn-toggle-filtros.abierto .flecha{
    transform: rotate(180deg);
  }

  /* CERRADO = no ocupa espacio */
  .sidebar-filtros{
    display: none !important;     /* mata max-height/opacity anteriores */
    margin: 0 !important;         /* mata margin-bottom del @media 1024 */
    padding: 0 !important;        /* si querés que cerrado sea 0 espacio real */
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  /* ABIERTO = se muestra y vuelve a tu estilo */
  .sidebar-filtros.abierto{
    display: flex !important;
    flex-direction: column;
    gap: 25px;

    padding: 15px !important;
    margin: 10px 0 0 0 !important;

    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
  }
}

/* Extra compacto para pantallas muy chicas */
@media (max-width: 480px){
  .btn-toggle-filtros{ font-size: 13px; padding: 7px 9px; }
  .btn-toggle-filtros .flecha{ font-size: 13px; }
}

/* =========================================
   CATÁLOGO - REDISEÑO FINAL VULKR
========================================= */

.catalogo-hero {
  max-width: 900px;
  margin: 42px auto 10px;
  padding: 0 20px;
  text-align: center;
}

.catalogo-hero span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #777;
}

.catalogo-hero h1 {
  margin: 0;
  font-size: 2.4rem;
  color: #111;
}

.catalogo-hero p {
  margin-top: 10px;
  color: #666;
  font-size: 0.98rem;
}

.catalogo-container {
  max-width: 1250px;
  margin: 0 auto 70px;
  padding: 35px 22px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  background: #f8f8f8 !important;
}

.filtros-mobile-wrap {
  width: 100%;
}

.sidebar-filtros {
  width: 100%;
  position: sticky;
  top: 110px;
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-filtros h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #111;
}

.sidebar-filtros label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.filtro-categorias,
.filtro-temporada,
.filtro-orden {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-filtros .categoria-btn,
.sidebar-filtros .orden-btn {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f4f4f4;
  color: #333;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-filtros .categoria-btn:hover,
.sidebar-filtros .orden-btn:hover {
  background: #e9e9e9;
  transform: translateX(2px);
}

.sidebar-filtros .categoria-btn.active,
.sidebar-filtros .orden-btn.active {
  background: #111;
  color: #fff;
}

.contenedor__productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 24px;
  padding: 0;
}

.link__producto {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card__producto {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card__producto:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

.contenedor_imagen {
  position: relative;
  width: 100%;
  height: 320px;
  background: #f2f2f2;
  overflow: hidden;
}

.contenedor_imagen img,
.imagen__producto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  transition: transform 0.35s ease;
}

.card__producto:hover .contenedor_imagen img {
  transform: scale(1.04);
}

.badge-descuento {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.info__producto {
  padding: 16px;
  text-align: center;
}

.categoria-producto {
  display: inline-block;
  margin-bottom: 8px;
  color: #777;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.nombre__producto {
  min-height: 44px;
  margin: 0 0 10px;
  font-size: 1rem;
  color: #111;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
}

.precio__producto {
  margin: 0 0 14px;
  color: #111;
  font-size: 1.08rem;
  font-weight: 800;
}

.precio__producto del {
  color: #999;
  font-size: 0.9rem;
  margin-right: 6px;
}

.precio__producto strong {
  color: #111;
}

.ver-producto-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.card__producto:hover .ver-producto-btn {
  background: #333;
}

.sin-resultados {
  grid-column: 1 / -1;
  background: #fff;
  padding: 35px 20px;
  border-radius: 16px;
  text-align: center;
  color: #666;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

/* Responsive */
@media (max-width: 900px) {
  .catalogo-container {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .sidebar-filtros {
    position: static;
  }
}

@media (max-width: 768px) {
  .catalogo-hero {
    margin-top: 28px;
  }

  .catalogo-hero h1 {
    font-size: 1.8rem;
  }

  .btn-toggle-filtros {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    background: #111;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    cursor: pointer;
  }

  .sidebar-filtros {
    display: none !important;
  }

  .sidebar-filtros.abierto {
    display: flex !important;
    margin-top: 12px !important;
    padding: 18px !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 26px rgba(0,0,0,0.08) !important;
  }

  .contenedor__productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .contenedor_imagen {
    height: 260px;
  }

  .info__producto {
    padding: 13px;
  }

  .nombre__producto {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .catalogo-container {
    padding: 18px 12px 50px;
  }

  .contenedor__productos {
    grid-template-columns: 1fr;
  }

  .contenedor_imagen {
    height: 360px;
  }
}

/* ===============================
   VARIANTES EN CATÁLOGO
================================ */

.producto__variantes {
    margin: 6px 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #111;
}

.producto__colores {
    margin: 3px 0 0;
    font-size: 0.78rem;
    color: #777;
    line-height: 1.3;
}

.producto__sin-stock {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #777;
    font-size: 0.75rem;
    font-weight: 800;
}