/* -------------------- Google Fonts -------------------- */
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@400;500;700&family=Playfair+Display:wght@400;600;700&display=swap');

    /* -------------------- Root Variables -------------------- */
    :root {
      --primary: #D4AF37;
      --primary-dark: #B08D57;
      --secondary: #1A1A1A;
      --light: #F8F8F8;
      --dark: #121212;
      --text: #333;
      --text-light: #666;
    }

    /* -------------------- Reset -------------------- */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* -------------------- Base -------------------- */
    body {
      font-family: 'Poppins', 'Roboto', sans-serif;
      background-color: var(--light);
      color: var(--text);
      line-height: 1.6;
    }

    h1 {
      font-family: 'Playfair Display', serif;
      color: rgb(255, 255, 255);
    }

    h2, h3, h4, h5, h6 {
      font-family: 'Playfair Display', serif;
      color: rgb(60, 56, 112);
    }

    /* -------------------- Navbar -------------------- */
    .nav-link {
      position: relative;
    }

    .nav-link::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 0;
      height: 2px;
      background-color: currentColor;
      transition: width 0.3s ease;
    }

    .nav-link:hover::after {
      width: 100%;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
      display: block;
    }

    /* Cart Badge */
    .cart-count {
      position: absolute;
      top: -8px;
      right: -8px;
      animation: bounce 1s infinite;
    }

    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-2px); }
    }

    /* -------------------- Mobile Menu -------------------- */
    #mobile-menu {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease-in-out;
    }

    #mobile-menu.show {
      max-height: 500px;
    }

    /* Hamburger (X animation) */
    #mobile-menu-button span {
      display: block;
      transition: all 0.3s ease;
    }

    #mobile-menu-button.open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    #mobile-menu-button.open span:nth-child(2) {
      opacity: 0;
    }

    #mobile-menu-button.open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    /* Overlay */
    #menu-overlay {
      background-color: rgba(0, 0, 0, 0.4);
    }

    /* -------------------- Hero Section -------------------- */
    .hero-image {
      height: 90vh;
      background:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('images/m46p04-cadena-logistica-recepcion-transporte.avif') center/cover no-repeat;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #fff;
      padding: 1rem;
    }

    .hero-image h1 {
      font-size: 2.2rem;
      font-weight: 700;
    }

    .hero-image p {
      margin-top: 1rem;
      max-width: 600px;
      margin-inline: auto;
    }

    /* -------------------- Buttons -------------------- */
    .btn {
      display: inline-block;
      padding: 12px 30px;
      border-radius: 6px;
      font-weight: 500;
      cursor: pointer;
      border: none;
      transition: all 0.3s ease;
    }

    .btn-primary {
      background-color: var(--primary);
      color: var(--secondary);
    }

    .btn-primary:hover {
      background-color: var(--primary-dark);
      transform: translateY(-2px);
    }

    .btn-outline {
      background: transparent;
      border: 2px solid var(--primary);
      color: var(--primary);
    }

    .btn-outline:hover {
      background-color: var(--primary);
      color: var(--secondary);
    }

    /* -------------------- Newsletter / Subscribe -------------------- */
    .subscribe-area {
      position: relative;
      padding: 60px 0;
      background-size: cover;
      background-position: center;
      color: #fff;
    }

    .subscribe-area::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
    }

    .subscribe-form {
      position: relative;
      z-index: 1;
      max-width: 500px;
      margin: auto;
      padding: 30px;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .subscribe-form h3 {
      margin-bottom: 25px;
      font-size: 28px;
    }

    .subscribe-form input {
      width: 100%;
      height: 45px;
      padding: 10px 15px;
      border-radius: 6px;
      border: 1px solid #d1d5db;
    }

    .subscribe-form input:focus {
      border-color: #4f46e5;
      box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
      outline: none;
    }

    .subscribe-form button {
      width: 100%;
      height: 45px;
      background: #000;
      color: #fff;
      border-radius: 6px;
      font-weight: 600;
    }

    .subscribe-form button:hover {
      background: #0056b3;
    }

    /* -------------------- Footer -------------------- */
    footer {
      background-color: var(--secondary);
      color: #fff;
    }

    .footer-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 20px;
    }

    /* -------------------- Cart Sidebar -------------------- */
    #cart-sidebar {
      width: 100%;
      max-width: 400px;
    }

    /* -------------------- WhatsApp Button -------------------- */
    .whatsapp-btn {
      position: fixed;
      bottom: 25px;
      right: 25px;
      width: 50px;
      height: 50px;
      background-color: #25D366;
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
      z-index: 9999;
      transition: transform 0.3s ease;
    }

    .whatsapp-btn:hover {
      transform: scale(1.1);
    }

    /* -------------------- Responsive -------------------- */
    @media (max-width: 768px) {
      .hero-image h1 { font-size: 2rem; }
    }

    @media (max-width: 480px) {
      h1, h2 { font-size: 1.5rem; }
      .btn { padding: 10px 20px; font-size: 0.9rem; }
      #cart-sidebar { max-width: 100%; }
    }

    /* Extra small devices (portrait phones) */
    @media (max-width: 479px) {
      body { font-size: 13px; }

      /* IMPORTANT FIX:
         You previously had:
         .border-white { position: relative; top: 150px; }
         That was pushing ONLY the "View Collections" button down on mobile,
         causing the misalignment. Removed to keep the same UI and alignment.
      */

      h1 { font-family: Georgia, 'Times New Roman', Times, serif; }

      .strong { color: orange; }
      .pair { color: rgb(89, 50, 179); }

      .elevate { position: relative; bottom: 330px; }
      #products { position: relative; bottom: 200px; }

      :root {
        --sp-primary: orange;
        --sp-secondary: purple;
        --sp-dark: #0b1020;
      }

      .upper {
        position: relative;
        isolation: isolate;
        margin: 2.5rem auto 0;
        padding: clamp(1.25rem, 2.5vw + 0.5rem, 2.5rem);
        max-width: 72rem;
        color: #0b1020;
        text-align: center;
        border-radius: 1.5rem;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08), 0 1px 0 rgba(2, 6, 23, 0.04) inset;
        backdrop-filter: blur(6px);
        border: 1px solid rgba(176, 194, 235, 0.06);
        display: block;
        top: 30px;
      }

      .upper::before {
        content: "";
        position: absolute;
        inset: -40%;
        background: conic-gradient(from 180deg at 50% 50%, rgba(79, 70, 229, 0.07), rgba(14, 165, 233, 0.07), rgba(79, 70, 229, 0.07));
        filter: blur(50px);
        z-index: -1;
      }

      .upper h1 {
        font-size: clamp(1.75rem, 3vw + 0.8rem, 3rem);
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 0.5rem;
        color: #0f172a;
      }

      .upper p {
        font-size: clamp(1rem, 0.8rem + 0.5vw, 1.25rem);
        color: #334155;
        margin: 0 auto;
        max-width: 58ch;
      }

      .upper .strong {
        color: var(--sp-primary);
        position: relative;
      }

      .upper .pair {
        color: var(--sp-secondary);
        position: relative;
      }

      .upper .strong::after,
      .upper .pair::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -0.25rem;
        margin: 0 auto;
        height: 6px;
        width: 100%;
        max-width: 6ch;
        border-radius: 9999px;
        background: currentColor;
        opacity: 0.15;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
      }

      .upper:hover .strong::after,
      .upper:hover .pair::after {
        transform: scaleX(1);
      }

      @keyframes shimmer {
        0% { transform: translateX(-100%) rotate(10deg); }
        100% { transform: translateX(200%) rotate(10deg); }
      }

      .upper::after {
        content: "";
        position: absolute;
        top: 0; left: -20%;
        width: 40%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
        mix-blend-mode: soft-light;
        animation: shimmer 4.5s linear infinite;
        pointer-events: none;
      }

      @media (max-width: 480px) {
        .upper { margin-top: 1.25rem; border-radius: 1rem; }
      }

      .object-fit-contain { object-fit: contain; }
      .dropdown:hover .dropdown-menu { display: block; }
    }

    /* Small devices (landscape phones) */
    @media (min-width: 480px) and (max-width: 767px) {
      body { font-size: 14px; }
    }

    /* Medium devices (tablets) */
    @media (min-width: 768px) and (max-width: 991px) {
      body { font-size: 15px; }
    }

    /* Large devices (small laptops) */
    @media (min-width: 992px) and (max-width: 1199px) {
      body { font-size: 16px; }
    }

    /* Extra large devices (desktops) */
    @media (min-width: 1200px) and (max-width: 1599px) {
      body { font-size: 17px; }
    }

    /* Ultra-wide (4K displays, TVs) */
    @media (min-width: 1600px) {
      body { font-size: 18px; }
    }

    /* Portrait mode */
    @media (orientation: portrait) {
      body { background-color: #f0f8ff; }
    }

    /* Landscape mode */
    @media (orientation: landscape) {
      body { background-color: #fff8dc; }
    }

    /* Touch-enabled devices */
    @media (hover: none) and (pointer: coarse) {
      body { background-color: #f5f5f5; }
    }