/* historia.css */
    /* Reset básico */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      background: #f7f3ef;
      color: #333;
      line-height: 1.6;
    }

    /* Header y navegación */
    header {
      background: linear-gradient(135deg, #231a11, #2e2113);
      color: white;
      padding: 0;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: bold;
      color: #DAA520;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-links {
      display: flex;
      list-style: none;
      gap: 2rem;
      align-items: center;
    }

    .nav-links a,
    .nav-links button {
      color: white;
      text-decoration: none;
      padding: 0.5rem 1rem;
      border-radius: 25px;
      transition: all 0.3s ease;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-links a:hover,
    .nav-links button:hover {
      background: rgba(255, 215, 0, 0.2);
      transform: translateY(-2px);
    }

    .nav-links .auth-btn {
      background: #DAA520;
      color: #2e2113;
      font-weight: bold;
    }

    .nav-links .auth-btn:hover {
      background: #DAA520;
      color: #231a11;
    }

    .nav-links .cart-btn {
      background: rgba(255, 255, 255, 0.1);
      border: 2px solid #DAA520;
    }

    .nav-links .cart-btn:hover {
      background: #DAA520;
      color: #231a11;
    }

    /* Menú hamburguesa */
    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      padding: 0.5rem;
      border-radius: 5px;
      transition: all 0.3s ease;
    }

    .hamburger:hover {
      background: rgba(255, 215, 0, 0.1);
    }

    .hamburger span {
      width: 25px;
      height: 3px;
      background: #DAA520;
      margin: 3px 0;
      transition: all 0.3s ease;
      border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Menú móvil */
    .mobile-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: linear-gradient(135deg, #231a11, #2e2113);
      backdrop-filter: blur(10px);
      box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }

    .mobile-menu.active {
      display: block;
      animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .mobile-menu ul {
      list-style: none;
      padding: 1rem;
    }

    .mobile-menu li {
      margin: 0.5rem 0;
    }

    .mobile-menu a,
    .mobile-menu button {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 1rem;
      color: white;
      text-decoration: none;
      border-radius: 10px;
      transition: all 0.3s ease;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 1rem;
      width: 100%;
      text-align: left;
    }

    .mobile-menu a:hover,
    .mobile-menu button:hover {
      background: rgba(255, 215, 0, 0.2);
      transform: translateX(10px);
    }

    .mobile-menu .auth-btn {
      background: #DAA520;
      color: #2e2113;
      font-weight: bold;
      margin-top: 1rem;
      justify-content: center;
    }

    .mobile-menu .cart-btn {
      background: rgba(255, 255, 255, 0.1);
      border: 2px solid #DAA520;
      margin-top: 0.5rem;
      justify-content: center;
    }

    /* Responsive */
    @media (max-width: 768px) {
      nav {
        padding: 1rem;
      }

      .nav-links {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      .logo {
        font-size: 1.2rem;
      }
    }

    @media (max-width: 480px) {
      nav {
        padding: 0.5rem 1rem;
      }

      .logo {
        font-size: 1rem;
      }
    }

    /* Contenido principal */
    main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
    }

    .historia {
      background: white;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0,0,0,0.1);
      padding: 3rem;
      margin-bottom: 3rem;
    }

    .historia h2 {
      color: #231a11;
      font-size: 2.5rem;
      margin-bottom: 2rem;
      text-align: center;
    }

    .historia-content {
      display: grid;
      gap: 3rem;
      margin-top: 2rem;
    }

    .historia-section {
      background: linear-gradient(135deg, rgba(75, 46, 46, 0.05), rgba(255, 215, 0, 0.05));
      padding: 2rem;
      border-radius: 15px;
      border-left: 4px solid #231a11;
    }

    .historia-section h3 {
      color: #231a11;
      font-size: 1.8rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .historia-section p {
      color: #666;
      font-size: 1.1rem;
      line-height: 1.7;
      text-align: justify;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin: 3rem 0;
    }

    .stat-card {
      background: linear-gradient(135deg, #231a11, #2e2113);
      color: white;
      padding: 2rem;
      border-radius: 20px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      transform: perspective(1000px) rotateX(5deg);
      transition: all 0.3s ease;
    }

    .stat-card:hover {
      transform: perspective(1000px) rotateX(0deg) translateY(-10px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

    .stat-number {
      font-size: 3rem;
      font-weight: bold;
      color: #ffd700;
      margin-bottom: 0.5rem;
    }

    .stat-label {
      font-size: 1.2rem;
      opacity: 0.9;
    }

    .user-info {
      background: linear-gradient(135deg, rgba(75, 46, 46, 0.1), rgba(255, 215, 0, 0.1));
      padding: 1rem 2rem;
      border-radius: 25px;
      border-left: 4px solid #231a11;
      display: inline-block;
      margin-bottom: 2rem;
    }

    .user-info p {
      margin: 0;
      font-weight: bold;
      color: #231a11;
    }

    /* Carrito lateral */
    .carrito-sidebar {
      position: fixed;
      top: 0;
      right: -400px;
      width: 400px;
      height: 100vh;
      background: white;
      box-shadow: -5px 0 20px rgba(0,0,0,0.3);
      transition: all 0.3s ease;
      z-index: 2000;
      overflow-y: auto;
      padding: 2rem;
    }

    .carrito-sidebar.active {
      right: 0;
    }

    .carrito-sidebar h2 {
      color: #231a11;
      margin-bottom: 2rem;
      text-align: center;
      padding-bottom: 1rem;
      border-bottom: 2px solid #f0f0f0;
    }

    .carrito-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.5);
      z-index: 1500;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

    .carrito-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    @media (max-width: 480px) {
      .carrito-sidebar {
        width: 100vw;
        right: -100vw;
      }

      .historia {
        padding: 2rem;
      }

      .stat-card {
        transform: none;
      }

      .stat-card:hover {
        transform: translateY(-5px);
      }
    }

    .oculto {
      display: none !important;
    }
