/* 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: 14px;
    font-weight: 500;
  }

  .am-topbar-inner {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

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

  .am-topbar-left {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    min-width: 0;
  }

  .am-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: inherit;
  }

  .am-topbar-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(360px, 42vw);
  }

  .am-topbar-item--muted {
    opacity: 0.55;
  }

  .am-topbar-ico {
    flex: 0 0 auto;
    opacity: 0.92;
  }

  .am-topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
  }

  .am-topbar-socials {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .am-topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--sh-btn-text, #fff);
    opacity: 0.92;
    transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .am-topbar-social:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--sh-btn-text, #fff) 14%, transparent);
  }

  /* —— 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: var(--brand-logo-box-h);
    max-width: var(--brand-logo-box-w);
    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;
    /* Misma gama que mega-menú (--nav-* ← Theme) */
    background: var(--nav-bg, var(--sh-cream, #fff));
    border: 1px solid color-mix(in srgb, var(--nav-text, var(--sh-ink, #111)) 12%, transparent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-8px);
    transition:
      opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* 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;
    transform: translateX(-50%) translateY(0);
  }

  .am-subnav li + li {
    border-top: 1px solid color-mix(in srgb, var(--nav-text, var(--sh-ink, #111)) 10%, transparent);
  }

  .am-subnav a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--nav-text, var(--sh-ink, #111));
    border: 0;
    background: transparent;
    white-space: nowrap;
  }

  .am-subnav a:hover,
  .am-subnav a.is-active {
    color: var(--nav-hover, var(--sh-muted, #666));
    background: transparent;
  }

  .am-subnav a.is-active {
    color: var(--nav-active, var(--sh-btn-bg, #111));
  }

  /* —— 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;
    box-sizing: border-box;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-copies {
    position: relative;
    z-index: 3;
    max-width: min(920px, 72%);
    min-height: 12em;
    color: #fff;
    text-shadow: none;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-copy {
    max-width: min(920px, 72%);
    color: #fff;
    text-shadow: none;
  }

  /*
   * PNG 02 anclado al banner completo (hijo directo de .am-hero):
   * grande y pegado al borde inferior.
   */
  .kinlig-home .sh-home-desktop .am-hero > .sh-hero-pngs,
  .kinlig-home .sh-home-desktop .am-hero .sh-hero-pngs {
    position: absolute !important;
    z-index: 2;
    left: auto !important;
    right: max(12px, calc((100% - min(1240px, calc(100% - 64px))) / 2)) !important;
    bottom: 0 !important;
    top: 0 !important;
    width: min(52vw, 620px) !important;
    height: auto !important;
    margin: 0 !important;
    pointer-events: none;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-png {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
      opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.45s;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-png.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .kinlig-home .sh-home-desktop .am-hero .sh-hero-png img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 96% !important;
    object-fit: contain !important;
    object-position: bottom right !important;
    border-radius: 0 !important;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  }

  @media (prefers-reduced-motion: reduce) {
    .kinlig-home .sh-home-desktop .am-hero .sh-hero-png {
      transition: none;
      transform: none;
    }
  }

  @media (max-width: 980px) {
    .kinlig-home .sh-home-desktop .am-hero .sh-hero-copies,
    .kinlig-home .sh-home-desktop .am-hero .sh-hero-copy {
      max-width: 100%;
    }
    .kinlig-home .sh-home-desktop .am-hero > .sh-hero-pngs,
    .kinlig-home .sh-home-desktop .am-hero .sh-hero-pngs {
      right: 8px !important;
      width: min(58vw, 400px) !important;
    }
  }

  .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(52px, 5.8vw, 78px);
    font-weight: var(--sh-heading-weight, 700);
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
  }

  .kinlig-home .sh-home-desktop .am-hero h1 em {
    display: block;
    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: 56ch;
    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: var(--sh-btn-bg, #c4a574);
    color: var(--sh-btn-text, #0f1c28);
    border: 1px solid color-mix(in srgb, var(--sh-btn-bg, #c4a574) 80%, #000);
    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: var(--sh-btn-hover, #d4b888);
    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;
  }
}
