/* Generated from productos.html. Edit source HTML/design-system, then regenerate if needed. */
/* ─── RESET ─────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    img { display: block; max-width: 100%; }
    a { text-decoration: none; color: inherit; }
    button { cursor: pointer; border: none; background: none; font: inherit; }

    /* ─── TOKENS ─────────────────────────────────────────── */
    :root {
      --dark:     #1b2124;
      --white:    #ffffff;
      --light:    #f7f8f8;
      --gray:     #ececec;
      --dim:      #999999;
      --dim2:     #666d76;
      --dim3:     #d9d9d9;
      --link:     #333d48;
      --grid:     1080px;
      --ease:     cubic-bezier(0.16, 1, 0.3, 1);
      --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* ─── BASE TYPOGRAPHY ────────────────────────────────── */
    body {
      font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
      background: var(--white);
      color: var(--dark);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* ─── HEADER ─────────────────────────────────────────── */
      position: sticky; top: 0; z-index: 100;
      display: flex; align-items: center; justify-content: center;
      background: var(--white);
      padding: 12px 12px 12px 24px;
      border-bottom: 1px solid var(--gray);
    }
    .header-inner {
      width: 100%; max-width: 1184px;
      display: flex; align-items: center; justify-content: space-between;
    }
      font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: var(--dark);
    }
      position: relative;
      display: flex; align-items: center; gap: 8px;
      font-family: 'DM Sans', 'Neue Haas Grotesk Display Pro', sans-serif;
      font-weight: 500; font-size: 14px; line-height: 20px;
      color: #404953;
      padding: 12px 14px; border-radius: 12px;
      transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
    }
    .nav-item:hover { background: rgba(0,0,0,0.045); }
    .nav-item.active { color: #000000; }
      content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
      height: 3px; background: #000000; border-radius: 3px 3px 0 0;
    }

      display: flex; align-items: center; gap: 10px;
      background: var(--dark); color: var(--white);
      height: 48px; padding: 6px 6px 6px 20px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
      transition: background 0.25s var(--ease-out);
    }
    .header-cta-label { font-weight: 300; font-size: 16px; letter-spacing: 0.05em; white-space: nowrap; }
      display: flex; align-items: center; justify-content: center;
      width: 28px; height: 28px; background: var(--white); flex-shrink: 0;
    }


    /* ─── MOBILE NAV ─────────────────────────────────────── */
      position: fixed; inset: 0; background: var(--white); z-index: 999;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 8px; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
    }
    .mobile-nav-item {
      font-size: 32px; font-weight: 300; text-transform: uppercase;
      letter-spacing: 0.02em; color: var(--dark); padding: 12px 24px; transition: opacity 0.2s;
    }
    .mobile-nav-item:hover { opacity: 0.5; }
      position: absolute; top: 24px; right: 24px; font-size: 28px; color: var(--dark); padding: 8px;
    }

    /* ─── CONTENT SCREEN ─────────────────────────────────── */
    .content-screen {
      background: var(--white);
      display: flex; flex-direction: column; align-items: center;
      padding: 64px 24px;
    }
    .content { width: 100%; max-width: var(--grid); display: flex; flex-direction: column; gap: 56px; }

    /* ─── INTRO / HEADING ────────────────────────────────── */
    .intro-block { display: flex; flex-direction: column; gap: 16px; padding-right: 32px; }
    .intro-title { font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: 0.03em; color: var(--dark); margin-top: 12px; }
    .intro-lead { font-size: 18px; font-weight: 400; line-height: 24px; color: var(--dark); max-width: 733px; }

    /* ─── CATEGORIES / CARDS ─────────────────────────────── */
    .cards-section { display: flex; flex-direction: column; gap: 32px; }
    .cards-title { font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: 0.03em; color: #2e2e2e; }
    .product-list { display: flex; flex-direction: column; gap: 32px; }

    .product-card {
      display: flex; align-items: stretch;
      min-height: 207px; padding: 24px;
      background: var(--light);
      transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    }
    .product-card:hover {
      background: #ffffff;
      box-shadow: 0 12px 32px rgba(27,33,36,0.10);
      transform: translateY(-2px);
    }
    .card-body {
      flex: 1 0 0; min-width: 0;
      display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
    }
    .card-left { display: flex; align-items: flex-start; gap: 27px; }
    .card-num {
      font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 16px;
      letter-spacing: 0.05em; color: var(--dark); width: 25px; flex-shrink: 0; padding-top: 6px;
    }
    .card-headline { display: flex; flex-direction: column; gap: 24px; }
    .card-title {
      font-size: 40px; font-weight: 700; line-height: 1.0; text-transform: uppercase;
      color: var(--dark); width: 323px;
    }
    .card-arrow { color: var(--dark); transition: transform 0.35s var(--ease-out); }
    .product-card:hover .card-arrow { transform: translateX(8px); }
    .card-arrow svg { display: block; width: 54px; height: 20.66px; transform: rotate(180deg); }
    .card-subcats {
      font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 16px;
      letter-spacing: 0.05em; color: var(--dark); width: 324px;
      display: flex; flex-direction: column; gap: 16px;
    }
    .card-thumb {
      width: 280px; flex-shrink: 0; overflow: hidden;
      align-self: stretch;
    }
    .card-thumb img { width: 100%; height: 100%; object-fit: cover; }

    /* ─── FOOTER ─────────────────────────────────────────── */
    #footer { background: var(--dark); padding: 64px 0 0; border-top: 1px solid rgba(255,255,255,0.08); }
    .footer-grid { max-width: var(--grid); margin: 0 auto; padding: 0 24px; }
    .footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 64px; }
    .footer-col-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
    .footer-col-links { display: flex; flex-direction: column; gap: 12px; }
    .footer-link { font-size: 16px; font-weight: 300; color: #bfc2c6; transition: color 0.2s; }
    .footer-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
    .footer-social { display: flex; gap: 16px; margin-top: 16px; }
    .footer-social-link { color: #bfc2c6; transition: color 0.2s; }
    .footer-social-link:hover { color: var(--white); }
    .footer-social-link svg { width: 20px; height: 20px; }
    .footer-wordmark {
      display: block; width: 100%; font-size: clamp(72px, 15vw, 179px); font-weight: 700;
      line-height: 0.85; letter-spacing: -0.01em; color: var(--white); margin-bottom: 32px;
    }
    .footer-bottom {
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
      border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0 24px;
    }
    .footer-legal { font-size: 16px; font-weight: 400; color: var(--white); }

    /* ─── RESPONSIVE ─────────────────────────────────────── */
    @media (max-width: 1120px) { :root { --grid: 100%; } }

    @media (max-width: 900px) {
      .header-nav { display: none; }
      .header-cta { display: none; }
      .menu-toggle { display: flex; }
      .footer-nav { grid-template-columns: repeat(2, 1fr); }

      .card-body { flex-direction: column; gap: 24px; }
      .card-thumb { width: 100%; height: 200px; }
      .card-title { width: auto; font-size: 32px; }
      .card-subcats { width: auto; }
    }

    @media (max-width: 640px) {
      .content-screen { padding: 40px 20px; }
      .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px; }
      .card-left { flex-wrap: wrap; }
      .footer-bottom { flex-direction: column; align-items: flex-start; }
    }

    /* WordPress page layout hardening */
    body.cantovi-page-productos .content-screen {
      width: 100%;
      align-items: stretch;
      padding: 64px clamp(20px, 4vw, 32px) 64px;
    }

    body.cantovi-page-productos.admin-bar .content-screen {
      padding-top: 96px;
    }

    /* Desktop/tablet: cabecera → breadcrumb 48px (feedback 24-nov). */
    @media (min-width: 641px) {
      body.cantovi-page-productos .content-screen,
      body.cantovi-page-productos.admin-bar .content-screen { padding-top: 48px; }
    }

    body.cantovi-page-productos .content {
      width: min(100%, 1080px);
      max-width: 1080px;
      margin-inline: auto;
    }

    body.cantovi-page-productos .product-card {
      width: 100%;
    }

    @media (max-width: 900px) {
      body.cantovi-page-productos .content-screen,
      body.cantovi-page-productos.admin-bar .content-screen {
        padding: 40px 20px;
      }
    }

    /* ─── Product card · imagen 1:1 (Figma 51417:8613) ───── */
    .card-thumb { width: 280px; height: 280px; align-self: flex-start; aspect-ratio: 1 / 1; }
    @media (max-width: 900px) {
      .card-thumb { width: 295px; max-width: 100%; height: auto; }
    }


    /* ─── Productos · Mobile NEW (Figma AOUiO80By0oFlUiCSK1f6U · 52632:5809) ───
       Solo ≤640px. Card = Card_product_main (Device=Mobile): nº encima del
       título, flecha a la derecha del título, subcategorías subrayadas,
       imagen 1:1 a todo el ancho. H1: tamaño vía tokens page-hero-title. */
    @media (max-width: 640px) {
      body.cantovi-page-productos .content-screen,
      body.cantovi-page-productos.admin-bar .content-screen { padding: 16px 16px 48px; }
      body.cantovi-page-productos .content { gap: 24px; }
      /* Header Solid · Mobile: línea inferior (Foreground/Static/Divider) */
      body.cantovi-page-productos #header.cantovi-header { border-bottom: 1px solid #bfc2c6; }

      /* Intro: breadcrumb → 24 → título → 16 → descripción */
      body.cantovi-page-productos .intro-block { gap: 16px; padding-right: 0; }
      body.cantovi-page-productos .intro-block .breadcrumb { margin-bottom: 8px; }
      body.cantovi-page-productos .intro-title { margin-top: 0; letter-spacing: 0; }
      body.cantovi-page-productos .intro-lead {
        font-size: var(--font-size-16, 16px); line-height: 24px;
        font-weight: var(--font-weight-medium, 500); max-width: none;
      }

      /* «Nuestras categorías:» · Heading/Mobile/H5/Medium 18/24 */
      body.cantovi-page-productos .cards-section { gap: 16px; }
      body.cantovi-page-productos .cards-title {
        font-size: var(--font-size-18, 18px); line-height: 24px;
        font-weight: var(--font-weight-medium, 500); letter-spacing: 0;
      }
      body.cantovi-page-productos .product-list { gap: 24px; }

      /* Card */
      body.cantovi-page-productos .product-card { min-height: 0; padding: 24px; }
      body.cantovi-page-productos .card-body { flex-direction: column; align-items: stretch; gap: 24px; }
      body.cantovi-page-productos .card-left {
        flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 27px; width: 100%;
      }
      body.cantovi-page-productos .card-num {
        font-family: var(--font-family-base); font-weight: var(--font-weight-light, 300);
        font-size: var(--font-size-16, 16px); line-height: normal; letter-spacing: 0.8px;
        width: auto; padding: 0; height: 1px; overflow: visible; /* Figma: caja 1px + gap 27 */
      }
      body.cantovi-page-productos .card-headline {
        flex-direction: row; align-items: flex-start; gap: 27px; width: 100%;
      }
      body.cantovi-page-productos .card-title {
        flex: 1 1 0; min-width: 0; width: auto;
        font-size: var(--font-size-28, 28px); line-height: 36px; font-weight: var(--font-weight-bold, 700);
        text-transform: none; letter-spacing: 0; overflow-wrap: break-word;
      }
      /* Flecha 54×20.66 centrada con la primera línea del título (36px) */
      body.cantovi-page-productos .card-arrow { flex: 0 0 54px; margin-top: 7.67px; }
      body.cantovi-page-productos .card-subcats { width: auto; gap: 16px; align-items: flex-start; }
      body.cantovi-page-productos .card-subcats span {
        font-family: var(--font-family-base); font-weight: var(--font-weight-medium, 500);
        font-size: var(--font-size-16, 16px); line-height: 16px; letter-spacing: 0.48px;
        color: var(--link, #333d48); overflow-wrap: anywhere;
        text-decoration: none;
      }
      body.cantovi-page-productos .card-thumb {
        width: 100%; max-width: none; height: auto; aspect-ratio: 1 / 1; align-self: stretch;
      }
      body.cantovi-page-productos .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
    }

    /* ─── Productos · anclas + divider ──────────────────────────────────
       Anclas = Card scroll variante circular (.cscroll--circle, main.css).
       Desktop/tablet: Figma 52656:17875 (gap 24, label P2 14/20).
       Móvil (≤640): Figma 52643:14424 (gap 8, label 12/18, sangra a la derecha). */
    body.cantovi-page-productos .productos-anchors {
      display: flex; gap: 24px; align-items: flex-start;
      overflow-x: auto; overscroll-behavior-x: contain;
      scroll-snap-type: x proximity; scrollbar-width: none;
    }
    body.cantovi-page-productos .productos-anchors::-webkit-scrollbar { display: none; }
    body.cantovi-page-productos .productos-anchors .cscroll { scroll-snap-align: start; }
    body.cantovi-page-productos .product-card { scroll-margin-top: 96px; }

    /* Desktop/tablet · espaciado de página (Figma 52656:17875):
       64 header→breadcrumb · breadcrumb→H1 ≈ 28 (16 gap + 12 margin del H1)
       · 32 entre intro / anclas / divider / categorías · título 24/32 Medium. */
    @media (min-width: 641px) {
      body.cantovi-page-productos .content { gap: 32px; }
      body.cantovi-page-productos .intro-block .breadcrumb { margin-bottom: 0; }
      body.cantovi-page-productos .productos-anchors .cscroll--circle {
        --cscroll-label-size: var(--font-size-14, 14px);
        --cscroll-label-line: 20px;
      }
      body.cantovi-page-productos .cards-title {
        font-size: var(--font-size-24, 24px); line-height: 32px;
        font-weight: var(--font-weight-medium, 500); letter-spacing: 0;
      }
    }

    @media (max-width: 640px) {
      body.cantovi-page-productos .productos-anchors {
        gap: 8px;
        margin-right: -16px; padding-right: 16px; /* el carrusel sangra hasta el borde */
      }
    }
