/* ==========================================================================
   Casa & Estilo — hoja de estilos
   Orden: tokens · base · utilidades · componentes · secciones · movimiento
   Mobile-first; los breakpoints amplían el diseño hacia escritorio.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #F7F3EE;          /* lino */
  --surface: #FFFFFF;
  --ink: #1F1A17;         /* negro espresso */
  --walnut: #6B3E26;      /* primario */
  --walnut-deep: #54301D;
  --terracotta: #B8643C;  /* acento */
  --sand: #E8DED2;
  --sand-deep: #D9CBB9;
  --muted: #6E6259;
  --dark: #2A211C;
  --dark-2: #362B25;
  --on-dark: #F4EDE5;
  --on-dark-muted: #CDBFB1;

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(31, 26, 23, .06), 0 12px 32px -12px rgba(31, 26, 23, .18);
  --shadow-lift: 0 2px 4px rgba(31, 26, 23, .06), 0 24px 48px -18px rgba(31, 26, 23, .28);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.55rem; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

::selection { background: var(--walnut); color: var(--on-dark); }

/* ---------- 3. Utilidades ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: .75rem 1.1rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--walnut);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.eyebrow--light { color: #E3B394; }

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

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 640px; }
.section-head h2 { margin-bottom: .9rem; }
.section-intro { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }

@media (min-width: 900px) {
  .section-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }
  .section-head--split > div:first-child { max-width: 600px; }
  .section-head--split > .section-intro { margin-bottom: .5rem; }
}

/* ---------- 4. Componentes ---------- */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 50px;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .88rem; }
.btn-primary { background: var(--walnut); color: #fff; box-shadow: 0 10px 24px -12px rgba(107, 62, 38, .7); }
.btn-primary:hover { background: var(--terracotta); transform: translateY(-1px); }
.btn-ghost { border-color: var(--sand-deep); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--walnut); color: var(--walnut); }
.btn-outline { border-color: var(--walnut); color: var(--walnut); }
.btn-outline:hover { background: var(--walnut); color: #fff; }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #fff; color: var(--walnut); }

.icon-arrow {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
a:hover > .icon-arrow, button:hover > .icon-arrow { transform: translateX(4px); }

/* Marca */
.brand {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand span { font-style: italic; color: var(--terracotta); font-weight: 500; }
.brand--light { color: var(--on-dark); }

/* Chips de filtro */
.chips {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: .25rem var(--gutter);
  margin-top: 1.5rem;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  scroll-snap-align: start;
  min-height: 44px;
  padding: .5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--sand-deep);
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--walnut); color: var(--walnut); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

@media (min-width: 900px) {
  .chips { margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; justify-content: flex-end; }
}

.tag {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(247, 243, 238, .92);
  color: var(--walnut);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.tag--static { align-self: flex-start; background: var(--sand); margin-bottom: 1rem; }

.price {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.price--lg { font-size: 1.75rem; margin-block: 1.25rem 1.75rem; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding-inline: .25rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--walnut);
  transition: color .2s var(--ease);
}
.link-btn:hover { color: var(--terracotta); }

/* ---------- 5. Cabecera / navegación ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
}
/* El fondo difuminado va en un pseudo-elemento: si backdrop-filter estuviera en
   .site-header, el menú móvil (position: fixed) quedaría atrapado dentro de él. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 243, 238, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled::before {
  background: rgba(247, 243, 238, .95);
  border-bottom-color: var(--sand);
  box-shadow: 0 8px 24px -20px rgba(31, 26, 23, .5);
}
.brand { position: relative; z-index: 102; }
.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-cta { display: none; }

.menu-toggle {
  position: relative;
  z-index: 102;
  width: 48px; height: 48px;
  margin-right: -10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px; height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), background-color .2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { transform: translateY(-7px); }
.menu-toggle__bars::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); }

/* Menú móvil: panel a pantalla completa */
.nav-list {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 3rem;
  overflow-y: auto;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.nav-list.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}
.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: .6rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  border-bottom: 1px solid var(--sand);
}
.nav-list a[aria-current="true"] { color: var(--walnut); font-style: italic; }
.nav-list .nav-list__cta { margin-top: 1.75rem; }
.nav-list .nav-list__cta a {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  font-family: var(--font-body, inherit);
  font-size: 1rem;
  font-style: normal;
  border-bottom: 0;
  padding-block: .95rem;
}

@media (min-width: 960px) {
  :root { --nav-h: 76px; }
  .menu-toggle { display: none; }
  .nav-cta { display: inline-flex; }
  .nav-list .nav-list__cta { display: none; }
  .nav { margin-left: auto; }
  .nav-list {
    position: static;
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-list a {
    position: relative;
    padding-block: .5rem;
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 500;
    border: 0;
    color: var(--muted);
    transition: color .2s var(--ease);
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .15rem;
    height: 1px;
    background: var(--walnut);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav-list a:hover { color: var(--ink); }
  .nav-list a:hover::after,
  .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
  .nav-list a[aria-current="true"] { color: var(--ink); font-style: normal; }
}

/* ---------- 6. Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + .75rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero__grid {
  display: grid;
  gap: 2rem;
}
.hero__media {
  position: relative;
  order: -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: var(--sand);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 42% 55%;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31, 26, 23, 0) 55%, rgba(31, 26, 23, .35));
  pointer-events: none;
}
.hero__tag {
  position: absolute;
  z-index: 1;
  left: 1rem; bottom: 1rem;
  display: flex;
  flex-direction: column;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  background: rgba(247, 243, 238, .92);
  backdrop-filter: blur(8px);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.hero__tag span {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--walnut);
}

.hero__title {
  font-size: clamp(3.4rem, 8.5vw, 6.6rem);
  line-height: .98;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero__title .amp { font-style: italic; color: var(--terracotta); font-weight: 500; }
.hero__title em { font-style: italic; color: var(--walnut); }
.hero__lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1rem;
}
.hero__text { color: var(--muted); max-width: 44ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__actions .btn { flex: 1 1 auto; }

.facts {
  display: grid;
  gap: .9rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-deep);
  font-size: .9rem;
  font-weight: 600;
}
.facts li { display: flex; align-items: center; gap: .75rem; font-variant-numeric: tabular-nums; }
.facts svg {
  flex: none;
  width: 22px; height: 22px;
  fill: none; stroke: var(--walnut); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

@media (min-width: 560px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; }
}

@media (min-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    min-height: min(calc(100svh - var(--nav-h) - 9rem), 700px);
  }
  .hero__media {
    order: 0;
    height: 100%;
    min-height: 520px;
    aspect-ratio: auto;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px;
  }
  .hero__tag { left: auto; right: 1.5rem; bottom: 1.5rem; }
  .facts { justify-content: space-between; grid-template-columns: repeat(3, auto); }
}

/* ---------- 7. Productos ---------- */
.productos { background: var(--bg); padding-top: clamp(3rem, 6vw, 5rem); }
.product-grid {
  display: grid;
  gap: 1.25rem;
}
.product[hidden] { display: none; }
.product.is-entering { animation: fade-up .45s var(--ease) both; }

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__media .tag { position: absolute; top: 1rem; left: 1rem; }
.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.5rem 1.1rem;
}
.product-card__title { font-size: 1.75rem; margin-bottom: .35rem; }
.product-card__desc { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.product-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--sand);
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .product-card__media { aspect-ratio: 5 / 4.2; }
}

/* ---------- 8. Ambientes ---------- */
.ambientes {
  background: var(--dark);
  color: var(--on-dark);
  position: relative;
}
.ambientes .section-intro { color: var(--on-dark-muted); }

.ambientes-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.ambientes-grid::-webkit-scrollbar { display: none; }

.ambiente {
  position: relative;
  scroll-snap-align: start;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--dark-2);
}
.ambiente img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .8s var(--ease);
}
.ambiente::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 15, 12, 0) 28%, rgba(20, 15, 12, .5) 52%, rgba(20, 15, 12, .86) 76%, rgba(20, 15, 12, .94));
}
.ambiente:hover img { transform: scale(1.04); }
.ambiente__info {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.ambiente__num {
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: #E3B394;
  margin-bottom: .35rem;
}
.ambiente h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .4rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.ambiente__info > p:not(.ambiente__num) { color: rgba(255, 255, 255, .86); font-size: .95rem; max-width: 38ch; margin-bottom: .75rem; }
.ambiente__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-weight: 600;
  font-size: .92rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.ambiente__link:hover { border-color: #E3B394; color: #F6D9C4; }

@media (min-width: 960px) {
  .ambientes-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(300px, 1fr));
    gap: 1.5rem;
    overflow: visible;
    margin: 0;
    padding: 0;
    height: min(78vh, 720px);
    min-height: 620px;
  }
  .ambiente { min-height: 0; }
  .ambiente--feature { grid-row: 1 / span 2; }
  .ambiente--feature .ambiente__info { padding: 2.5rem; }
  .ambiente--feature h3 { font-size: 3rem; }
}

/* ---------- 9. Servicios ---------- */
.services {
  display: grid;
  border-top: 1px solid var(--sand-deep);
}
.service {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--sand-deep);
}
.service__icon {
  flex: none;
  width: 44px; height: 44px;
  fill: none; stroke: var(--walnut); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { font-size: 1.55rem; margin-bottom: .3rem; }
.service p { color: var(--muted); font-size: .98rem; }

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; border-bottom: 1px solid var(--sand-deep); }
  .service {
    flex-direction: column;
    gap: 2.25rem;
    padding: 2.5rem 2rem 2.75rem;
    border-bottom: 0;
    border-left: 1px solid var(--sand-deep);
  }
  .service:first-child { border-left: 0; padding-left: 0; }
  .service:last-child { padding-right: 0; }
  .service__icon { width: 52px; height: 52px; }
}

/* ---------- 10. Inspiración (mosaico) ---------- */
.inspiracion { padding-top: 0; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: .75rem;
}
.mosaic__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}
.mosaic__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__item figcaption {
  position: absolute;
  left: .75rem; bottom: .75rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(247, 243, 238, .92);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--walnut);
}
.mosaic__item--a { grid-column: span 2; grid-row: span 2; }
.mosaic__item--b { grid-row: span 2; }
.mosaic__item--b img { object-position: 50% 78%; }
@media (min-width: 900px) { .mosaic__item--b img { object-position: 50% 96%; } }
.mosaic__item--e { grid-column: span 2; }

@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 170px;
    gap: 1rem;
  }
  .mosaic__item--a { grid-column: 1 / span 5; grid-row: 1 / span 3; }
  .mosaic__item--b { grid-column: 6 / span 3; grid-row: 1 / span 3; }
  .mosaic__item--c { grid-column: 9 / span 4; grid-row: 1 / span 1; }
  .mosaic__item--d { grid-column: 9 / span 4; grid-row: 2 / span 2; }
  .mosaic__item--e { display: none; }
}
@media (min-width: 1100px) {
  .mosaic { grid-auto-rows: 190px; }
}

/* ---------- 11. Boletín ---------- */
.newsletter { padding-top: 0; }
.newsletter__card {
  display: grid;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.newsletter__media { aspect-ratio: 16 / 10; overflow: hidden; }
.newsletter__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.newsletter__body { padding: clamp(1.75rem, 5vw, 4.5rem); align-self: center; }
.newsletter__body h2 { margin-bottom: 1rem; color: var(--on-dark); }
.newsletter__body > p { color: var(--on-dark-muted); max-width: 44ch; }
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 2rem;
  max-width: 520px;
}
.newsletter__form input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 237, 229, .28);
  background: rgba(255, 255, 255, .06);
  color: var(--on-dark);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.newsletter__form input::placeholder { color: #B5A697; }
.newsletter__form input:hover { border-color: rgba(244, 237, 229, .5); }
.newsletter__form input:focus-visible { border-color: #E3B394; background: rgba(255, 255, 255, .1); outline-color: #E3B394; }
.newsletter__form input[aria-invalid="true"] { border-color: #F0A07A; }
.newsletter__form .btn { min-height: 52px; }
.form-msg { min-height: 1.5em; margin-top: .9rem; font-size: .92rem; font-weight: 600; color: #E3B394; }
.form-msg.is-error { color: #F4B394; }

@media (min-width: 560px) {
  .newsletter__form { flex-direction: row; }
}
@media (min-width: 900px) {
  .newsletter__card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 460px; }
  .newsletter__media { aspect-ratio: auto; position: relative; }
  .newsletter__media img { position: absolute; inset: 0; }
}

/* ---------- 12. Contacto ---------- */
.contacto {
  background: var(--surface);
  border-top: 1px solid var(--sand);
}
.contacto__grid { display: grid; gap: 3rem; }
.contacto h2 { margin-bottom: 1rem; }
.contacto__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.contact-list { display: grid; border-top: 1px solid var(--sand-deep); }
.contact-list > div {
  display: grid;
  gap: .25rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--sand-deep);
}
.contact-list dt {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--walnut);
}
.contact-list dt svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-list dd {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  font-variant-numeric: lining-nums;
  overflow-wrap: anywhere;
}
.contact-list dd a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s var(--ease), color .2s var(--ease);
}
.contact-list dd a:hover { color: var(--walnut); background-size: 100% 1px; }

@media (min-width: 960px) {
  .contacto__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6rem; align-items: start; }
  .contact-list > div { grid-template-columns: 170px 1fr; align-items: baseline; gap: 1.5rem; }
}

/* ---------- 13. Pie ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer__tagline { margin-top: .75rem; max-width: 36ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  font-weight: 500;
  transition: color .2s var(--ease);
}
.footer__nav a:hover { color: #E3B394; }
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: .85rem;
}
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid rgba(244, 237, 229, .14);
}
.footer__credit { flex-basis: 100%; order: 3; color: #A89A8C; font-size: .8rem; }
.footer__credit a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244, 237, 229, .35); }
.footer__credit a:hover { color: #E3B394; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  color: var(--on-dark);
  font-weight: 600;
}
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { color: #E3B394; }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- 14. Vista rápida (dialog) ---------- */
.quickview {
  width: min(960px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
  overflow: auto;
}
.quickview::backdrop { background: rgba(31, 26, 23, .6); backdrop-filter: blur(4px); }
.quickview[open] { animation: dialog-in .35s var(--ease); }
.quickview__inner { position: relative; display: grid; }
.quickview__media { aspect-ratio: 4 / 3; background: var(--sand); }
.quickview__media img { width: 100%; height: 100%; object-fit: cover; }
.quickview__body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.quickview__body h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: .6rem; }
.quickview__desc { color: var(--muted); font-size: 1.05rem; }
.quickview__actions { display: grid; gap: .75rem; }
.quickview__note { margin-top: 1.25rem; font-size: .85rem; color: var(--muted); }
.quickview__close {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(247, 243, 238, .94);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35);
  transition: background-color .2s var(--ease);
}
.quickview__close:hover { background: #fff; }
.quickview__close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }

@media (min-width: 800px) {
  .quickview__inner { grid-template-columns: 1.1fr 1fr; }
  .quickview__media { aspect-ratio: auto; min-height: 520px; }
}

/* ---------- 15. Movimiento ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* Revelado al hacer scroll: solo si hay JS y el usuario no pide menos movimiento */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .product-card:hover,
  .btn-primary:hover { transform: none; }
  .product-card:hover .product-card__media img,
  .ambiente:hover img,
  .mosaic__item:hover img { transform: none; }
}

@media (min-width: 960px) {
  .ambiente--feature::before {
    background: linear-gradient(180deg, rgba(20, 15, 12, 0) 45%, rgba(20, 15, 12, .55) 68%, rgba(20, 15, 12, .9));
  }
}
