/* ==========================================================================
   Catálogo de celulares — estilos globales
   Estética minimalista tipo Apple. Mobile-first.
   ========================================================================== */

   /* 1. Declarar los pesos de SF Pro desde el CDN de jsDelivr */

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('https://cdn.jsdelivr.net/npm/sf-pro@1.0.3/font/woff2/sf-pro-display_regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('https://cdn.jsdelivr.net/npm/sf-pro@1.0.3/font/woff2/sf-pro-display_medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('https://cdn.jsdelivr.net/npm/sf-pro@1.0.3/font/woff2/sf-pro-display_semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('https://cdn.jsdelivr.net/npm/sf-pro@1.0.3/font/woff2/sf-pro-display_bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


@view-transition {
  navigation: auto;
}
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    --color-text: #1d1d1f;
    --color-muted: #6e6e73;
    --color-line: rgba(0, 0, 0, 0.09);
    --color-line-strong: rgba(0, 0, 0, 0.16);
    --accent: #0071e3;
    --accent-contrast: #ffffff;
    --accent-text: #0071e3;
    --whatsapp: #25d366;
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.16);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container: 1024px;
    --header-height: 52px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin:0;
    padding:0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}


body.menu-open,
body.search-open {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: color-mix(in srgb, var(--accent) 22%, white);
}

[hidden] {
    display: none !important;
}

.container {
    width: min(100% - 24px, var(--container));
    margin-inline: auto;
}

.section {
    padding-block: clamp(56px, 8vw, 104px);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 500;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--color-text);
    color: #fff;
    font-size: 14px;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: none;
}

.icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm {
    width: 17px;
    height: 17px;
}

.icon-xs {
    width: 14px;
    height: 14px;
}








/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--color-line);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: auto;
    height: 24px;
}

.main-nav {
    display: none;
    align-items: center;
    gap: 26px;
    margin-left: 12px;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 400;
    opacity: 0.82;
    transition: opacity 0.2s var(--ease);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.24s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
    opacity: 1;
}

.nav-link.is-active::after {
    width: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

.icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text);
    transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.icon-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.icon-button:active {
    transform: scale(0.94);
}

.cart-count {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

/* Menú off-canvas */

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    border: 0;
    background: rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.28s var(--ease);
}

.menu-backdrop.is-open {
    opacity: 1;
}

.site-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    width: min(370px, 88vw);
    padding: 20px 22px 28px;
    background: var(--color-bg);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.16);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0.32s var(--ease);
}

.site-menu.is-open {
    transform: none;
    visibility: visible;
}

.menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-line);
}

.menu-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.menu-label {
    padding: 16px 0 8px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-label:first-child {
    padding-top: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--color-line);
    font-size: 17px;
    font-weight: 500;
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.menu-link:hover {
    color: var(--accent-text);
    padding-left: 5px;
}

.menu-link .icon {
    color: var(--color-muted);
}

.menu-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 11px;
    font-weight: 700;
    vertical-align: 1px;
}

.menu-footer {
    display: grid;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
}

.menu-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 13px;
}

.menu-instagram:hover {
    color: var(--accent-text);
}

/* Buscador overlay */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.search-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(88vh, 760px);
    overflow-y: auto;
    background: var(--color-bg);
    border-radius: 0 0 28px 28px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-18px);
    transition: transform 0.28s var(--ease);
}

.search-overlay.is-open .search-panel {
    transform: none;
}

.search-panel-head {
    padding-top: 20px;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 12px;
    border-bottom: 1px solid var(--color-line);
}

.search-field-icon {
    width: 24px;
    height: 24px;
    color: var(--color-muted);
}

.search-field input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 21px;
    font-weight: 400;
    letter-spacing: -0.01em;
    outline: none;
    appearance: none;
}

.search-field input::placeholder {
    color: #a1a1a6;
}

.search-field input::-webkit-search-cancel-button {
    display: none;
}

.search-close {
    flex: 0 0 auto;
}

.search-panel-body {
    padding-top: 18px;
    padding-bottom: 28px;
}

.search-hint {
    color: var(--color-muted);
    font-size: 13px;
}

.search-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.search-result {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 16px;
    transition: background-color 0.2s var(--ease);
}

.search-result:hover {
    background: var(--color-bg-alt);
}

.search-result-media {
    display: block;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-bg-alt);
}

.search-result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.search-result-meta {
    display: block;
    margin-top: 2px;
    color: var(--color-muted);
    font-size: 12px;
}

.search-result-price {
    display: grid;
    justify-items: end;
    gap: 1px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.search-result-price small {
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 400;
}

.search-empty {
    padding: 36px 12px;
    text-align: center;
    color: var(--color-muted);
    font-size: 14px;
}

.search-loading {
    padding: 24px 8px;
    color: var(--color-muted);
    font-size: 14px;
}





body {
background-color: #000;
color: #ffffff;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-family: var(--font);
}

.home-header, .home-content{
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align:center;
}

    /* CONTENEDOR PRINCIPAL */
    .hero-container {
      position: relative;
      width: 100%;
      height: 100vh;
      padding: 20px 24px 40px;
      overflow: hidden;
      background-color: #050505;
    }

    /* IMAGEN DE FONDO (ABARCA CASI TODA LA PANTALLA) */
    .bg-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      z-index: 1;
      opacity: 0.75;
    }

    /* DEGRADADO OSCURO */
    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        180deg, 
        rgba(0,0,0,0.85) 0%, 
        rgba(0,0,0,0.2) 35%, 
        rgba(0,0,0,0.3) 65%, 
        rgba(0,0,0,0.95) 100%
      );
      z-index: 2;
    }

    /* CONTENIDO */
    .container {
      position: relative;
      z-index: 3;
      width: 100%;
      max-width: 450px; /* Tamaño máximo por defecto para móvil */
      max-height: 80vh;
      height:100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content:space-between;
      margin: 0 auto;
      gap:96px;
      padding-top:36px;
    }

    /* ESPACIADOR CENTRAL */
    .spacer {
      flex-grow: 1;
      min-height: 150px;
    }

    /* CATEGORÍAS */
    .categories {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      font-size: 0.85rem;
      font-weight: 400;
      color: #e0e0e0;
      margin-bottom: 30px;
      width: 100%;
      flex-wrap: wrap;
    }

    .categories span.separator {
      color: #666;
    }

    /* CARACTERÍSTICAS */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      width: 100%;
      text-align: center;
      margin-bottom: 35px;
    }

    .feature-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 0.7rem;
      color: #d1d1d1;
      line-height: 1.25;
      padding: 0 5px;
    }

    .feature-item svg {
      width: 28px;
      height: 28px;
      margin-bottom: 8px;
      stroke: #ffffff;
      fill: none;
      stroke-width: 1.5;
    }

    /* BOTÓN CATÁLOGO */
    .btn-catalog {
      background-color: #ffffff;
      color: #000000;
      width: 100%;
      max-width: 380px;
      padding: 14px 28px;
      border-radius: 30px;
      border: none;
      font-size: 0.95rem;
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      text-decoration: none;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
      transition: all 0.3s ease;
    }

    .btn-catalog:hover {
      background-color: #e2e2e2;
      transform: translateY(-2px);
    }

    .btn-catalog span {
      margin: 0 auto;
    }

    .btn-catalog svg {
      width: 18px;
      height: 18px;
      stroke: #000000;
      stroke-width: 2.5;
    }

    /* ===================================================
       ESTILOS DESKTOP / PANTALLAS GRANDES (Min-width: 768px)
       =================================================== */
    @media (min-width: 768px) {
      .hero-container {
        padding: 40px 80px 60px;
      }

      /* En desktop la imagen se posiciona mejor hacia la derecha */
      .bg-image {
        object-position: right center;
        opacity: 0.85;
      }

      /* Degradado ajustado horizontalmente para la versión Desktop */
      .overlay {
        background: linear-gradient(
          90deg, 
          rgba(0,0,0,0.95) 0%, 
          rgba(0,0,0,0.8) 40%, 
          rgba(0,0,0,0.2) 75%, 
          rgba(0,0,0,0.6) 100%
        );
      }
      /* Header en Desktop */


      .desktop-nav {
        display: flex;
        gap: 30px;
      }

      .desktop-nav a {
        color: #cccccc;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s;
      }

      .desktop-nav a:hover {
        color: #ffffff;
      }

      /* Menú hamburguesa más pequeño o secundario en Desktop */
      .menu-icon {
        display: none;
      }

      .header-titles {
        margin-top: 60px;
      }

      .header-titles h1 {
        font-size: 3.5rem;
        font-weight:500;
        line-height:1;
      }
      .bold-title{
        font-weight:700;
      }
      .header-titles p {
        font-size: 0.95rem;
        margin-top: 20px;
        letter-spacing: 3px;
      }
      .header-desc{
          text-transform: uppercase;
      }

      .categories {
        font-size: 1rem;
        gap: 16px;
        margin-bottom: 40px;
      }

      .features-grid {
        max-width: 600px;
        gap: 20px;
        margin-bottom: 50px;
      }


      .btn-catalog {
        max-width: 320px;
        padding: 16px 32px;
        font-size: 1rem;
      }
    }











/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 359px){
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (min-width: 560px) {
    .container {
        width: min(100% - 48px, var(--container));
    }

    .product-grid {
        gap: 16px;
    }

    .product-card-body {
        padding: 16px;
    }

    .product-name {
        font-size: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .carousel-item {
        flex-basis: 46%;
    }

    .data-table td:first-child {
        padding-bottom: 12px;
    }
}

@media (min-width: 768px) {
    :root {
        --header-height: 56px;
    }
    .category-card img {
        width: 80%;
        height: 80%;
    }
    .brand img {
        height: 36px;
    }

    .hero {
        padding-top: 56px;
    }

    .hero-grid {
        gap: 48px;
    }

    .hero-float-card {
        left: 24px;
        bottom: 24px;
        padding: 16px 20px;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .benefit-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 26px;
    }

    .product-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cta-band {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cta-band .btn {
        align-self: center;
        flex: 0 0 auto;
    }

    .page-hero {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding: 72px 0 24px;
    }

    .page-hero > .btn {
        margin-bottom: 6px;
        flex: 0 0 auto;
    }

    .catalog-toolbar {
        padding-bottom: 36px;
    }

    .category-hero-media{
        max-height:520px;
        margin-top:56px;
    }
    .category-actions {
        margin-top: 32px;
    }

    .category-card-content{
        padding:24px;
    }

    .category-card-arrow-right{
        padding:24px;
    }

    .category-card-arrow-right svg{
        font-size:24px;
    }

    .product-grid {
        gap: 20px;
    }

    .carousel {
        gap: 16px;
    }

    .carousel-item {
        flex-basis: 30%;
    }

    .carousel-controls {
        display: flex;
    }

    .product-detail {
        padding-bottom: 40px;
    }


    .cart-item {
        grid-template-columns: 96px minmax(0, 1fr);
        padding: 16px;
    }

    .cart-item-media {
        width: 96px;
        height: 96px;
    }

    .list-toolbar {
        margin-bottom: 20px;
    }

    .list-sort-mobile {
        display: none;
    }

    .table-wrap {
        overflow-x: auto;
        border: 1px solid var(--color-line);
        border-radius: var(--radius-md);
        background: #fff;
    }

    .data-table {
        min-width: 720px;
    }

    .data-table thead {
        display: table-header-group;
    }

    .data-table tbody {
        display: table-row-group;
    }

    .data-table tr {
        display: table-row;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        transition: background-color 0.2s var(--ease);
    }

    .data-table tr:hover {
        background: var(--color-bg-alt);
    }

    .data-table th {
        padding: 14px 18px;
        border-bottom: 1px solid var(--color-line);
        color: var(--color-muted);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .data-table th.is-numeric,
    .data-table td.is-numeric {
        text-align: right;
    }

    .data-table th.is-numeric .sort-button {
        justify-content: flex-end;
        width: 100%;
    }

    .data-table td {
        display: table-cell;
        padding: 14px 18px;
        border-bottom: 1px solid var(--color-line);
        font-size: 13px;
    }

    .data-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .data-table td:first-child {
        padding: 12px 18px;
    }

    .data-table td:not(:first-child)::before {
        content: none;
    }

    .sort-button {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        letter-spacing: inherit;
        text-transform: inherit;
    }

    .sort-button:hover {
        color: var(--color-text);
    }

    .sort-icon {
        opacity: 0.35;
        transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
    }

    th[aria-sort="ascending"] .sort-icon {
        opacity: 1;
        transform: rotate(180deg);
    }

    th[aria-sort="descending"] .sort-icon {
        opacity: 1;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 0.8fr 1fr;
        gap: 40px;
    }

    .footer-bottom {
        padding-bottom: 26px;
    }

    .search-panel {
        margin-top: 0;
    }

    .search-result {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        padding: 12px;
    }

    .search-result-media {
        width: 72px;
        height: 72px;
    }

    .search-result-title {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .product-info {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
    }
    .product-title{
        order:2;
        text-align:left;
    }
    .product-gallery{
        grid-column: 1;
        grid-row: 1 / span 5;
        order:1;
    }

    .product-gallery-frame {
        position: sticky;
        top: calc(var(--header-height) + 20px);
    }

    .product-category, .product-title, .product-subtitle, .product-description, .product-price-block, .option-group, .product-details, .product-buy, .product-whatsapp, .product-benefits{
        grid-column: 2;
    }
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
    }
    .category-card {
        border-radius: var(--radius-lg);
    }
    .product-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }


    .hero {
        padding: 72px 0 40px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        gap: 56px;
    }

    .hero-copy {
        padding-bottom: 16px;
    }

    .hero-media-card {
        border-radius: var(--radius-xl);
    }

    .hero-float-card {
        left: 28px;
        bottom: 28px;
    }

    .benefit-card {
        padding: 30px;
    }


    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-detail {
        padding-top: 8px;
    }

    .product-info {
        padding-top: 10px;
    }

    .product-title {
        font-size: clamp(2.8rem, 3.8vw, 4rem);
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 40px;
        align-items: start;
    }

    .cart-summary {
        position: sticky;
        top: calc(var(--header-height) + 20px);
    }

    .site-menu {
        display: none;
    }

    .search-panel {
        max-width: 900px;
        margin-top: 24px;
        border-radius: var(--radius-lg);
    }

    .search-panel-head {
        padding-top: 28px;
    }

    .search-panel-body {
        padding-bottom: 36px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .search-result {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .search-result-media {
        width: 64px;
        height: 64px;
    }

    .search-result-price {
        grid-column: 2;
        justify-items: start;
        display: flex;
        gap: 6px;
        font-size: 12px;
    }

    .search-result-price small {
        font-size: 11px;
    }

    .hero-title {
        font-size: clamp(4.6rem, 6.6vw, 6.6rem);
    }
    .catalog-toolbar{
        display:block;
    }
}

@media (min-width: 1280px) {
    .container {
        width: min(100% - 64px, var(--container));
    }

    .header-inner {
        gap: 24px;
    }

    .main-nav {
        gap: 30px;
    }

    .hero-grid {
        gap: 72px;
    }
}

/* ===================================================
   ANIMACIONES DE ENTRADA (FADE & SLIDE)
   =================================================== */

/* Keyframes principales */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
      transform: translateY(24px);
  }
  to {
    opacity: 1;
      transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Aplicación a los elementos */

/* 1. Fondo e Imagen */
.bg-image {
  animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.overlay {
  animation: fadeIn 1s ease-out forwards;
}

/* 2. Títulos */
.header-titles h1 {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.header-desc {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

/* 3. Categorías */
.categories {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* 4. Grid de Características (Efecto Escalonado/Staggering) */
.feature-item {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.65s; }
.feature-item:nth-child(2) { animation-delay: 0.80s; }
.feature-item:nth-child(3) { animation-delay: 0.95s; }

/* 5. Botón de Catálogo con micro-interacción suave */
.btn-catalog {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Efecto hover interactivo para el botón */
.btn-catalog:hover {
  transform: translateY(-2px);
}

.btn-catalog svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-catalog:hover svg {
  transform: translateX(4px);
}

/* Opcional: Respeta las preferencias del usuario si prefiere reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .bg-image,
  .overlay,
  .header-titles h1,
  .header-desc,
  .categories,
  .feature-item,
  .btn-catalog {
    animation: fadeIn 0.4s ease-out forwards !important;
  }
}