/* =========================================================
   VARIABLES GENERALES
========================================================= */
/* =========================================================
   VARIABLES GENERALES
========================================================= */

:root {
  --header-height: 92px;
  --header-action-width: 94px;
  --page-padding: 30px;
  --drawer-width: min(78vw, 720px);

  --background: #f5f2ed;
  --surface: #f5f2ed;
  --text: #111111;

  --line: #d32d32;
  --line-soft: rgba(211, 45, 50, 0.55);
  --overlay: rgba(12, 12, 12, 0.12);

  --heading-font: "DM Sans", sans-serif;
  --body-font: "DM Sans", sans-serif;

  --h1: 28px;
  --h1-huge: 34px;
  --h1-huge-md: 42px;
  --h2: 24px;
  --h3: 20px;
  --h4: 18px;
  --h5: 16px;
  --h6: 14px;
  --h6-small: 12px;

  --font-huge: 22px;
  --font-large: 16px;
  --font-big: 14px;
  --font-base: 12px;
  --font-small: 10px;
  --font-smallest: 8px;

  --title-font-weight: 400;

  --transition-fast: 240ms ease;
  --transition-medium: 520ms cubic-bezier(0.76, 0, 0.24, 1);
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--body-font);
  font-size: var(--font-base);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  background: var(--background);
  color: var(--text);

  font-family: var(--body-font);
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.35;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading,
body.has-open-panel {
  overflow: hidden;
}

button,
input,
textarea,
select {
  color: inherit;
  font-family: var(--body-font);
  font-size: inherit;
  font-weight: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;

  font-family: var(--heading-font);
  font-weight: var(--title-font-weight);
  line-height: 1.1;
}

h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

h4 {
  font-size: var(--h4);
}

h5 {
  font-size: var(--h5);
}

h6 {
  font-size: var(--h6);
}

p,
a,
button,
input,
span {
  font-family: var(--body-font);
}

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;
  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);

  white-space: nowrap;
}


/* =========================================================
   PRELOADER
========================================================= */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  visibility: visible;
  opacity: 1;

  background: var(--background);

  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

.preloader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.preloader__content {
  display: flex;
  width: min(340px, 68vw);
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.preloader__logo {
  width: min(250px, 58vw);
  max-height: 95px;

  object-fit: contain;

  opacity: 0;
  transform: translateY(12px);

  animation: preloaderLogoIn 900ms ease forwards;
}

.preloader__line {
  position: relative;

  width: 100%;
  height: 1px;
  overflow: hidden;

  background: rgba(17, 17, 17, 0.18);
}

.preloader__progress {
  position: absolute;
  inset: 0;

  background: var(--text);

  transform: scaleX(0);
  transform-origin: left;

  animation: preloaderProgress 1.8s ease forwards;
}

@keyframes preloaderLogoIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderProgress {
  0% {
    transform: scaleX(0);
  }

  70% {
    transform: scaleX(0.76);
  }

  100% {
    transform: scaleX(1);
  }
}


/* =========================================================
   HEADER STICKY
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;

  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: stretch;

  border-bottom: 1px solid var(--line);
  background: var(--background);
}

.site-header__brand {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;

  padding: 0 var(--page-padding);
}

.site-header__logo {
  width: auto;
  height: auto;

  max-width: 225px;
  max-height: 52px;

  object-fit: contain;
  object-position: left center;
}

.site-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
}

.header-action {
  position: relative;

  display: grid;
  width: var(--header-action-width);
  height: 100%;
  flex: 0 0 var(--header-action-width);
  place-items: center;

  border-left: 1px solid var(--line);

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.header-action:hover {
  background: rgba(17, 17, 17, 0.045);
}

.header-action:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: -4px;
}


/* =========================================================
   ICONOS DEL HEADER
========================================================= */

.header-action__icon {
  width: 30px;
  height: 30px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-action__icon--bag {
  width: 29px;
  height: 29px;
}

.cart-count {
  position: absolute;
  top: calc(50% - 24px);
  left: calc(50% + 7px);

  display: none;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--text);
  color: var(--surface);

  font-size: var(--font-smallest);
  line-height: 1;
}

.cart-count.is-visible {
  display: flex;
}

.menu-icon {
  display: flex;
  width: 29px;
  flex-direction: column;
  gap: 7px;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 1.2px;

  background: currentColor;

  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}


/* =========================================================
   BUSCADOR DESPLEGABLE
========================================================= */

.search-panel {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  z-index: 790;

  padding: 24px var(--page-padding);

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  border-bottom: 1px solid var(--line);
  background: var(--background);

  transform: translateY(-18px);

  transition:
    visibility var(--transition-medium),
    opacity var(--transition-medium),
    transform var(--transition-medium);
}

.search-panel.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;

  transform: translateY(0);
}

.search-panel__form {
  display: flex;
  width: 100%;
  align-items: center;

  border-bottom: 1px solid var(--text);
}

.search-panel__input {
  min-width: 0;
  flex: 1;

  padding: 14px 0;

  border: 0;
  outline: 0;
  background: transparent;

  font-family: var(--body-font);
  font-size: var(--font-large);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-panel__input::placeholder {
  color: rgba(17, 17, 17, 0.42);
}

.search-panel__submit {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
}

.search-panel__submit svg {
  width: 25px;
  height: 25px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   OVERLAY CON DESENFOQUE
========================================================= */

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  /*
    Capa clara semitransparente como en la referencia.
    El backdrop-filter desenfoca la página situada detrás.
  */
  background: rgba(245, 242, 237, 0.72);

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);

  transition:
    visibility 420ms ease,
    opacity 420ms ease;
}

.page-overlay.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}


/* =========================================================
   MENÚ LATERAL
========================================================= */

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 900;

  width: var(--drawer-width);
  overflow: hidden;

  visibility: hidden;

  border-left: 1px solid var(--line);
  background: var(--background);

  transform: translateX(100%);

  transition:
    visibility var(--transition-medium),
    transform var(--transition-medium);
}

.menu-drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}


/* =========================================================
   PANELES INTERIORES DEL MENÚ
========================================================= */

.menu-panel {
  position: absolute;
  inset: 0;

  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;

  overflow-x: hidden;
  overflow-y: auto;

  background: var(--background);

  transition:
    visibility 520ms ease,
    transform 520ms cubic-bezier(0.76, 0, 0.24, 1);
}


/* Panel principal visible inicialmente */

.menu-panel--main {
  visibility: visible;
  transform: translateX(0);
}


/* Panel principal cuando se abre Productos */

.menu-panel--main.is-behind {
  visibility: hidden;
  transform: translateX(-100%);
}


/* Panel de Productos oculto inicialmente */

.menu-panel--products {
  visibility: hidden;
  transform: translateX(100%);
}


/* Panel de Productos activo */

.menu-panel--products.is-active {
  visibility: visible;
  transform: translateX(0);
}


/* =========================================================
   CABECERA DEL MENÚ PRINCIPAL
========================================================= */

.menu-panel__header {
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: stretch;
  justify-content: flex-end;

  border-bottom: 1px solid var(--line);
}


/* =========================================================
   BOTÓN CERRAR
========================================================= */

.drawer-close {
  position: relative;

  width: var(--header-action-width);
  height: var(--header-height);
  flex: 0 0 var(--header-action-width);

  border-left: 1px solid var(--line);

  background: transparent;

  transition: background-color var(--transition-fast);
}

.drawer-close span {
  position: absolute;
  top: 50%;
  left: 50%;

  display: block;
  width: 22px;
  height: 1px;

  background: var(--text);
}

.drawer-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer-close:hover {
  background: rgba(17, 17, 17, 0.035);
}


/* =========================================================
   NAVEGACIÓN PRINCIPAL
========================================================= */

.menu-drawer__navigation {
  display: flex;
  width: 100%;
  flex-direction: column;

  padding: 0;
}

.menu-drawer__link {
  position: relative;

  display: flex;
  width: 100%;
  min-height: 81px;
  align-items: center;

  padding: 0 30px;

  border: 0;
  border-bottom: 1px solid var(--line);

  background: var(--background);
  color: var(--text);

  font-family: var(--body-font);
  font-size: var(--font-large);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: left;
  text-transform: uppercase;

  transition:
    padding-left var(--transition-fast),
    background-color var(--transition-fast);
}

.menu-drawer__link:hover {
  padding-left: 35px;
  background: rgba(17, 17, 17, 0.025);
}


/* =========================================================
   BOTÓN PRODUCTOS CON FLECHA
========================================================= */

.menu-drawer__link--submenu {
  justify-content: space-between;
  padding-right: 0;
  cursor: pointer;
}

.menu-drawer__link--submenu > span:first-child {
  min-width: 0;
  flex: 1;
}

.menu-drawer__arrow {
  position: relative;

  display: grid;
  width: 72px;
  height: 80px;
  flex: 0 0 72px;
  place-items: center;

  border-left: 1px solid var(--line);
}

.menu-drawer__arrow::before {
  content: "";

  display: block;
  width: 12px;
  height: 12px;

  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;

  transform: rotate(45deg);
}


/* =========================================================
   LOGO EN EL MENÚ
========================================================= */

.menu-drawer__brand {
  display: flex;
  min-height: 210px;
  margin-top: auto;
  align-items: center;

  padding: 30px;

  border-bottom: 1px solid var(--line);
}

.menu-drawer__logo {
  display: block;
  width: auto;
  height: auto;

  max-width: 220px;
  max-height: 60px;

  object-fit: contain;
  object-position: left center;
}


/* =========================================================
   PIE DEL MENÚ
========================================================= */

.menu-drawer__footer {
  display: flex;
  min-height: 115px;
  flex-direction: column;
  justify-content: center;
  gap: 16px;

  padding: 24px 30px;

  font-family: var(--body-font);
  font-size: var(--font-small);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu-drawer__footer p {
  margin: 0;
}

.menu-drawer__secondary-link {
  width: fit-content;

  border-bottom: 1px solid currentColor;
}


/* =========================================================
   CABECERA DEL SUBMENÚ PRODUCTOS
========================================================= */

.products-menu__header {
  display: grid;
  width: 100%;
  min-height: var(--header-height);

  grid-template-columns:
    var(--header-action-width)
    minmax(0, 1fr)
    var(--header-action-width);

  border-bottom: 1px solid var(--line);
}


/* Botón volver */

.products-menu__back {
  position: relative;

  display: grid;
  width: 100%;
  height: var(--header-height);
  place-items: center;

  border: 0;
  background: transparent;

  transition: background-color var(--transition-fast);
}

.products-menu__back:hover {
  background: rgba(17, 17, 17, 0.035);
}

.products-menu__back-arrow {
  display: block;
  width: 12px;
  height: 12px;

  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;

  transform: rotate(45deg);
}


/* Título central */

.products-menu__title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;

  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);

  font-family: var(--body-font);
  font-size: var(--font-big);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}


/* El botón cerrar del submenú ya utiliza .drawer-close */

.products-menu__header .drawer-close {
  width: 100%;
  height: var(--header-height);
  flex-basis: auto;
}


/* =========================================================
   NAVEGACIÓN DEL SUBMENÚ PRODUCTOS
========================================================= */

.products-menu__navigation {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.products-menu__link {
  display: flex;
  width: 100%;
  min-height: 59px;
  align-items: center;

  padding: 0 20px;

  border-bottom: 1px solid var(--line);

  background: var(--background);
  color: var(--text);

  font-family: var(--body-font);
  font-size: var(--font-big);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;

  transition:
    padding-left var(--transition-fast),
    background-color var(--transition-fast);
}

.products-menu__link:hover {
  padding-left: 25px;
  background: rgba(17, 17, 17, 0.025);
}

.products-menu__link--all {
  min-height: 68px;

  font-size: var(--font-small);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* =========================================================
   CARRITO LATERAL
========================================================= */

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 900;

  display: flex;
  width: var(--drawer-width);
  flex-direction: column;

  visibility: hidden;

  border-left: 1px solid var(--line);
  background: var(--background);

  transform: translateX(100%);

  transition:
    visibility var(--transition-medium),
    transform var(--transition-medium);
}

.cart-drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}


/* =========================================================
   CABECERA DEL CARRITO
========================================================= */

.cart-drawer__header {
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: stretch;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.cart-drawer__title {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;

  padding: 0 30px;

  font-family: var(--body-font);
  font-size: var(--font-big);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}


/* =========================================================
   CONTENIDO DEL CARRITO
========================================================= */

.cart-drawer__content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;

  padding: 30px;
}

.cart-drawer__empty {
  margin: 0;

  font-family: var(--body-font);
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}


/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

main {
  min-height: calc(100vh - var(--header-height));
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .menu-drawer,
  .cart-drawer {
    width: 78vw;
  }

  .menu-drawer__link {
    min-height: 72px;
    padding: 0 24px;

    font-size: var(--font-big);
  }

  .menu-drawer__link:hover {
    padding-left: 29px;
  }

  .menu-drawer__arrow {
    width: 68px;
    height: 71px;
    flex-basis: 68px;
  }

  .menu-drawer__brand {
    min-height: 190px;
    padding: 26px 24px;
  }

  .menu-drawer__footer {
    padding-right: 24px;
    padding-left: 24px;
  }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 640px) {
  .search-panel {
    top: 68px;
    padding: 18px 16px;
  }

  .search-panel__input {
    padding: 12px 0;
    font-size: var(--font-big);
  }

  .search-panel__submit {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .search-panel__submit svg {
    width: 22px;
    height: 22px;
  }

  .page-overlay {
    background: rgba(245, 242, 237, 0.78);

    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .menu-drawer,
  .cart-drawer {
    width: 100%;
  }

  .menu-panel__header,
  .products-menu__header,
  .cart-drawer__header {
    min-height: 68px;
  }

  .drawer-close {
    width: 56px;
    height: 68px;
    flex: 0 0 56px;
  }

  .drawer-close span {
    width: 20px;
  }

  .menu-drawer__link {
    min-height: 61px;
    padding: 0 17px;

    font-size: var(--font-big);
  }

  .menu-drawer__link:hover {
    padding-left: 20px;
  }

  .menu-drawer__arrow {
    width: 58px;
    height: 60px;
    flex-basis: 58px;
  }

  .menu-drawer__arrow::before {
    width: 10px;
    height: 10px;
  }

  .menu-drawer__brand {
    min-height: 175px;
    padding: 24px 17px;
  }

  .menu-drawer__logo {
    max-width: 165px;
    max-height: 46px;
  }

  .menu-drawer__footer {
    min-height: 112px;
    gap: 15px;

    padding: 20px 17px;
  }

  .products-menu__header {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }

  .products-menu__back {
    height: 68px;
  }

  .products-menu__title {
    font-size: var(--font-base);
  }

  .products-menu__header .drawer-close {
    height: 68px;
  }

  .products-menu__link {
    min-height: 59px;
    padding: 0 16px;

    font-size: var(--font-big);
  }

  .products-menu__link--all {
    min-height: 67px;
    font-size: var(--font-small);
  }

  .cart-drawer__title {
    padding: 0 17px;

    font-size: var(--font-base);
  }

  .cart-drawer__content {
    padding: 20px;
  }
}


/* =========================================================
   CELULARES MUY PEQUEÑOS
========================================================= */

@media (max-width: 400px) {
  .menu-drawer__link {
    min-height: 58px;
    font-size: var(--font-base);
  }

  .menu-drawer__arrow {
    width: 52px;
    height: 57px;
    flex-basis: 52px;
  }

  .products-menu__link {
    min-height: 57px;
    font-size: var(--font-base);
  }
}


/* =========================================================
   DISPOSITIVOS CON POCO MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .menu-drawer,
  .cart-drawer,
  .menu-panel,
  .page-overlay,
  .search-panel {
    transition-duration: 1ms;
  }
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
  position: relative;

  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 580px;
  overflow: hidden;

  border-bottom: 1px solid var(--line);
  background: #17110d;
}

.hero-section__link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.hero-section__image {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transition: transform 1.2s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.hero-section:hover .hero-section__image {
  transform: scale(1.01);
}


/* =========================================================
   GALERÍA GENERAL
========================================================= */

.collection-gallery {
  width: 100%;
  background: var(--background);
}


/* =========================================================
   FILA SUPERIOR DE TÍTULOS
========================================================= */

.collection-gallery__titles {
  display: grid;
  width: 100%;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  border-bottom: 1px solid var(--line);
}

.collection-gallery__title {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  border-right: 1px solid var(--line);
  background: var(--background);

  font-family: var(--heading-font);
  font-size: var(--font-big);
  font-weight: var(--title-font-weight);
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;

  transition:
    background-color var(--transition-fast),
    opacity var(--transition-fast);
}

.collection-gallery__title:last-child {
  border-right: 0;
}

.collection-gallery__title:hover {
  background: rgba(17, 17, 17, 0.035);
}


/* =========================================================
   GRILLA DE IMÁGENES
========================================================= */

.collection-gallery__grid {
  display: grid;
  width: 100%;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  background: var(--background);
}


/* =========================================================
   CELDA DE IMAGEN
========================================================= */

.gallery-item {
  position: relative;

  display: block;
  min-width: 0;
  height: clamp(300px, 26.5vw, 510px);
  overflow: hidden;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  background: #d5d0c8;
}


/* Elimina el borde derecho en cada tercera imagen */
.gallery-item:nth-child(3n) {
  border-right: 0;
}


/* =========================================================
   IMAGEN
========================================================= */

.gallery-item__image {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1);

  transition:
    transform 850ms cubic-bezier(0.2, 0.65, 0.3, 1),
    filter 500ms ease;
}

.gallery-item:hover .gallery-item__image {
  transform: scale(1.075);
}

/* Quita el borde inferior individual de la última fila */
.gallery-item:nth-last-child(-n + 1) {
  border-bottom: 0;
}

/* Línea continua debajo de toda la galería */
.collection-gallery__grid {
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   FOCO DE TECLADO
========================================================= */

.gallery-item:focus-visible,
.collection-gallery__title:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: -4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .collection-gallery__titles,
  .collection-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /*
    Los tres títulos pasan a dos columnas:
    el tercero ocupa todo el ancho inferior.
  */
  .collection-gallery__title {
    border-bottom: 1px solid var(--line);
  }

  .collection-gallery__title:nth-child(2) {
    border-right: 0;
  }

  .collection-gallery__title:nth-child(3) {
    grid-column: 1 / -1;

    border-right: 0;
    border-bottom: 0;
  }

  .gallery-item,
  .gallery-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .gallery-item:nth-child(2n) {
    border-right: 0;
  }

  .gallery-item {
    height: clamp(330px, 52vw, 560px);
  }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 640px) {
  /*
    Se mantienen los tres títulos en una sola fila,
    como en la referencia, pero con texto e interiores
    más compactos.
  */
  .collection-gallery__titles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collection-gallery__title,
  .collection-gallery__title:nth-child(2),
  .collection-gallery__title:nth-child(3) {
    grid-column: auto;

    min-height: 48px;
    padding: 8px 5px;

    border-right: 1px solid var(--line);
    border-bottom: 0;

    font-size: var(--font-small);
    line-height: 1.15;
  }

  .collection-gallery__title:last-child {
    border-right: 0;
  }

  .collection-gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:nth-child(2n),
  .gallery-item:nth-child(3n) {
    height: min(105vw, 510px);
    border-right: 0;
  }

  /*
    En dispositivos táctiles no se deja un hover
    permanentemente activado.
  */
  .gallery-item:hover .gallery-item__image {
    transform: none;
  }

  .gallery-item:active .gallery-item__image {
    transform: scale(1.035);
  }
}


/* =========================================================
   CELULAR HORIZONTAL
========================================================= */

@media (max-width: 900px) and (orientation: landscape) {
  .collection-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item,
  .gallery-item:nth-child(3n) {
    height: min(58vw, 460px);
    border-right: 1px solid var(--line);
  }

  .gallery-item:nth-child(2n) {
    border-right: 0;
  }
}


/* =========================================================
   DISPOSITIVOS SIN HOVER
========================================================= */

@media (hover: none) {
  .gallery-item:hover .gallery-item__image {
    transform: none;
  }
}


/* =========================================================
   BOTÓN WHATSAPP
========================================================= */

.whatsapp-button {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 700;

  display: flex;
  width: 67px;
  height: 67px;
  align-items: center;
  justify-content: center;

  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;

  background: #25d366;
  color: #ffffff;

  transition:
    background-color 220ms ease,
    transform 220ms ease;
}

.whatsapp-button:hover {
  background: #20bd5a;
}

.whatsapp-button:active {
  transform: scale(0.96);
}

.whatsapp-button__icon {
  display: block;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;

  color: #ffffff;
}


/* =========================================================
   WHATSAPP EN CELULAR
========================================================= */

@media (max-width: 640px) {
  .whatsapp-button {
    width: 58px;
    height: 58px;
  }

  .whatsapp-button__icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .site-header {
    height: 82px;
  }

  .site-header__brand {
    padding-right: 22px;
    padding-left: 22px;
  }

  .site-header__logo {
    max-width: 190px;
    max-height: 44px;
  }

  .header-action {
    width: 78px;
    flex-basis: 78px;
  }

  .header-action__icon {
    width: 27px;
    height: 27px;
  }

  .header-action__icon--bag {
    width: 26px;
    height: 26px;
  }

  .menu-icon {
    width: 26px;
    gap: 6px;
  }

  .search-panel {
    top: 82px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .menu-drawer,
  .cart-drawer {
    width: 78vw;
  }

  main {
    min-height: calc(100vh - 82px);
  }

  .hero-section {
    height: min(78vh, 760px);
    min-height: 500px;
  }

  .collection-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-card,
  .collection-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .collection-card:nth-child(2n) {
    border-right: 0;
  }

  .collection-card__image-container {
    height: clamp(330px, 52vw, 540px);
  }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 640px) {
  .site-header {
    height: 68px;
  }

  .site-header__brand {
    min-width: 0;
    padding: 0 14px;
  }

  .site-header__logo {
    max-width: 130px;
    max-height: 34px;
  }

  .site-header__actions {
    display: flex;
    flex: 0 0 auto;
  }

  .header-action,
  .site-header__actions .header-action {
    display: grid;
    width: 56px;
    flex: 0 0 56px;
  }

  .header-action__icon {
    width: 23px;
    height: 23px;
  }

  .header-action__icon--bag {
    width: 22px;
    height: 22px;
  }

  .menu-icon {
    width: 22px;
    gap: 5px;
  }

  .menu-icon span {
    height: 1px;
  }

  .cart-count {
    top: calc(50% - 20px);
    left: calc(50% + 5px);

    min-width: 15px;
    height: 15px;

    font-size: var(--font-smallest);
  }

  .search-panel {
    top: 68px;
    padding: 18px 16px;
  }

  .search-panel__input {
    padding: 12px 0;
    font-size: var(--font-big);
  }

  .search-panel__submit {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .search-panel__submit svg {
    width: 22px;
    height: 22px;
  }

  .menu-drawer,
  .cart-drawer {
    width: 100%;
  }

  .menu-drawer__header,
  .cart-drawer__header {
    min-height: 68px;
  }

  .drawer-close {
    width: 56px;
    height: 67px;
    flex-basis: 56px;
  }

  .drawer-close span {
    width: 20px;
  }

  .menu-drawer__link {
    min-height: 56px;

    padding-right: 16px;
    padding-left: 16px;

    font-size: var(--font-base);
  }

  .menu-drawer__link:hover {
    padding-left: 19px;
  }

  .menu-drawer__footer {
    padding: 20px 16px;
    font-size: var(--font-small);
  }

  main {
    min-height: calc(100vh - 68px);
  }

  .hero-section {
    height: calc(80svh - 68px);
    min-height: 440px;
  }

  .hero-section__image {
    object-position: center;
  }

  .collection-gallery {
    grid-template-columns: 1fr;
  }

  .collection-card,
  .collection-card:nth-child(2n),
  .collection-card:nth-child(3n) {
    border-right: 0;
  }

  .collection-card__header {
    min-height: 52px;
    padding: 9px 14px;
  }

  .collection-card__title {
    font-size: var(--font-base);
  }

  .collection-card__image-container {
    height: min(110vw, 510px);
  }

  .collection-card:hover .collection-card__image {
    transform: none;
  }

  .collection-card__link:active .collection-card__image {
    transform: scale(1.035);
  }

  .whatsapp-button {
    width: 58px;
    height: 58px;
  }

  .whatsapp-button svg {
    width: 28px;
    height: 28px;
  }
}


/* =========================================================
   CELULARES MUY PEQUEÑOS
========================================================= */

@media (max-width: 400px) {
  .site-header__brand {
    padding-right: 8px;
    padding-left: 10px;
  }

  .site-header__logo {
    max-width: 105px;
    max-height: 30px;
  }

  .header-action,
  .site-header__actions .header-action {
    width: 48px;
    flex-basis: 48px;
  }

  .header-action__icon {
    width: 21px;
    height: 21px;
  }

  .header-action__icon--bag {
    width: 20px;
    height: 20px;
  }

  .menu-icon {
    width: 20px;
  }

  .search-panel {
    padding-right: 12px;
    padding-left: 12px;
  }
}


/* =========================================================
   CELULAR HORIZONTAL
========================================================= */

@media (max-width: 900px) and (orientation: landscape) {
  .hero-section {
    height: calc(100svh - 68px);
    min-height: 390px;
  }

  .collection-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-card:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .collection-card:nth-child(even) {
    border-right: 0;
  }

  .collection-card__image-container {
    height: 65vw;
    max-height: 480px;
  }
}


/* =========================================================
   DISPOSITIVOS SIN HOVER
========================================================= */

@media (hover: none) {
  .hero-section:hover .hero-section__image,
  .collection-card:hover .collection-card__image {
    transform: none;
  }
}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 1ms !important;
  }
}





/* =========================================================
   MANIFIESTO + VIDEO
========================================================= */

.studio-video-section {
  width: 100%;
  background: var(--background);
}


/* =========================================================
   FRASE SUPERIOR
========================================================= */

.studio-video-section__statement {
  display: flex;
  width: 100%;
  min-height: 200px;
  align-items: center;
  justify-content: center;

  padding: 48px var(--page-padding);

  border-bottom: 1px solid var(--line);
  background: var(--background);
}

.studio-video-section__text {
  margin: 0;

  font-family: var(--body-font);
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}


/* =========================================================
   CONTENEDOR DEL VIDEO
========================================================= */

.studio-video {
  position: relative;

  width: 100%;
  height: clamp(500px, 56.25vw, 920px);
  overflow: hidden;

  border-bottom: 1px solid var(--line);
  background: #111111;
}


/* =========================================================
   VIDEO
========================================================= */

.studio-video__media {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  background: #111111;
}


/* =========================================================
   OVERLAY
========================================================= */

.studio-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: rgba(0, 0, 0, 0.12);

  opacity: 1;
  pointer-events: none;

  transition: opacity 450ms ease;
}

.studio-video.is-playing .studio-video__overlay {
  opacity: 0;
}


/* =========================================================
   BOTÓN CENTRAL
========================================================= */

.studio-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  color: #ffffff;

  transform: translate(-50%, -50%);

  transition:
    opacity 350ms ease,
    visibility 350ms ease,
    transform 350ms ease;
}

.studio-video__play:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.studio-video.is-playing .studio-video__play {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transform: translate(-50%, -50%) scale(0.96);
}

.studio-video__play-circle {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
}

.studio-video__play-circle svg {
  width: 23px;
  height: 23px;

  fill: currentColor;

  transform: translateX(2px);
}

.studio-video__play-label {
  font-family: var(--body-font);
  font-size: var(--font-small);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* =========================================================
   BOTÓN DE SONIDO
========================================================= */

.studio-video__sound {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;

  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.75);

  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;

  backdrop-filter: blur(3px);

  transition:
    background-color 220ms ease,
    opacity 220ms ease;
}

.studio-video.is-playing .studio-video__sound {
  display: flex;
}

.studio-video__sound:hover {
  background: rgba(0, 0, 0, 0.42);
}

.studio-video__sound svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.studio-video__sound-off {
  display: none;
}

.studio-video.is-muted .studio-video__sound-on {
  display: none;
}

.studio-video.is-muted .studio-video__sound-off {
  display: block;
}


/* =========================================================
   CURSOR DEL VIDEO
========================================================= */

.studio-video.is-playing .studio-video__media {
  cursor: pointer;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .studio-video-section__statement {
    min-height: 170px;
    padding: 40px 22px;
  }

  .studio-video {
    height: 62vw;
    min-height: 450px;
    max-height: 720px;
  }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 640px) {
  .studio-video-section__statement {
    min-height: 140px;
    padding: 36px 16px;
  }

  .studio-video-section__text {
    max-width: 290px;
    font-size: var(--font-small);
  }

  .studio-video {
    height: 125vw;
    min-height: 480px;
    max-height: 680px;
  }

  .studio-video__media {
    object-position: center;
  }

  .studio-video__play {
    gap: 10px;
  }

  .studio-video__play-circle {
    width: 58px;
    height: 58px;
  }

  .studio-video__play-circle svg {
    width: 20px;
    height: 20px;
  }

  .studio-video__play-label {
    font-size: var(--font-smallest);
  }

  .studio-video__sound {
    right: 14px;
    bottom: 14px;

    width: 40px;
    height: 40px;
  }

  .studio-video__sound svg {
    width: 20px;
    height: 20px;
  }
}


/* =========================================================
   CELULAR HORIZONTAL
========================================================= */

@media (max-width: 900px) and (orientation: landscape) {
  .studio-video {
    height: calc(100svh - 68px);
    min-height: 390px;
    max-height: none;
  }
}








/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  width: 100%;

  border-top: 1px solid var(--line);
  background: var(--background);
  color: var(--text);
}


/* =========================================================
   ESTRUCTURA GENERAL
========================================================= */

.site-footer__top,
.site-footer__main {
  display: grid;
  width: 100%;

  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__top {
  border-bottom: 1px solid var(--line);
}

.site-footer__main {
  border-bottom: 1px solid var(--line);
}


/* =========================================================
   BLOQUES
========================================================= */

.footer-block {
  min-width: 0;
}

.footer-block:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.footer-block__header {
  display: flex;
  width: 100%;
  min-height: 57px;
  align-items: center;

  padding: 0 20px;

  border-bottom: 1px solid var(--line);
}

.footer-block__title {
  margin: 0;

  font-family: var(--body-font);
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}


/* =========================================================
   REDES
========================================================= */

.footer-social {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: center;
}

.footer-social__link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.footer-social__icon {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform var(--transition-fast);
}

.footer-social__link:hover .footer-social__icon {
  transform: scale(1.08);
}


/* =========================================================
   NEWSLETTER
========================================================= */

.footer-newsletter {
  display: flex;
  width: 100%;
  min-height: 59px;
}

.footer-newsletter__input {
  min-width: 0;
  flex: 1;

  padding: 0 18px;

  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);

  font-family: var(--body-font);
  font-size: var(--font-base);
  font-weight: 400;
}

.footer-newsletter__input::placeholder {
  color: rgba(17, 17, 17, 0.48);
}

.footer-newsletter__button {
  display: flex;
  width: 88px;
  flex: 0 0 88px;
  align-items: center;
  justify-content: center;

  border-left: 1px solid var(--line);
  background: #111111;
  color: #ffffff;

  font-family: var(--body-font);
  font-size: var(--font-small);
  font-weight: 400;
  letter-spacing: 0.04em;

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.footer-newsletter__button:hover {
  background: var(--background);
  color: var(--text);
}


/* =========================================================
   CATEGORÍAS
========================================================= */

.footer-navigation {
  display: flex;
  min-height: 230px;
  flex-direction: column;

  padding: 13px 20px 22px;
}

.footer-navigation__link {
  width: fit-content;
  padding: 8px 0;

  font-family: var(--body-font);
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;

  transition: opacity var(--transition-fast);
}

.footer-navigation__link:hover {
  opacity: 0.5;
}


/* =========================================================
   CONTACTO
========================================================= */

.footer-contact {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  gap: 18px;

  padding: 20px;

  font-style: normal;
}

.footer-contact__link,
.footer-contact__text {
  margin: 0;

  font-family: var(--body-font);
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.35;
}

.footer-contact__link {
  width: fit-content;

  transition: opacity var(--transition-fast);
}

.footer-contact__link:hover {
  opacity: 0.5;
}


/* =========================================================
   LOGO CENTRAL
========================================================= */

.site-footer__brand {
  display: flex;
  width: 100%;
  min-height: 110px;
  align-items: center;
  justify-content: center;

  padding: 24px var(--page-padding);

  border-bottom: 1px solid var(--line);
}

.site-footer__brand-link {
  display: block;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: auto;

  max-width: 230px;
  max-height: 58px;

  object-fit: contain;
  object-position: center;
}


/* =========================================================
   FILA FINAL
========================================================= */

.site-footer__bottom {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 14px 20px;
}

.site-footer__copyright {
  margin: 0;

  font-family: var(--body-font);
  font-size: var(--font-small);
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-footer__legal-link {
  font-family: var(--body-font);
  font-size: var(--font-small);
  font-weight: 400;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: uppercase;

  transition: opacity var(--transition-fast);
}

.site-footer__legal-link:hover {
  opacity: 0.5;
}


/* =========================================================
   FOCO
========================================================= */

.footer-social__link:focus-visible,
.footer-newsletter__input:focus-visible,
.footer-newsletter__button:focus-visible,
.footer-navigation__link:focus-visible,
.footer-contact__link:focus-visible,
.site-footer__legal-link:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: -3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .footer-block__header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .footer-navigation {
    padding-right: 18px;
    padding-left: 18px;
  }

  .footer-contact {
    padding-right: 18px;
    padding-left: 18px;
  }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 640px) {
  .site-footer__top,
  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .footer-block:nth-child(odd) {
    border-right: 0;
  }

  .footer-block--social,
  .footer-block--categories {
    border-bottom: 1px solid var(--line);
  }

  .footer-block__header {
    min-height: 50px;
    padding: 0 16px;
  }

  .footer-block__title {
    font-size: var(--font-small);
  }

  .footer-social {
    min-height: 56px;
  }

  .footer-newsletter {
    min-height: 56px;
  }

  .footer-newsletter__input {
    padding: 0 16px;
    font-size: var(--font-base);
  }

  .footer-newsletter__button {
    width: 76px;
    flex-basis: 76px;
  }

  .footer-navigation {
    min-height: auto;
    padding: 12px 16px 20px;
  }

  .footer-navigation__link {
    padding: 7px 0;
    font-size: var(--font-base);
  }

  .footer-contact {
    min-height: auto;
    gap: 14px;
    padding: 18px 16px 24px;
  }

  .site-footer__brand {
    min-height: 96px;
    padding: 22px 16px;
  }

  .site-footer__logo {
    max-width: 180px;
    max-height: 48px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;

    padding: 18px 16px;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}