/* Kinlig boutique — solo PC (≥721px). Móvil usa home-app / app-nav. */

.am-only-desktop {
  display: none !important;
}

.am-header-desktop {
  display: none;
}

@media (min-width: 721px) {
  :root {
    --am-orange: var(--sh-btn-bg, #000000);
    --am-ink: var(--sh-ink, #111111);
    --am-muted: var(--sh-muted, #666666);
    --am-line: var(--sh-line, #e8e8e8);
    --am-serif: var(--sh-font-heading, var(--sh-serif, "Cormorant Garamond", "Times New Roman", serif));
    --am-sans: var(--sh-font-body, var(--sh-sans, "Manrope", system-ui, sans-serif));
  }

  body.kinlig-body {
    background: var(--sh-cream, #fff);
    color: var(--am-ink, var(--sh-ink, #111));
  }

  .am-only-desktop {
    display: block !important;
  }

  /* Header móvil Kinlig oculto en PC */
  .am-header-mobile {
    display: none !important;
  }

  .am-header-desktop {
    display: block;
  }

  .kinlig-home .sh-header.sh-header-home,
  .sh-header {
    position: sticky;
    top: 0;
    background: var(--nav-bg, var(--sh-cream, #fff));
    backdrop-filter: none;
    border-bottom: 1px solid var(--am-line, var(--sh-line, #e8e8e8));
    box-shadow: none;
  }

  .kinlig-home .sh-header.is-solid {
    background: var(--nav-bg, var(--sh-cream, #fff));
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  }

  /* —— Top bar —— */
  .am-topbar {
    background: var(--sh-btn-bg, var(--am-orange));
    color: var(--sh-btn-text, #fff);
    font-size: 12px;
    font-weight: 500;
  }

  .am-topbar-inner {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 36px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }

  .am-topbar a {
    color: var(--sh-btn-text, #fff);
    text-decoration: none;
  }

  .am-topbar-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
  }

  .am-topbar-center {
    justify-self: center;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .am-topbar-right {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }

  /* —— Utility row: auth | logo | tools —— */
  .am-header-utility {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
  }

  .am-header-auth {
    justify-self: start;
    display: inline-flex;
    gap: 18px;
    font-size: 13px;
    color: #444;
  }

  .am-header-auth a:hover {
    color: var(--am-orange);
  }

  .am-header-desktop .sh-logo {
    justify-self: center;
  }

  .am-header-desktop .sh-logo img {
    width: auto;
    height: auto;
    max-height: min(80px, calc(56px * var(--brand-logo-scale, 1)));
    max-width: min(308px, calc(220px * var(--brand-logo-scale, 1)));
    object-fit: contain;
  }

  .am-header-tools {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .am-header-tools .lang-switch a {
    color: var(--sh-muted, #666);
  }

  .am-header-tools .lang-switch a.is-active,
  .am-header-tools .lang-switch a:hover {
    color: var(--sh-ink, #111);
  }

  .am-topbar .lang-switch a {
    color: color-mix(in srgb, var(--sh-btn-text, #fff) 62%, transparent);
  }

  .am-topbar .lang-switch a.is-active,
  .am-topbar .lang-switch a:hover {
    color: var(--sh-btn-text, #fff);
  }

  .am-topbar .lang-switch .sep {
    color: color-mix(in srgb, var(--sh-btn-text, #fff) 45%, transparent);
  }

  .am-header-tools .sh-icon-btn {
    color: var(--am-ink);
    border-color: transparent;
    background: transparent;
  }

  .am-header-tools .sh-icon-btn:hover {
    color: var(--am-orange);
  }

  /* —— Category nav —— */
  .am-nav-cats {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    padding: 0 24px;
    margin-bottom: -1px; /* la línea activa se sienta sobre el borde del header */
    border-top: 0;
  }

  .am-nav-cats > a,
  .am-nav-item > a {
    font-family: var(--am-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--am-ink);
    padding: 14px 12px 10px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    box-sizing: border-box;
  }

  .am-nav-cats > a:hover,
  .am-nav-cats > a.is-active,
  .am-nav-item > a:hover,
  .am-nav-item > a.is-active,
  .am-nav-item:hover > a {
    color: var(--am-orange);
    border-bottom-color: var(--am-orange);
  }

  .am-nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
  }

  .am-nav-chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
  }

  .am-subnav {
    position: absolute;
    left: 50%;
    top: calc(100% - 2px); /* solapa 2px: sin hueco que mate el hover */
    min-width: 180px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--nav-bg, var(--sh-card, #fff));
    border: 1px solid var(--am-line, var(--sh-line, #eee));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%);
    transition:
      opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.2s;
  }

  /* Puente invisible: el mouse puede bajar al menú sin “caer” al vacío */
  .am-subnav::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
  }

  .am-nav-item.has-sub:hover .am-subnav,
  .am-nav-item.has-sub:focus-within .am-subnav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .am-subnav li + li {
    border-top: 1px solid var(--am-line, var(--sh-line, #eee));
  }

  .am-subnav a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #555;
    border: 0;
    white-space: nowrap;
  }

  .am-subnav a:hover {
    color: var(--am-orange);
    background: #fafafa;
  }

  /* —— Hero boutique —— */
  .kinlig-home .sh-home-desktop .am-hero {
    position: relative;
    min-height: min(78vh, 640px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #111;
  }

  /* Degradado izquierda → derecha (legibilidad del texto) */
  .kinlig-home .sh-home-desktop .am-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.62) 32%,
      rgba(0, 0, 0, 0.28) 58%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-track,
  .kinlig-home .sh-home-desktop .am-hero .sh-hero-slide,
  .kinlig-home .sh-home-desktop .am-hero .sh-hero-slide a,
  .kinlig-home .sh-home-desktop .am-hero .sh-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-slide,
  .kinlig-home .sh-home-desktop .am-hero .sh-hero-slide a {
    overflow: hidden;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-panel {
    display: none;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 72px 0;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-copies,
  .kinlig-home .sh-home-desktop .am-hero .sh-hero-copy {
    max-width: 520px;
    color: #fff;
    text-shadow: none;
  }

  .kinlig-home .sh-home-desktop .am-hero .am-hero-kicker {
    display: inline-block;
    margin: 0 0 18px;
    padding: 8px 14px;
    background: #000;
    color: #fff;
    font-family: var(--am-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.2;
  }

  .kinlig-home .sh-home-desktop .am-hero h1 {
    margin: 0 0 16px;
    font-family: var(--sh-font-heading, var(--am-serif, var(--am-sans)));
    font-size: clamp(56px, 6.5vw, 84px);
    font-weight: var(--sh-heading-weight, 700);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
  }

  .kinlig-home .sh-home-desktop .am-hero h1 em {
    font-style: normal;
    font-family: inherit;
    font-weight: inherit;
    color: #fff;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-lead {
    margin: 0 0 30px;
    max-width: 38ch;
    font-family: var(--am-sans);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.94);
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-btn {
    display: inline-flex;
    background: var(--sh-btn-bg, #111);
    color: var(--sh-btn-text, #fff);
    border: 0;
    border-radius: 0;
    padding: 15px 30px;
    font-family: var(--am-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-btn:hover {
    background: var(--sh-btn-hover, var(--am-orange));
    color: var(--sh-btn-text, #fff);
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-perks,
  .kinlig-home .sh-home-desktop .am-hero .sh-stamp {
    display: none !important;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-dots {
    bottom: 22px;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-dots button {
    background: rgba(255, 255, 255, 0.45);
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-dots button.is-active {
    background: var(--am-orange);
  }

  /* —— Featured grid —— */
  .am-featured {
    padding: 72px 0 40px;
    background: #fff;
  }

  .am-featured-head {
    text-align: center;
    margin-bottom: 40px;
  }

  .am-featured-head h2 {
    margin: 0 0 8px;
    font-family: var(--am-sans);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .am-featured-head p {
    margin: 0;
    color: var(--am-muted);
    font-size: 14px;
  }

  .am-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 22px;
  }

  .am-product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .am-product-card .am-product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
  }

  .am-product-card .am-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
  }

  .am-product-card:hover .am-product-media img {
    transform: scale(1.04);
  }

  .am-product-card .am-product-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--am-ink);
  }

  .am-product-card .am-product-price {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--am-ink);
  }

  .am-product-card .am-add {
    margin-top: 4px;
    align-self: flex-start;
    border: 1px solid var(--sh-btn-bg, #111);
    background: var(--sh-cream, #fff);
    color: var(--sh-ink, #111);
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .am-product-card .am-add:hover {
    background: var(--sh-btn-bg, #111);
    border-color: var(--sh-btn-bg, #111);
    color: var(--sh-btn-text, #fff);
  }

  /* —— Categories —— */
  .am-cats {
    padding: 56px 0 72px;
    background: #fafafa;
  }

  .am-cats-head {
    text-align: center;
    margin-bottom: 36px;
  }

  .am-cats-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .am-cats-head p {
    margin: 0;
    color: var(--am-muted);
    font-size: 14px;
  }

  .am-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .am-cat-tile {
    position: relative;
    display: grid;
    place-items: end start;
    min-height: 240px;
    padding: 28px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%),
      #ddd;
    color: #fff;
    overflow: hidden;
    transition: transform 0.25s ease;
  }

  .am-cat-tile:hover {
    transform: translateY(-3px);
  }

  .am-cat-tile strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .am-cat-tile span {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 6px;
  }

  /* Trust bar — estilos en boutique-home.css */
  .kinlig-home .sh-home-desktop .am-trust {
    display: block;
  }

  /* WhatsApp float PC — chip editorial */
  .am-wa-float.am-only-desktop {
    display: block !important;
  }

  .am-wa-float {
    position: fixed;
    left: 22px;
    bottom: 24px;
    z-index: 45;
    text-decoration: none;
    color: #fff;
  }

  .am-wa-float-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.28s ease,
      box-shadow 0.28s ease;
  }

  .am-wa-float:hover .am-wa-float-inner {
    transform: translateY(-3px);
    background: #000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  }

  .am-wa-float .am-wa-ico {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #25D366;
    color: #fff;
  }

  .am-wa-float .am-wa-ico svg {
    display: block;
  }

  .am-wa-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-right: 4px;
  }

  .am-wa-kicker {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
  }

  .am-wa-float .am-wa-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.15;
    background: none;
    padding: 0;
  }

  .kinlig-home .sh-footer {
    display: block;
  }

  .kinlig-credit--solo {
    display: none !important;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .am-featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .am-cats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
