*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-size: 17px;
  font-family:'Roboto', sans-serif;
}

/* Mini Carrusel */
.mini-carrusel {
  position: fixed; /* fijarlo en la parte superior */
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  overflow: hidden;
  background-color: black;
  display: flex;
  align-items: center;
  z-index: 1100; /* mayor que el header */
}

.carrusel-track {
  display: flex;
  width: 300%;
  transition: transform 0.5s ease-in-out;
}

.carrusel-item {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  color: white;
  background-color: black;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 0 10px;
}

.carrusel-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1;             /* Asegura que esté centrado verticalmente */
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Roboto', sans-serif; 

}

.parrafo {
  margin: 0;
  font-size: 15.5px;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
}


/* Header principal */
.header {
  position: fixed;
  top: 30px; /* empuja el header hacia abajo */
  z-index: 1000;
  width: 100%;
  background: white;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.header.scrolled{
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
}

.nav {
  display: flex;
  justify-content: center;
}

.logo img{
  height:44px;
  transition:0.3s;
}

.menu {
  display: flex;
  gap: 30px;              /* más compacto */
  list-style: none;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;        /* evita que se rompa en pantallas medianas */
}

.menu-item{
  cursor:pointer;
  font-weight:600;
  font-size:17px;
  display:flex;
  font-family: 'Roboto', sans-serif; 
  align-items:center;
  gap:5px;
  position: relative;
  color: black;
}

.menu-item a {
  letter-spacing: 0.5px;
  color: #000;
  text-decoration: none;
}

.menu-item:nth-child(4) a { 
  font-weight: 700;
}

/* Subrayado */
.menu-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: black;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.menu-item:hover::after{
  width: 100%;
}

/* Botón rojo */
.menu-item-especial {
  background-color: #EB0045;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  font-size: 17px;
  font-family: 'Roboto', sans-serif;
}

/* link dentro del botón */
.menu-item-especial a {
  color: white;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

/* línea blanca */
.menu-item-especial a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: white;
  transition: width 0.3s ease;
}

.menu-item-especial a:hover::after {
  width: 100%;
}

/* Botón azul */
.menu-item-coleccion {
  background-color: #003feb;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  font-size: 17px;
  font-family: 'Roboto', sans-serif;
}

/* link dentro del botón */
.menu-item-coleccion a {
  color: white;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

/* línea blanca */
.menu-item-coleccion a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: white;
  transition: width 0.3s ease;
}

.menu-item-coleccion a:hover::after {
  width: 100%;
}

/* Flecha */
.arrow{
  width:6px;
  height:6px;
  border-right:2px solid black;
  border-bottom:2px solid black;
  transform:rotate(45deg);
}

.header-right{
  display:flex;
  align-items:center;
  gap:15px;
}

.menu-item .arrow {
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
}

/* Botón buscar */
.search-btn{
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid #ddd;
  background:white;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:0.2s;
}

.search-btn img{
  width:18px;
  height:18px;
}

.search-btn:hover{
  background:#f5f5f5;
}

/* Buscador overlay */
.search-right-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 5000;
}

.search-right-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-right-container {
  background: white;
  width: 450px;
  padding: 40px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
}

.search-input {
  flex: 1;
  font-size: 16px;
  border: 2px solid #000;
  outline: none;
  box-sizing: border-box;
}

.search-right-container input {
  width: 100%;
  font-size: 18px;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid #000;
  outline: none;
  background: transparent;
}

.search-right-container img {
  width: 24px;
  height: 24px;
}

#search-close{
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  padding: 6px;
}

/* Bolsa shop */
.cart-btn{
  position:relative;
  width:40px;
  height:40px;
  background:white;
  border-radius:50%;
  border:1px solid #ddd;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  transition:0.2s;
}

.cart-btn:hover{
  background:#f5f5f5;
}

.cart-btn img {
  width: 18px;
  height: 18px;
}

.cart-count{
  position:absolute;
  top:-5px;
  right:-5px;
  background:black;
  color:white;
  font-size:12px;
  padding:3px 6px;
  border-radius:50%;
}

/* ===============================
   CATALOGO VERTICAL
=============================== */
.menu-item[data-menu="catalogo"] {
  position: relative; /* para que el menú se alinee al botón */
}

/* Menú vertical */
#catalogo {
  position: absolute;
  top: 100%;        /* justo debajo del botón */
  left: 600px;          /* alineado al borde izquierdo del botón */
  width: 250px;     /* ancho del menú */
  background: #fff; /* color de fondo */
  border: 1px solid #eee; /* borde suave */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* sombra sutil */
  display: flex;
  flex-direction: column;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease; /* transición suave */
  z-index: 1000;
}

/* Mostrar el menú vertical al pasar el mouse sobre CATALOGO */
.menu-item[data-menu="catalogo"]:hover #catalogo {
  opacity: 1;
  visibility: visible;
}

/* Estilo para cada categoría (Polos, Pantalones, etc.) */
#catalogo .menu-col {
  position: relative;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

#catalogo .menu-col:hover {
  background-color: #f9f9f9; /* color de fondo suave al pasar el mouse */
  padding-left: 20px; /* movimiento suave hacia la izquierda */
}

/* Submenú que aparece al pasar el mouse */
#catalogo .submenu {
  position: absolute;
  top: 0;
  left: 100%;  /* el submenú aparece a la derecha */
  min-width: 180px;
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  display: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

#catalogo .menu-col:hover .submenu {
  display: block;
  opacity: 1;
}

/* Estilo de los enlaces dentro del submenú */
#catalogo .submenu a {
  display: block;
  padding: 10px 15px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

#catalogo .submenu a:hover {
  background-color: #f0f0f0; /* cambio de fondo al pasar el mouse */
  color: #000; /* color de texto al pasar el mouse */
}

/* Separador entre categorías principales */
#catalogo .menu-col:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

/* Flecha para el submenu */
.arrow {
  width: 6px;
  height: 6px;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  transform: rotate(45deg);
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
}

/* Estilo para cuando el mouse pasa sobre una categoría */
.menu-col:hover .arrow {
  transform: rotate(45deg) translateY(2px); /* animación de la flecha */
}

/* Estilo de los enlaces de "CATÁLOGO" en el menú principal */
.menu-item[data-menu="catalogo"] a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

.header.scrolled .menu-item[data-menu="catalogo"] a {
  font-size: 15px;
}

.menu-item[data-menu="catalogo"] a:hover {
  color: #333;
}

/* ===============================
   Overlay del buscador
=============================== */
/* ===============================
   PANEL BUSCADOR LATERAL COMPLETO
   CON EFECTO FADE IN/OUT Y X AMARILLA
=============================== */
/* OVERLAY DEL PANEL */
.search-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 5000;
}

.search-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* PANEL LATERAL */
.search-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: 480px; /* ancho del panel */
  height: 100%;
  background: whitesmoke;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

/* CUANDO ABRE */
.search-panel.opening {
  transform: translateX(0);
  opacity: 1;
}

.search-panel.closing {
  transform: translateX(100%);
  opacity: 0;
}

/* HEADER DEL PANEL */
.search-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.search-panel-header input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #222;
  background: transparent;
  color: #222;
  outline: none;
}

.search-panel-header .search-icon {
  width: 24px;
  height: 24px;
}

#search-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #222;
  transition: transform 0.2s, color 0.2s;
}

/* TEXTO DE INFORMACIÓN */
#search-info {
  display: none;       /* empieza oculto */
  color: black;
  font-size: 16px;
  margin-bottom: 10px;
}

/* RESULTADOS: SCROLL VERTICAL Y PRODUCTOS */
.search-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 20px;
  overflow-y: auto;
  max-height: calc(100% - 140px); /* espacio para header */
  padding-right: 5px;
}

/* PRODUCTOS */
.search-item {
  background: #222;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, background 0.2s, opacity 0.3s;
  opacity: 0; /* para fade-in */
}

.search-item.show {
  opacity: 1;
}

.search-item:hover {
  background: #333;
  transform: translateY(-3px);
}

.search-item img {
  width: 100%;
  max-height: 250px; /* más grande */
  object-fit: cover;
  margin-bottom: 12px;
  border-radius: 6px;
}

.search-item .name {
  margin-bottom: 8px;
  font-size: 18px; /* más grande */
  color: #fff;
}

.search-item .price {
  font-weight: bold;
  color: #ffd700; /* dorado */
  font-size: 16px;
}

/* BOTÓN VER MÁS */
.search-more-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  display: none;
}

.search-more-btn:hover {
  background-color: #222;
  color: #fff;
}

/* SCROLLBAR */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-track {
  background: #111;
}

/* BOTON BORRAR */
.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-wrapper input {
  width: 100%;
  padding-right: 35px; /* espacio para la X */
}

/* botón limpiar */
#clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  background: none;
  border: none;
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  padding: 0;
}

/* visible cuando hay texto */
#clear-search.show {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

#clear-search:hover {
  color: #ccc;
}



/* OVERLAY OSCURO PARA EL MENU */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

#menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* MEJORAR LINKS DE CATEGORIAS (opcional pero recomendado) */
#catalogo .menu-col a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease; /* 🔥 animación suave */
}

#catalogo .menu-col a:hover {
  background-color: #f5f5f5;
  transform: translateX(5px); /* 🔥 movimiento individual */
}

#catalogo .menu-col a.activo {
  background: #000;
  color: #fff;
  border-radius: 6px;
}




/* ===================================================
   RESPONSIVE — reemplazar todo lo que está desde aquí
   hasta el final de header.css
=================================================== */

/* --- Hamburguesa (oculta en desktop) --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Overlay oscuro del drawer --- */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
}
.drawer-overlay.active { display: block; }

/* --- Drawer lateral --- */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  background: #fff;
  z-index: 1150;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
}
.drawer-header img { height: 36px; }
.drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  line-height: 1;
  padding: 4px;
}

.drawer-menu { list-style: none; padding: 6px 0; }
.drawer-menu > li { border-bottom: 1px solid #f0f0f0; }

.drawer-menu > li > a,
.drawer-menu > li > span {
  display: block;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.drawer-menu > li > a:hover,
.drawer-menu > li > span:hover { background: #f5f5f5; }

.drawer-menu .item-especial > a {
  background: #EB0045;
  color: #fff;
}
.drawer-menu .item-especial > a:hover { background: #b30000; }

.drawer-menu .item-especial-coleccion > a {
  background: #003feb;
  color: #fff;
}
.drawer-menu .item-especial-coleccion > a:hover { background: #002ba0; }

.drawer-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  color: #000;
  cursor: pointer;
  transition: background 0.2s;
}
.drawer-toggle:hover { background: #f5f5f5; }
.drawer-toggle .arrow { transition: transform 0.3s ease; }
.drawer-toggle.open .arrow { transform: rotate(225deg); }

.drawer-submenu { list-style: none; background: #f9f9f9; display: none; }
.drawer-submenu.open { display: block; }
.drawer-submenu li a {
  display: block;
  padding: 10px 38px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  color: #444;
  text-decoration: none;
  transition: background 0.2s;
}
.drawer-submenu li a:hover { background: #f0f0f0; color: #000; }
.drawer-submenu li a.activo { background: #000; color: #fff; }

/* ===================================================
   BREAKPOINTS
=================================================== */

@media (max-width: 768px) {
  #page-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body {
    overflow-x: hidden !important;
  }

  .nav { display: none !important; }
  .hamburger { display: flex; }
  .mobile-drawer { display: flex; }

  .header {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    top: 24px !important;
  }

  .mini-carrusel { height: 24px; }
  .carrusel-item p { font-size: 10px; }

  .header-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    box-sizing: border-box !important;
    height: 56px;
  }

  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    
  }
  .logo img { height: 35px !important; }

  .header-right {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin-left: auto !important;
  }

.search-btn {
  width: 35px;
  height: 35px;
}

.search-btn img {
  width: 15px;
  height: 15px;
}

.cart-btn {
  width: 35px;
  height: 35px;
}

.cart-btn img {
  width: 15px;
  heig

  .search-panel { width: 100%; }
  #catalogo { display: none !important; }
}

@media (max-width: 480px) {
  .logo img { height: 30px; }
  .mobile-drawer { width: 100%; max-width: 290px; }
}
}