/* Mobile-first: las reglas base cubren desde 320 px. */
@media (max-width: 47.999rem) {
  .scroll-sparkle {
    width: 2.65rem;
    height: 2.65rem;
    opacity: 0;
  }

  .scroll-sparkle--left {
    left: 0.25rem;
  }

  .scroll-sparkle--right {
    right: 0.25rem;
  }

  .site-header__inner {
    min-height: 4.5rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.35rem;
  }

  .site-logo {
    width: 3.4rem;
    height: 3.4rem;
    justify-self: center;
    overflow: visible;
  }

  .site-logo picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
  }

  .header-actions {
    justify-self: end;
    gap: 0;
  }

  .header-action {
    min-width: 2.45rem;
    min-height: 2.45rem;
    padding: 0.55rem;
  }

  .menu-toggle {
    width: 2.8rem;
    justify-self: start;
    border: 1px solid rgb(241 91 181 / 68%);
    background: rgb(241 91 181 / 9%);
  }

  .header-actions a[href*="favoritos"] {
    display: none;
  }

  .mobile-navigation {
    width: min(88vw, 22rem);
  }

  .mobile-navigation__header .eyebrow {
    color: rgb(255 255 255 / 72%);
  }

  .mobile-navigation__social {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  .toast-region {
    right: 0.75rem;
    bottom: 4.5rem;
    width: calc(100% - 1.5rem);
  }

  .home-hero {
    min-height: auto;
    padding-block: clamp(2.5rem, 9vw, 4rem);
  }

  .home-hero__layout {
    gap: var(--space-5);
    justify-items: center;
    text-align: center;
  }

  .home-hero__layout > .stack {
    width: min(100%, 34rem);
    align-items: center;
  }

  .home-hero .hero-title {
    line-height: 0.82;
  }

  .home-hero .hero-title__single-line {
    margin-top: -0.16em;
    font-size: clamp(2.3rem, 11.4vw, 4.1rem);
  }

  .home-hero .lead {
    max-width: 31rem;
    margin-inline: auto;
    font-size: clamp(1.05rem, 5vw, 1.3rem);
  }

  .home-hero .cluster {
    width: min(100%, 22rem);
    flex-direction: column;
    align-items: stretch;
    margin-inline: auto;
  }

  .home-hero .button {
    width: 100%;
  }

  .home-hero__note {
    max-width: 25rem;
    margin-inline: auto;
    line-height: 1.5;
  }

  .home-hero__media {
    width: min(92%, 28rem);
    min-height: 0;
    margin-inline: auto;
  }

  .home-hero__media > img {
    width: min(100%, 25rem);
    min-height: 0;
    margin-inline: auto;
    transform: none;
  }

  .js body.page-entered .home-hero__media > img {
    animation-name: hero-image-enter-mobile;
  }

  .home-hero__media:hover,
  .home-hero__media:focus-within,
  .home-hero__media:hover > img,
  .home-hero__media:focus-within > img {
    transform: none;
  }

  .drop-section__layout {
    justify-items: center;
    text-align: center;
  }

  .drop-section__layout > .stack {
    width: min(100%, 30rem);
    justify-items: center;
    align-items: center;
  }

  .drop-section__layout .lead {
    max-width: 27rem;
    margin-inline: auto;
  }

  .drop-section__layout .cluster {
    width: 100%;
    justify-content: center;
  }

  .drop-section__layout .button {
    width: min(100%, 18rem);
  }

  .drop-section__layout .countdown {
    width: min(100%, 30rem);
    margin-inline: auto;
  }

  .drop-section__layout .countdown strong {
    font-size: clamp(1.7rem, 9vw, 2.7rem);
  }

  .home-hero__orbit,
  .home-hero::before,
  .y2k-decor,
  .floating-button--chat,
  .chatbot-panel {
    display: none;
  }

  .home-background-decor {
    position: fixed;
    z-index: 1;
    display: block;
    inset: 0;
    overflow: hidden;
  }

  .home-background-decor__item {
    display: none;
  }

  .home-background-decor__item--two,
  .home-background-decor__item--chain-corner {
    display: block;
    width: clamp(9rem, 42vw, 14rem);
    opacity: 0;
    filter:
      saturate(1.25)
      drop-shadow(0 0 0.65rem rgb(241 91 181 / 32%));
  }

  .home-background-decor__item--two {
    top: 11%;
    right: auto;
    left: -5.5rem;
    animation: mobile-chain-enter-left 6.5s ease-in-out infinite;
  }

  .home-background-decor__item--chain-corner {
    right: -5.5rem;
    bottom: 8%;
    animation: mobile-chain-enter-right 6.5s ease-in-out -3.25s infinite;
  }

  .floating-actions {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .floating-button--whatsapp {
    width: 2.8rem;
    height: 2.8rem;
  }

  @keyframes mobile-chain-enter-left {
    0%,
    100% {
      opacity: 0;
      transform: translate(-45%, -35%) rotate(-30deg);
    }

    28%,
    72% {
      opacity: 0.16;
      transform: translate(0, 0) rotate(-18deg);
    }
  }

  @keyframes hero-image-enter-mobile {
    from {
      opacity: 0;
      filter: blur(0.65rem) drop-shadow(0 0 0 rgb(241 91 181 / 0%));
      transform: translateY(2.5rem) scale(0.9);
    }

    to {
      opacity: 1;
      filter:
        blur(0)
        drop-shadow(0.5rem 0.8rem 0.9rem rgb(0 0 0 / 42%))
        drop-shadow(0 0 0.9rem rgb(241 91 181 / 38%));
      transform: translateY(0) scale(1);
    }
  }

  @keyframes mobile-chain-enter-right {
    0%,
    100% {
      opacity: 0;
      transform: translate(45%, 35%) rotate(145deg);
    }

    28%,
    72% {
      opacity: 0.14;
      transform: translate(0, 0) rotate(158deg);
    }
  }
}

@media (max-width: 63.999rem) {
  .header-actions [data-auth-account] {
    display: none;
  }
}

@media (min-width: 36rem) {
  .container {
    width: min(100% - 3rem, var(--container-width));
  }

  .product-grid {
    gap: var(--space-6) var(--space-4);
  }

  .modal__panel {
    padding: var(--space-6);
  }
}

@media (max-width: 47.99rem) {
  .comparison--real {
    width: min(100%, 32rem);
  }
}

@media (min-width: 48rem) {
  .info-editorial__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mood-entry-grid {
    grid-auto-columns: initial;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .mood-entry-card,
  .mood-entry-card--tall {
    min-height: clamp(19rem, 29vw, 27rem);
  }

  .mood-entry-card img,
  .mood-entry-card--tall img {
    min-height: clamp(19rem, 29vw, 27rem);
  }

  .custom-gallery__slide {
    min-width: calc(50% - var(--space-2));
  }

  .about-hero__layout,
  .about-intro__layout,
  .about-work__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-gallery {
    columns: 3;
  }

  .section {
    padding-block: var(--space-9);
  }

  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  }

  .home-hero__media {
    min-height: 35rem;
  }

  .home-hero__media > img {
    min-height: 0;
    max-height: 38rem;
  }

  .drop-section__layout,
  .story-grid,
  .faq-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moodboard__item {
    min-width: calc(50% - var(--space-2));
  }

  .y2k-decor {
    opacity: 0.13;
  }

  .y2k-decor--star {
    left: -2rem;
    width: 16rem;
    height: 16rem;
  }

  .y2k-decor--star img {
    width: 38rem;
  }

  .y2k-decor--phrase {
    right: -6rem;
  }

  .lookbook-grid {
    grid-template-columns: 1.3fr 0.8fr 1fr;
    align-items: end;
  }

  .lookbook-card--tall {
    min-height: 34rem;
  }

  .lookbook-card--pink {
    min-height: 25rem;
  }

  .lookbook-card--chrome {
    min-height: 30rem;
  }

  .benefits__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .benefits__grid p {
    padding: var(--space-3);
    border-right: 1px solid rgb(17 17 17 / 30%);
    border-bottom: 0;
  }

  .footer-newsletter {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr);
    align-items: end;
  }

  .newsletter-form {
    grid-template-columns: 1fr auto;
  }

  .site-footer__grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }

  .shop-hero__content {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
  }

  .shop-toolbar {
    grid-template-columns: auto minmax(15rem, 1fr) auto;
  }

  .shop-search {
    grid-column: auto;
    grid-row: auto;
    max-width: 30rem;
    justify-self: center;
  }

  .product-detail {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: start;
  }

  .product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 1.9rem + var(--space-4));
    grid-template-columns: 4.5rem 1fr;
    align-items: start;
  }

  .product-gallery__thumbnails {
    grid-row: auto;
    flex-direction: column;
    overflow: visible;
  }

  .product-gallery__thumbnails button {
    width: 100%;
  }

  .product-gallery__nav--prev {
    left: 6rem;
  }

  .product-form__actions {
    grid-template-columns: 1fr 1fr;
  }

  .product-favorite-button {
    grid-column: 1 / -1;
  }

  .product-suggestions .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cart-item {
    grid-template-columns: 8rem minmax(0, 1fr) auto;
  }

  .cart-item__price {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }

  .confirm-dialog__actions {
    grid-template-columns: 1fr 1fr;
  }

  .cart-recommendations .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .checkout-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-field--full {
    grid-column: 1 / -1;
  }

  .archive-hero__layout,
  .archive-custom__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8) var(--space-5);
  }

  .archive-card--offset {
    margin-top: var(--space-8);
  }

  .custom-hero__layout,
  .custom-manifesto__layout,
  .custom-request__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-hero__collage {
    min-height: 42rem;
  }

  .custom-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: var(--border-strong);
  }

  .custom-process__steps li {
    min-height: 14rem;
    border-right: var(--border-strong);
    padding: var(--space-5);
  }

  .custom-accepted__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .custom-request__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--space-6);
  }

  .custom-form-field--full,
  .custom-request__error {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .custom-gallery__slide {
    min-width: calc((100% - (var(--space-3) * 2)) / 3);
  }

  .moodboard__item {
    min-width: calc((100% - (var(--space-3) * 2)) / 3);
  }

  .container {
    width: min(100% - 5rem, var(--container-width));
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: none;
  }

  .site-logo {
    width: 9.25rem;
    height: 3.5rem;
    justify-items: start;
  }

  .site-logo img {
    width: 9.25rem;
    height: 9.25rem;
    transform: translateY(-2.88rem);
  }

  .desktop-navigation {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
  }

  .desktop-navigation__link {
    position: relative;
    padding-block: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 700;
    white-space: nowrap;
  }

  .desktop-navigation__link::after {
    position: absolute;
    right: 0;
    bottom: 0.45rem;
    left: 0;
    height: 2px;
    background: var(--color-pink);
    content: "";
    transform: scaleX(0);
    transition: transform var(--transition-fast);
  }

  .desktop-navigation__link:hover::after,
  .desktop-navigation__link[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .header-action__label {
    display: inline;
    font-size: var(--text-xs);
    font-weight: 700;
  }

  .header-action {
    min-width: var(--touch-target);
    min-height: var(--touch-target);
  }

  .header-actions [data-auth-account] {
    min-width: 7.25rem;
    min-height: 2.55rem;
    gap: 0;
    padding: 0.7rem 1.15rem;
    border: 1px solid rgb(255 255 255 / 58%);
    border-radius: 0.9rem;
    background: rgb(255 255 255 / 8%);
    color: var(--color-white);
    line-height: 1;
    white-space: nowrap;
  }

  .header-actions [data-auth-account] .header-action__account-icon {
    display: none;
  }

  .header-actions [data-auth-account]:hover,
  .header-actions [data-auth-account]:focus-visible {
    border-color: var(--color-pink);
    background: var(--color-pink);
    color: var(--color-text);
    transform: translateY(-1px);
  }

  .header-actions [data-auth-account] .header-action__label {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .header-action--cart {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    margin-left: 0.25rem;
    padding: 0.7rem;
    border: 1px solid rgb(255 255 255 / 62%);
    border-radius: 50%;
    background: rgb(255 255 255 / 9%);
  }

  .header-action--cart:hover,
  .header-action--cart:focus-visible {
    border-color: var(--color-pink);
    background: rgb(241 91 181 / 18%);
  }

  .header-action--cart .header-action__label {
    display: none;
  }

  .header-action--cart .counter {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
  }

  .home-hero__media {
    min-height: 42rem;
  }

  .home-hero__media > img {
    min-height: 0;
    max-height: 46rem;
  }

  .shop-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
  }

  .shop-filter-toggle,
  .filters-panel__close,
  .filters-backdrop {
    display: none;
  }

  .filters-panel {
    position: sticky;
    z-index: auto;
    top: calc(var(--header-height) + 1.9rem + var(--space-4));
    width: auto;
    height: auto;
    max-height: calc(100vh - var(--header-height) - 3.9rem);
    padding: 0 var(--space-5) var(--space-5) 0;
    border-right: var(--border-thin);
    box-shadow: none;
    transform: none;
    visibility: visible;
  }

  .filters-panel__header {
    align-items: end;
  }

  .filters-panel__actions .button:first-child {
    display: none;
  }

  .shop-results .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 0.6fr);
    align-items: start;
  }

  .cart-summary {
    position: sticky;
    top: calc(var(--header-height) + 1.9rem + var(--space-4));
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
    align-items: start;
  }

  .checkout-summary {
    position: sticky;
    top: calc(var(--header-height) + 1.9rem + var(--space-4));
  }
}

@media (min-width: 90rem) {
  .product-grid {
    gap-inline: var(--space-5);
  }
}

@media (hover: none) {
  .button:hover,
  .product-card:hover .product-card__media img {
    transform: none;
  }

  .product-card__quick-view {
    opacity: 1;
    transform: none;
  }

  .moodboard__hover {
    opacity: 1;
    transform: none;
  }

  .moodboard__photo:hover,
  .moodboard__photo:focus-visible,
  .moodboard__photo:nth-of-type(even):hover,
  .moodboard__photo:nth-of-type(even):focus-visible {
    box-shadow: none;
    transform: none;
  }

  .moodboard__photo:hover img,
  .moodboard__photo:focus-visible img {
    filter: none;
    transform: none;
  }
}

@media (max-width: 63.999rem) {
  .home-hero {
    min-height: clamp(38rem, 88svh, 52rem);
    isolation: isolate;
    background:
      radial-gradient(circle at 72% 24%, rgb(241 91 181 / 24%), transparent 34%),
      linear-gradient(160deg, #230817 0%, #130a10 48%, #050507 100%);
  }

  .home-hero::before {
    display: none;
  }

  .home-hero::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
      linear-gradient(
        180deg,
        rgb(17 5 12 / 28%) 0%,
        rgb(16 5 12 / 48%) 52%,
        rgb(5 5 7 / 92%) 100%
      ),
      url("../assets/images/Home/HomeFoto.png") center 38% / cover no-repeat;
    content: "";
    opacity: 0.38;
    filter: saturate(1.08) contrast(1.03);
    pointer-events: none;
  }

  .js body.page-entered .home-hero::after {
    animation: hero-background-enter 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .home-hero__layout {
    z-index: 2;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .home-hero__layout > .stack {
    width: min(100%, 36rem);
    align-items: center;
  }

  .home-hero__layout .lead {
    color: rgb(255 255 255 / 84%);
    text-shadow: 0 1px 1rem rgb(0 0 0 / 90%);
  }

  .home-hero__layout .cluster {
    justify-content: center;
  }

  .home-hero__media,
  .home-hero__orbit {
    display: none;
  }

  @keyframes hero-background-enter {
    from {
      opacity: 0;
      filter: saturate(0.75) contrast(0.95) blur(0.5rem);
      transform: scale(1.07);
    }

    to {
      opacity: 0.38;
      filter: saturate(1.08) contrast(1.03) blur(0);
      transform: scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js body.page-entered {
    opacity: 1;
    animation: none;
  }

  .js body.page-entered .site-header {
    animation: none;
  }

  [data-reveal],
  [data-reveal-section],
  .js [data-reveal],
  .js [data-reveal-section],
  .js [data-reveal-section].is-visible,
  .js [data-reveal].is-visible {
    opacity: 1;
    clip-path: none;
    filter: none;
    transform: none;
    transition: none;
  }

  .scroll-progress::before {
    transition: none;
  }


  .skeleton {
    animation: none;
  }

  .toast {
    animation: none;
  }

  .y2k-decor img {
    animation: none;
  }

  .home-background-decor__item--two,
  .home-background-decor__item--chain-corner {
    animation: none;
    opacity: 0.12;
  }

}

@media print {
  .skip-link,
  .button,
  .toast-region {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a {
    text-decoration: underline;
  }
}
