/* Reset y configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #333;
    overflow-x: hidden;
    padding-top: 70px; /* Mismo valor que la altura del top-bar */
  }
  
  
.main-header {
    width: 100%;
    position: relative;
    z-index: 1000;
  }
  
  /* Barra superior */
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: white;
    padding: 10px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
  }
  
  .top-bar .logo-container {
    flex: 0 0 auto;
  }
  
  .top-bar .search-container {
    flex: 0 0 auto;
  }
  
  .top-bar .logo-container img {
    height: 50px;
  }
  
  .top-nav {
    display: flex;
    gap: 30px;
  }
  
  .top-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
  }
  
  .top-nav a:hover {
    color: #e84141;
  }
  
  .search-container {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    padding: 4px 8px;
    height: 36px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  }
  
  .search-container input {
    border: none;
    outline: none;
    padding: 6px 10px;
    font-size: 0.9rem;
    flex: 1;
    border-radius: 20px;
  }
  
  .search-container button {
    background-color: transparent;
    border: none;
    color: #888;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 10px;
    border-left: 1px solid #ddd;
    transition: color 0.2s ease;
  }
  
  .search-container button:hover {
    color: #e84141;
  }
  
  
  /* Barra inferior */
  .bottom-bar {
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 10px 30px;
    font-size: 0.95rem;
    position: sticky;
    top: 70px;
    z-index: 1000;
    width: 100%;
    left: 0;
    right: 0;
  }
  
  .bottom-bar a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
  }
  
  .bottom-bar a:hover {
    color: #e84141;
  }
  
  /* Media query para pantallas grandes */
  @media (min-width: 769px) {
    .bottom-bar {
        display: flex;
        justify-content: center;
        gap: 40px;
        padding: 10px 30px;
    }
  }
  
  /* Media query para pantallas móviles */
  @media (max-width: 768px) {
    .bottom-bar {
        display: none; /* Ocultamos los estilos de escritorio en móvil */
    }
  }
  
  .logo-container img {
    height: 60px;
  }
  
  nav {
    display: flex;
    gap: 50px;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
  }
  
  nav a:hover {
    color: #e84141;
  }
  
  /* Buscador */
  .search-bar {
    display: flex;
    gap: 10px;
  }
  
  .search-bar input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
  }
  
  .search-bar button {
    padding: 8px 16px;
    background: #e84141;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .search-bar button:hover {
    background: #c93030;
  }
  
  .hero {
    position: relative;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 👈 Evita que se centre demasiado abajo */
    text-align: center;
    color: white;
    padding-top: 60px;
    overflow: hidden;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 👇 Fondo más suave y elegante */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.5));
    z-index: 1;
  }
  
  .hero-slider,
  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  
  .slide {
    background-size: cover;
    background-position: center 30%; /* Ajuste vertical personalizado */
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .slide.active {
    opacity: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    margin-top: 30px; /* 👈 eleva un poco el texto */
  }
  
  .hero h1 {
    font-size: 3.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #f1f1f1;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  }
  
  .hero button {
    padding: 12px 30px;
    background-color: #ff0000;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }
  
  .hero button:hover {
    background-color: #c70000;
    transform: scale(1.08);
  }
  
  
  /* Sección de tarjetas */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 20px;
  }

  .carousel-container {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    background-color: #ffffff;
  }
  
  .carousel-track {
    display: flex;
    gap: 40px;
    padding: 0 40px;
    transition: transform 0.5s ease;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    background-color: #ffffff;
    overflow-x: hidden;
  }
  
  .product-item {
    flex: 0 0 auto;
    width: 240px;
    height: 400px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    scroll-snap-align: start;
    text-align: center;
    box-shadow: none;
    border: none;
  }
  
  .product-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background-color: #ffffff;
    margin-bottom: 10px;
  }
  
  
  .product-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin: 0 0 4px;
    white-space: normal;
    word-break: break-word;
  }
  
  .product-item p {
    font-size: 1rem;
    color: #555;
    margin: 0;
  }
  
  .product-item .precio-producto {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin: 10px 0 0 0;
    text-align: center;
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
  }
  
  
  
  /* Footer */
  footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
  }
  
  footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }
  
  footer .social-links img {
    width: 24px;
    transition: transform 0.3s ease;
  }
  
  footer .social-links img:hover {
    transform: scale(1.2);
  }
  
  /* Loading Screen */
  #loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .loading-content {
    text-align: center;
  }
  
  #loading-gif {
    width: 400px;
  }
  
  #loading-text {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
  }
  
  #dots {
    font-size: 3rem;
    animation: blink 2.5s step-end infinite;
  }
  
  @keyframes blink {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
  }
  
  @media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }
  
    .hero-content h1 {
      font-size: 2.5rem;
    }
  
    .grid-container {
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
  
    .product-item img {
      height: 160px;
    }
  
    .bottom-bar {
      gap: 20px;
      padding: 10px 20px;
      font-size: 0.9rem;
      flex-wrap: wrap;
      justify-content: center;
    }
  }
  /* Carrusel mejorado con flechas elegantes */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px;
  }
  
  .carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
  }
  
  /* Botones izquierda y derecha */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
  }
  
  .carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
  
  /* Posiciones de las flechas */
  .carousel-btn.left {
    left: 10px;
  }
  
  .carousel-btn.right {
    right: 10px;
  }
  
  .shop-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: center;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  .shop-category-grid .product-item img {
    width: 230px;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
  }
  
  .shop-category-grid .product-item h3 {
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: bold;
  }
  
  .shop-category-grid .product-item:hover img {
    transform: scale(1.05);
  }
  .producto-detalles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
  }
  
  .producto-imagen img {
    max-width: 500px;
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
  }
  
  .producto-info {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .producto-info h1 {
    font-size: 2.2rem;
    font-weight: 600; /* Negrita */
    color: #111;
  }
  
  .producto-info p {
    font-size: 1.1rem;
    color: #333;
  }
  
  #precio-producto {
    font-size: 1.8rem;
    font-weight: 700; /* Negrita */
    color: #000;
  }
  
  #talla-select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
  }
  
  #agregar-carrito {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600; /* Negrita */
    background-color: #e84141;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  #agregar-carrito:hover {
    background-color: #c93030;
  }
  
  .pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
  }
  
  .pagination-container button {
    padding: 8px 16px;
    background-color: #e84141;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .pagination-container button:hover {
    background-color: #c73535;
  }
  
  .pagination-container button.active {
    background-color: #000;
  }
  
  /* Oculta el header móvil y overlays en escritorio */
  @media (min-width: 769px) {
    .mobile-header,
    .search-overlay,
    .side-menu,
    .side-menu-overlay {
      display: none !important;
    }
  }
  
