
    /* Importamos las fuentes: Unbounded (Racing) y Plus Jakarta (Elegante) */
    @import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

    :root {
      --bg: #050505;             /* Negro High-End */
      --card-bg: #111111;        /* Negro carbón para tarjetas */
      --text: #ffffff;           /* Blanco puro */
      --muted: #888888;          /* Gris para textos secundarios */
      --border: #222222;         /* Bordes sutiles oscuros */
      --primary: #ffffff;
      --accent: #ff3e00;         /* Naranja Racing (Fierrero) */
      --shadow: 0 10px 30px rgba(0,0,0,0.5);
      --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    body {
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
      overflow-x: hidden; /* Evita scroll horizontal por el footer ancho */
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: var(--transition);
    }

    /* HEADER - Dark Glassmorphism */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(5, 5, 5, 0.8);
      backdrop-filter: blur(15px);
      border-bottom: 1px solid var(--border);
    }

    .header-inner {
      max-width: 1200px;
      margin: auto;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

   /* --- ANIMACIÓN DEL LOGO --- */
    .logo {
      font-family: 'Unbounded', sans-serif;
      font-size: 20px;
      font-weight: 900;
      letter-spacing: -1px;
      text-transform: uppercase;
      color: var(--primary);
      position: relative;
      animation: tilt-shaking 0.3s infinite;
      animation-play-state: paused;
    }

    .logo:hover {
      animation-play-state: running;
      color: var(--accent);
      text-shadow: 2px 2px 0px #fff, -2px -2px 0px #ff3e00;
    }

    @keyframes tilt-shaking {
      0% { transform: rotate(0deg); }
      25% { transform: rotate(0.5deg); }
      50% { transform: rotate(0deg); }
      75% { transform: rotate(-0.5deg); }
      100% { transform: rotate(0deg); }
    }

/* --- ESTILO DEL FOOTER --- */

/* --- FOOTER TIRA LARGA CORREGIDO --- */

    footer {

      width: 100vw; /* Ocupa el 100% del ancho de la ventana */

      background: #000;

      border-top: 2px solid var(--accent);

      padding: 60px 0;

      margin-top: 100px;

    }



    .footer-content {

      max-width: 1200px;

      margin: 0 auto;

      display: flex; /* Cambiado a Flex para mejor control de fila */

      justify-content: space-between;

      flex-wrap: wrap;

      gap: 40px;

      padding: 0 20px;

    }



    .footer-section {

      flex: 1;

      min-width: 250px;

      text-align: center;

    }



    .footer-section h4 {

      font-family: 'Unbounded', sans-serif;

      color: var(--accent);

      font-size: 14px;

      margin-bottom: 20px;

      text-transform: uppercase;

    }



    .footer-section p, .footer-section a {

      color: var(--muted);

      font-size: 14px;

      margin-bottom: 8px;

      display: block;

    }



    .motive-phrase {

      width: 100%; /* Ocupa todo el ancho abajo de las 3 columnas */

      text-align: center;

      margin-top: 50px;

      padding-top: 40px;

      border-top: 1px solid var(--border);

    }



    .motive-phrase h2 {

      font-family: 'Unbounded', sans-serif;

      font-size: 28px;

      font-style: italic;

      color: #fff;

    }



    .motive-phrase span { color: var(--accent); }



    @media (max-width: 768px) {

      .footer-content { flex-direction: column; align-items: center; }

      .layout { grid-template-columns: 1fr; }

    }

    /* --- NAVEGACIÓN Y CARRITO --- */
    nav {
      display: flex;
      gap: 24px;
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      align-items: center;
    }

    nav a:hover {
      color: var(--accent);
    }

    /* Clase para que el carrito resalte en el header */
    .cart-btn {
      background: var(--accent);
      color: white !important;
      padding: 8px 16px;
      border-radius: 50px;
      font-weight: 800;
      transition: var(--transition);
    }

    .search {
      border: 1px solid var(--border);
      padding: 10px 18px;
      border-radius: 50px;
      font-size: 13px;
      background: #1a1a1a;
      color: white;
      width: 250px;
      transition: var(--transition);
    }

    .search:focus {
      outline: none;
      border-color: var(--accent);
      width: 280px;
      box-shadow: 0 0 15px rgba(255, 62, 0, 0.2);
    }

    /* HERO */
    .hero {
      max-width: 1200px;
      margin: 20px auto;
      padding: 0 18px;
    }

    .hero img {
      width: 100%;
      border-radius: 24px;
      box-shadow: var(--shadow);
      filter: brightness(0.9);
    }

    /* LAYOUT */
    .layout {
      max-width: 1200px;
      margin: auto;
      padding: 40px 18px;
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 40px;
    }

    /* FILTROS */
    .filters {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 24px;
      font-size: 14px;
      height: fit-content;
    }

    .filters h4 {
      font-family: 'Unbounded', sans-serif;
      margin-bottom: 20px;
      font-size: 12px;
      text-transform: uppercase;
      color: var(--accent);
    }

    /* PRODUCTOS */
    .products {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 30px;
    }

    .product {
      border: 1px solid var(--border);
      border-radius: 24px;
      overflow: hidden;
      background: var(--card-bg);
      display: flex;
      flex-direction: column;
      transition: var(--transition);
    }

    .product:hover {
      transform: translateY(-10px);
      border-color: var(--accent);
      box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    }

    .product img {
      width: 100%;
      height: 340px;
      object-fit: cover;
      transition: var(--transition);
    }

    .product-info {
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .price {
      font-family: 'Unbounded', sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: var(--accent);
    }

    .size-select {
      width: 100%;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: #1a1a1a;
      color: white;
      font-size: 13px;
      margin-bottom: 8px;
      cursor: pointer;
      outline: none;
    }

    .btn {
      margin-top: 8px;
      border: none;
      background: var(--primary);
      color: #000;
      padding: 14px;
      border-radius: 14px;
      text-align: center;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: var(--transition);
      cursor: pointer;
    }

    .btn:hover {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 0 20px rgba(255, 62, 0, 0.4);
    }

    /* RESPONSIVE CORREGIDO: CARRITO VISIBLE Y CATEGORÍAS ESTILO CARD */
   @media(max-width:900px){
      .layout { 
        grid-template-columns: 1fr; 
        padding: 20px 15px;
      }
      
      /* Header en una sola fila para que entre todo */
      .header-inner { 
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; 
        gap: 5px; 
      }

      /* Buscador más chico (100px) para que no empuje al carrito */
      .search { 
        width: 100px; 
        font-size: 10px;
        padding: 6px 10px;
        margin: 0 5px;
      }

      .logo {
        font-size: 12px;
      }

      /* Navegación: Muestra solo el botón del carrito */
      nav { gap: 5px; }
      nav a:not(.cart-btn) { display: none; }
      
      .cart-btn {
        font-size: 9px;
        padding: 6px 10px;
        white-space: nowrap;
        background: var(--accent);
        border-radius: 50px;
      }

      /* --- CATEGORÍAS UNA ABAJO DE OTRA --- */
      .filters {
        display: flex;
        flex-direction: column; /* Alineación vertical */
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 20px;
        margin-bottom: 30px;
      }

      .filters h4 {
        margin-bottom: 15px;
        display: block;
      }

      /* Estilo para los labels de categorías (uno abajo del otro) */
      .filters label, .filter-link {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #222; /* Línea divisoria */
        font-size: 14px;
        color: var(--muted);
        cursor: pointer;
      }

      /* El último no lleva línea */
      .filters label:last-child, .filter-link:last-child {
        border-bottom: none;
      }

      .products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
      .product img { height: 220px; }
    }
    /* Estilo para que las categorías sean una lista vertical */
    .filter-link {
      display: block;             /* Fuerza a que ocupen toda la línea */
      width: 100%;
      padding: 12px 0;            /* Les da espacio para que no estén pegadas */
      background: none;           /* Se usan <button>: se les quita el estilo por defecto */
      border: none;
      text-align: left;
      color: var(--muted);        /* Color gris sutil */
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 1px;
      border-bottom: 1px solid #222; /* Línea divisoria entre cada una */
      cursor: pointer;
      transition: var(--transition);
    }

    .filter-link-todo {
      margin-top: 10px;
      font-weight: 800;
      color: white;
      border-bottom: none;
    }

    .filter-link:hover {
      color: var(--accent);       /* Cambia a naranja al pasar el mouse */
      transform: translateX(5px); /* Se mueve un poquito a la derecha */
    }

    /* Ajuste para celular: que el cuadro no sea tan gigante */
    @media(max-width:900px) {
      .filters {
        padding: 20px;
        margin-bottom: 20px;
      }
    }

    /* --- CATÁLOGO: títulos de sección, mensajes y selector de talle --- */
    .categoria-titulo {
      grid-column: 1 / -1;
      margin: 30px 0 10px;
    }

    .vacio {
      grid-column: 1 / -1;
      padding: 20px;
      text-align: center;
      color: var(--muted);
    }

    .size-selector label {
      display: block;
      margin-bottom: 6px;
      font-size: 13px;
      color: var(--muted);
    }

    .copyright {
      margin-top: 15px;
      color: var(--muted);
    }

    .btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
      background: var(--primary);
      color: #000;
      box-shadow: none;
    }

    /* --- PÁGINAS CARRITO Y FINALIZAR COMPRA --- */
    .pagina-simple {
      padding: 30px 15px;
    }

    .contenedor-pagina {
      max-width: 800px;
      margin: auto;
      padding: 24px;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 20px;
    }

    .contenedor-pagina h1 {
      margin-bottom: 20px;
      font-family: 'Unbounded', sans-serif;
      font-size: 20px;
    }

    .item {
      display: grid;
      grid-template-columns: 90px 1fr auto;
      gap: 16px;
      align-items: center;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }

    .item img {
      width: 90px;
      height: 90px;
      object-fit: cover;
      border-radius: 10px;
    }

    .item p {
      font-size: 13px;
      color: var(--muted);
    }

    .item .price {
      font-size: 15px;
    }

    .btn-eliminar {
      margin-top: 6px;
      padding: 0;
      background: none;
      border: none;
      color: var(--accent);
      font-size: 13px;
      cursor: pointer;
    }

    .aviso {
      color: var(--accent);
    }

    .total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 20px;
      font-size: 18px;
    }

    .acciones {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }

    .acciones .btn {
      flex: 1;
      margin-top: 0;
      padding: 14px;
    }

    .btn-secundario {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--text);
    }

    .carrito-vacio {
      padding: 40px 10px;
      text-align: center;
    }

    .carrito-vacio-icono {
      margin-bottom: 16px;
      font-size: 56px;
      line-height: 1;
    }

    .carrito-vacio h2 {
      margin-bottom: 8px;
      font-family: 'Unbounded', sans-serif;
      font-size: 16px;
    }

    .carrito-vacio p {
      margin-bottom: 24px;
      font-size: 14px;
      color: var(--muted);
    }

    .carrito-vacio .btn {
      display: inline-block;
      padding: 14px 32px;
    }

    .formulario label {
      display: block;
      margin-bottom: 6px;
      font-size: 13px;
      font-weight: 600;
    }

    .formulario input {
      width: 100%;
      padding: 12px;
      margin-bottom: 16px;
      background: #1a1a1a;
      color: white;
      border: 1px solid var(--border);
      border-radius: 12px;
      font-size: 14px;
    }

    .formulario input:focus {
      outline: none;
      border-color: var(--accent);
    }

    .fila {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .resumen {
      margin-top: 10px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .linea-resumen {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 4px 0;
      font-size: 13px;
      color: var(--muted);
    }

    .resumen .total {
      margin-bottom: 20px;
    }

    .error {
      margin-bottom: 16px;
      padding: 12px;
      border: 1px solid var(--accent);
      border-radius: 12px;
      color: var(--accent);
      font-size: 14px;
    }

    .btn-grande {
      width: 100%;
      padding: 16px;
      font-size: 14px;
    }

    .volver {
      display: block;
      margin-top: 16px;
      text-align: center;
      font-size: 13px;
      color: var(--muted);
    }

    @media (max-width: 600px) {
      .item { grid-template-columns: 70px 1fr auto; }
      .item img { width: 70px; height: 70px; }
      .fila { grid-template-columns: 1fr; gap: 0; }
      .acciones { flex-direction: column; }
    }

    /* --- CUENTA, PEDIDOS Y AVISO DE SESIÓN --- */
    .aviso-sesion {
      margin-bottom: 20px;
      padding: 12px 14px;
      background: #1a1a1a;
      border: 1px solid var(--border);
      border-radius: 12px;
      font-size: 13px;
      color: var(--muted);
    }

    .aviso-sesion a {
      margin-left: 6px;
      color: var(--accent);
      font-weight: 700;
    }

    .perfil {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 24px;
    }

    .perfil img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
    }

    .perfil p {
      font-size: 13px;
      color: var(--muted);
    }

    .perfil .btn-eliminar {
      margin: 0 0 0 auto;
    }

    .subtitulo {
      margin-bottom: 12px;
      font-family: 'Unbounded', sans-serif;
      font-size: 14px;
      color: var(--accent);
    }

    .pedido {
      margin-bottom: 16px;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 14px;
    }

    .pedido-cabecera {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }

    .pedido-fecha {
      margin-bottom: 8px;
      font-size: 12px;
      color: var(--muted);
    }

    .pedido-total {
      margin-top: 6px;
      padding-top: 8px;
      border-top: 1px solid var(--border);
      color: var(--text);
      font-weight: 700;
    }

    .estado {
      padding: 3px 10px;
      border-radius: 50px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      background: #333;
    }

    .estado-pagado { background: #14532d; color: #bbf7d0; }
    .estado-pendiente { background: #713f12; color: #fde68a; }
    .estado-cancelado { background: #450a0a; color: #fecaca; }

    .mensaje-pedido {
      color: var(--muted);
      font-size: 14px;
    }

    a.btn-enlace {
      display: block;
    }
