/* ===========================
   FUENTES
=========================== */

@font-face {
    font-family: "Encode Sans Condensed";
    src: url("../assets/fonts/EncodeSans/EncodeSansCondensed-Regular.ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: "Trade Gothic";
    src: url("../assets/fonts/TradeGothic/TradeGothic-CondensedBold.otf");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  /* ===========================
     VARIABLES GLOBALES
  =========================== */
  
  :root {
    box-sizing: border-box;
    --scale: 1;
  
    /* Colors */
    --color-primary: #1d3863;
    --color-accent: #f07e1b;
    --color-white: #ffffff;
    --color-gray: #646464;
  
    /* Font families */
    --font-trade-gothic: "Trade Gothic";
    --font-encode-condensed: "Encode Sans Condensed";
  
    /* Weights */
    --font-bold: 700;
    --font-regular: 400;
  
    /* Font sizes */
    --fs-sm: 18px;
    --fs-md: 20px;
    --fs-lg: 26px;
    --fs-xl: 30px;
    --fs-xxl: 55px;
    --fs-hero: 60px;
    --fs-display: 80px;
  
    /* Line heights */
    --lh-sm: 24px;
    --lh-md: 26px;
    --lh-lg: 52px;
    --lh-xl: 80px;
  }
  
  /* ===========================
     SISTEMA TIPOGRÁFICO
  =========================== */
  
  /* Título principal */
  .title-primary {
    font-family: var(--font-trade-gothic);
    font-weight: var(--font-bold);
    font-size: var(--fs-xxl);
    line-height: var(--lh-lg);
    color: var(--color-primary);
  }
  
  /* Subtítulo naranja */
  .subtitle-accent {
    font-family: var(--font-trade-gothic);
    font-weight: var(--font-bold);
    font-size: var(--fs-xl);
    line-height: var(--lh-md);
    color: var(--color-accent);
  }
  
  /* Texto normal gris */
  .text-body {
    font-family: var(--font-encode-condensed);
    font-weight: var(--font-regular);
    font-size: var(--fs-sm);
    line-height: var(--lh-sm);
    color: var(--color-gray);
  }
  
  /* Texto blanco uppercase */
  .text-inverse-uppercase {
    font-family: var(--font-encode-condensed);
    font-weight: var(--font-regular);
    font-size: var(--fs-md);
    line-height: 25px;
    color: var(--color-white);
    text-transform: uppercase;
  }
  
  /* Texto blanco especial (23px uppercase) */
  .text-inverse-large {
    font-family: var(--font-encode-condensed);
    font-weight: var(--font-regular);
    font-size: 23px;
    line-height: 29px;
    color: var(--color-white);
    text-transform: uppercase;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    min-width: 360px;
    min-height: 430px;
  }
  
  .barra-menu {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 0;
    width: 100%;
    height: calc(98px * var(--scale));
    background: url("../assets/images/Barra Menu.svg") no-repeat center/cover;
    z-index: 3;
  }
  
  .barra-menu-logo {
    background: transparent url("../assets/images/Iso Nostro.svg") center/contain no-repeat;
    width: 52px;
    height: 57px;
    margin-left: 125px;
  }
  
  .menu-texto {
    position: relative;
    right: 7.13%;
    gap: 10px;
    display: flex;
    align-items: center;
  }
  
  .menu-texto a,
  .menu-texto span {
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .menu-texto a {
    padding: 4px 0 4px 0;
  }
  
  .menu-texto a:hover {
    color: #ff6600;
  }
  
  .menu-texto .space-icon-instagram {
    width: 10px;
    height: 10px;
  }
  
  .menu-texto .instagram-icon {
    background: url("../assets/images/Logo Instagram.svg") no-repeat center/contain;
    width: 23px;
    height: 23px;
    right: 7.13%;
  }
  
  .nav-toggle {
    display: none;
    position: absolute;
    top: 50px;
    width: 50px;
    height: 58.5px;
    background: transparent;
    background-color: var(--color-primary);
    border: none;
    cursor: pointer;
    z-index: 10;
    flex-direction: column;
    justify-content: space-around;
  }
  
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(13.5px, 13.5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(13.5px, -13.5px);
  }
  
  .mobile-nav {
    display: none;
    position: absolute;
    top: 108.5px;
    width: auto;
    min-width: 200px;
    background-color: var(--color-primary);
    padding: 20px;
    border-radius: 0;
    z-index: 9;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  
  .mobile-nav a {
    text-decoration: none;
    color: var(--color-white);
    padding: 8px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
  }
  
  .mobile-nav a:hover {
    color: var(--color-accent);
  }
  
  .mobile-nav-logo {
    background: transparent url("../assets/images/Iso Nostro.svg") center/contain no-repeat;
    width: 52px;
    height: 57px;
    padding: 0;
    display: block;
  }
  
  .mobile-nav-logo:hover {
    opacity: 0.8;
  }
  
  /* Page Header */
  .page-header {
    padding: 40px 125px;
    background-color: var(--color-white);
  }
  
  .page-title-container {
    min-width: 275px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .page-title {
    font-family: var(--font-trade-gothic);
    font-weight: var(--font-bold);
    font-size: var(--fs-display);
    line-height: var(--lh-xl);
    color: var(--color-primary);
    text-transform: uppercase;
  }
  
  .page-subtitle {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Products Container */
  .products-container {
    padding: 40px 125px 128px 125px;
    background-color: var(--color-white);
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px 60px;
    transition: transform 0.5s ease;
    will-change: transform;
  }
  
  .product-item {
    min-width: 0;
    flex-shrink: 0;
  }
  
  /* Carousel Arrows */
  .carousel-arrow {
    background: transparent;
    border: none;
    font-family: var(--font-trade-gothic);
    font-weight: var(--font-bold);
    font-size: 60px;
    line-height: 1;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
  }
  
  .carousel-arrow:hover {
    opacity: 0.8;
    transform: scale(1.1);
  }
  
  .carousel-arrow:active {
    transform: scale(0.95);
  }
  
  .product-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .product-image {
    width: 100%;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  /* Product Images - Desktop */
  .product-image.jamon-crudo {
    background-image: url("../assets/images/por-unidad-feteados/Jamon crudo feta.png");
  }
  
  .product-image.panceta-plancha {
    background-image: url("../assets/images/por-unidad-feteados/Panceta salada feta.png");
  }
  
  .product-image.panceta-arrollada {
    background-image: url("../assets/images/por-unidad-feteados/Panceta arrollada feta.png");
  }
  
  .product-image.bondiola {
    background-image: url("../assets/images/por-unidad-feteados/Bondiola feta.png");
  }
  
  .product-image.lomito {
    background-image: url("../assets/images/por-unidad-feteados/Lomito feta.png");
  }
  
  .product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--color-accent);
    padding-top: 10px;
  }
  
  .product-name {
    font-family: var(--font-trade-gothic);
    font-weight: var(--font-bold);
    font-size: var(--fs-lg);
    line-height: var(--lh-md);
    color: var(--color-primary);
  }
  
  .product-presentation {
    font-family: var(--font-encode-condensed);
    font-weight: var(--font-regular);
    font-size: var(--fs-sm);
    line-height: var(--lh-sm);
    color: var(--color-gray);
  }

  .wpcp-carousel-content-wrapper{
    height: calc(100svh - 356px) !important;
    min-height: 430px!important;
    padding: 0 125px !important;
  }

  .wpcp-carousel-content-wrapper .wpcp-all-captions {
    font-family: var(--font-trade-gothic) !important;
    font-weight: var(--font-bold) !important;
    font-size: var(--fs-lg) !important;
    line-height: var(--lh-md) !important;
    color: var(--color-primary) !important;
  }
  
  footer {
    width: 100%;
    height: calc(88px * var(--scale));
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4.48%;
    width: 100%;
    height: 73.86%;
  }
  
  .footer-logo {
    width: calc(233px * var(--scale));
    height: calc(57px * var(--scale));
    background: transparent url("../assets/images/Logo Spuches Horizontal.png")
      center/contain no-repeat;
  }
  
  .footer-copyright {
    text-align: center;
  }
  
  /* Responsive - Mobile */
  @media (max-width: 1080px) {
    .barra-menu {
      display: none;
    }
  
    .nav-toggle {
      display: flex;
    }
  
    .mobile-nav {
      display: flex;
    }
  
    .page-header {
      padding: 50px 60px 30px 60px;
    }
  
    .page-title {
      font-size: 60px;
      line-height: 70px;
    }

    .wpcp-carousel-content-wrapper{
      height: calc(100svh - 246px) !important;
      padding: 0 60px !important;
    }
  
    .products-container {
      padding: 30px 30px 333px 30px;
      flex-direction: row;
      align-items: center;
      gap: 10px;
    }
  
    .carousel-arrow {
      font-size: 40px;
      width: 40px;
      height: 40px;
    }
  
    .carousel-wrapper {
      width: 100%;
      flex: 1;
    }
  
    .product-grid {
      grid-template-columns: repeat(5, 1fr);
      gap: 30px;
    }
  
    .product-image {
      height: 300px;
    }
  
    .footer-container {
      padding: 0 20px 0 20px;
    }
  }
  
  @media (max-width: 470px) {
    .page-title {
      font-size: 50px;
      line-height: 60px;
    }
    .wpcp-carousel-content-wrapper{
      height: calc(100svh - 236px) !important;
    }
  }
  
  @media (max-width: 430px) {
    .page-title {
      font-size: 46px;
      line-height: 56px;
    }
    .wpcp-carousel-content-wrapper{
      height: calc(100svh - 232px) !important;
    }
    .nav-toggle {
      height: 50px;
    }
    .mobile-nav {
      top: 100px;
    }
    .nav-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(11.3px, 11.3px);
    }   
    .nav-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(11.3px, -11.3px);
    }
  }