/* =====================================================================
   Muzem · Home — muzem-home.css
   Fuente: Figma "home-desktop-1920px" (node 10:1145).
   Clases = nombres de capa de Figma. Tokens = variables de Fura DS
   (color/text/primary → --color-text-primary).
   Todo vive bajo .muzem-home para montarlo en WordPress sin filtrar
   estilos hacia el tema.
   Layout: contenedor de 1460 px centrado. Dos columnas desde 1024 px,
   una columna por debajo. Tipografía fluida entre 375 y 1920 px.
   Motion: solo transform y opacity.
   ===================================================================== */

/* ---------- Lenis: reglas globales que pide la librería ---------- */
html.lenis,
html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Tokens ---------- */
.muzem-home {
  /* Color · Fura DS sobre el manual gold */
  --color-surface-default: #f9f9fa;          /* Gris Niebla */
  --color-surface-brand: #121313;            /* Negro Lutita */
  --color-surface-accent: #b39351;           /* Dorado Pirita */
  --color-text-primary: #121313;
  --color-text-inverse: #f9f9fa;
  --color-action-primary-default: #121313;
  --color-text-on-action-primary: #f9f9fa;
  --color-iconography-icon-primary: #3e3f3f;
  --color-accent-brand: #b39351;
  --scrim-light: 249 249 250;                /* Niebla en RGB para el velo */
  --scrim-dark: 18 19 19;                    /* Lutita en RGB para el velo */

  /* Tipografía */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-size-text-l: 1.125rem;                                     /* 18 */
  --fs-display: clamp(2rem, 1.514rem + 2.071vw, 4rem);              /* 32 → 64 */
  --fs-heading-5xl: clamp(1.875rem, 1.42rem + 1.942vw, 3.75rem);    /* 30 → 60 */
  --fs-body-xl: clamp(1.125rem, 0.9125rem + 0.906vw, 2rem);         /* 18 → 32 */
  --fs-lead: clamp(1.0625rem, 0.956rem + 0.453vw, 1.5rem);          /* 17 → 24 */
  --fs-cue: clamp(1.125rem, 1.034rem + 0.388vw, 1.5rem);            /* 18 → 24 */
  --fs-location: clamp(1.375rem, 1.284rem + 0.388vw, 1.75rem);      /* 22 → 28 */
  --fs-address: clamp(1rem, 0.939rem + 0.259vw, 1.25rem);           /* 16 → 20 */

  /* Layout */
  --container: 1460px;
  --gutter: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --pad-x: max(var(--gutter), calc((100% - var(--container)) / 2));
  --arrow-x: max(clamp(20px, 3.33vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --hero-pad-x: max(var(--pad-x), calc(var(--arrow-x) + 80px));    /* el texto nunca queda bajo las flechas */
  --space-section: clamp(4rem, 3.514rem + 2.071vw, 6rem);           /* 64 → 96 */
  --header-h: clamp(4.5rem, 4.1375rem + 1.553vw, 6rem);             /* 72 → 96 */
  --cue-h: 118px;          /* hero (962) + scroll-cue (118) = 1080, un viewport */
  --hero-min: 680px;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);

  /* Tema del hero (lo cambia el carrusel con data-hero-theme) */
  --hero-fg: var(--color-text-primary);
  --focus: var(--color-text-primary);

  position: relative;
  overflow-x: clip;
  background: var(--color-surface-default);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.muzem-home[data-hero-theme="dark"] { --hero-fg: var(--color-text-inverse); }

/* ---------- Base acotada ---------- */
.muzem-home *,
.muzem-home *::before,
.muzem-home *::after { box-sizing: border-box; }
.muzem-home :where(h1, h2, h3, p, figure, ul, address) { margin: 0; padding: 0; }
.muzem-home :where(ul) { list-style: none; }
.muzem-home :where(address) { font-style: normal; }
.muzem-home :where(img, svg, picture) { display: block; max-width: 100%; }
.muzem-home :where(a) { color: inherit; text-decoration: none; }
.muzem-home :where(button) {
  margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.muzem-home :where(strong) { font-weight: var(--font-weight-semibold); }
.muzem-home :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.muzem-home main:focus,
.muzem-home section:focus { outline: none; }

.muzem-home .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muzem-home .skip-link {
  position: absolute; z-index: 20; top: 12px; left: var(--gutter);
  padding: 12px 16px;
  background: var(--color-surface-brand); color: var(--color-text-inverse);
  font-weight: var(--font-weight-bold);
  transform: translateY(-200%);
}
.muzem-home .skip-link:focus { transform: none; }

/* ---------- Botón (componente local "button") ---------- */
.muzem-home .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-text-l);
  line-height: 1.56;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.muzem-home .button--primary { background: var(--color-action-primary-default); color: var(--color-text-on-action-primary); }
.muzem-home .button--inverse { background: var(--color-surface-default); color: var(--color-text-primary); }
.muzem-home .button .icon { flex: none; transition: transform 200ms var(--ease-out); }
.muzem-home .button:hover .icon,
.muzem-home .button:focus-visible .icon { transform: translate(2px, -2px); }

/* ---------- Header (sobre el carrusel, no es fijo) ---------- */
.muzem-home .header {
  position: absolute; z-index: 6; inset: 0 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: center;
  color: var(--hero-fg);
  --focus: var(--hero-fg);
  pointer-events: none;
}
.muzem-home .header > * { pointer-events: auto; }
.muzem-home .logo {
  position: relative; display: block;
  width: clamp(120px, 99.4px + 8.366vw, 260px);   /* 132 a 390 px, 260 a 1920 px */
  aspect-ratio: 1570 / 232;
}
.muzem-home .logo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: opacity 300ms var(--ease-out);
}
.muzem-home[data-hero-theme="light"] .logo-niebla,
.muzem-home[data-hero-theme="dark"] .logo-lutita { opacity: 0; }
.muzem-home .lang-switch {
  position: absolute; top: 50%;
  right: max(clamp(20px, 4.53vw, 87px), env(safe-area-inset-right, 0px));
  transform: translateY(-50%);
  display: flex; gap: 24px;
  font-size: var(--font-size-text-l); line-height: 1.56; letter-spacing: -0.005em;
}
.muzem-home .lang-switch [aria-current] { font-weight: var(--font-weight-bold); }
.muzem-home .lang-switch a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero carousel ---------- */
.muzem-home .hero-carousel {
  position: relative; overflow: hidden;
  color: var(--hero-fg);
  --focus: var(--hero-fg);
  background: var(--color-surface-default);
}
/* Los slides se apilan en la misma celda: el carrusel mide lo que el slide
   más alto, así ningún texto se recorta en ningún ancho. */
.muzem-home .hero-track {
  position: relative; display: grid;
  min-height: max(var(--hero-min), calc(100vh - var(--cue-h)));
  touch-action: pan-y;
}
@supports (height: 1svh) {
  .muzem-home .hero-track { min-height: max(var(--hero-min), calc(100svh - var(--cue-h))); }
}
.muzem-home .hero-slide {
  grid-area: 1 / 1;
  position: relative; overflow: hidden; min-width: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding: var(--header-h) var(--hero-pad-x) 120px;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  backface-visibility: hidden;
}
.muzem-home .hero-slide.is-active { transform: none; visibility: visible; }
.muzem-home .hero-slide[data-theme="light"] { background: var(--color-surface-default); color: var(--color-text-primary); --focus: var(--color-text-primary); }
.muzem-home .hero-slide[data-theme="dark"] { background: var(--color-surface-brand); color: var(--color-text-inverse); --focus: var(--color-text-inverse); }

/* La foto vive en su propio wrapper (hero-media): el parallax mueve este
   wrapper y el carrusel mueve el slide, así no chocan los transforms.
   Con motion activo el wrapper mide 115 % y el sobrante queda arriba. */
.muzem-home .hero-media { position: absolute; inset: 0; }
.motion-ready .muzem-home .hero-media { top: -15%; }
.muzem-home .hero-media picture { width: 100%; height: 100%; }
.muzem-home .hero-image {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  object-position: 43.8% 50%;   /* reproduce el encuadre de Figma: la foto arranca en x = -159 a 1920 */
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.muzem-home .hero-scrim { position: absolute; inset: 0; pointer-events: none; }
.muzem-home .hero-slide[data-theme="light"] .hero-scrim {
  background: linear-gradient(90deg, rgb(var(--scrim-light) / 0) 30%, rgb(var(--scrim-light) / 0.32) 50%, rgb(var(--scrim-light) / 0.4) 100%);
}
.muzem-home .hero-slide[data-theme="dark"] .hero-scrim {
  background: linear-gradient(90deg, rgb(var(--scrim-dark) / 0) 30%, rgb(var(--scrim-dark) / 0.44) 50%, rgb(var(--scrim-dark) / 0.55) 100%);
}
.muzem-home .hero-content {
  position: relative; z-index: 1;
  width: min(707px, max(48.4%, 440px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 40px;
}
.muzem-home .hero-copy { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.muzem-home .hero-title {
  font-family: var(--font-display); font-weight: var(--font-weight-regular);
  font-size: var(--fs-display); line-height: 1.13; letter-spacing: -0.025em;
}
.muzem-home .hero-title strong { font-weight: var(--font-weight-semibold); }
.muzem-home .hero-lead { max-width: 78.8%; font-size: var(--fs-lead); line-height: 1.6; letter-spacing: -0.01em; text-wrap: pretty; }

/* Controles: ocultos hasta que el JS los arma (sin JS queda el slide 1). */
.muzem-home .hero-carousel:not(.is-ready) .hero-arrow,
.muzem-home .hero-carousel:not(.is-ready) .hero-pagination { display: none; }
.muzem-home .hero-arrow {
  position: absolute; z-index: 4; top: 50%;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  color: var(--hero-fg);
  transform: translateY(-50%);
}
.muzem-home .hero-arrow-prev { left: var(--arrow-x); }
.muzem-home .hero-arrow-next { right: var(--arrow-x); }
.muzem-home .hero-arrow svg { transition: transform 200ms var(--ease-out); }
.muzem-home .hero-arrow-prev:hover svg { transform: translateX(-3px); }
.muzem-home .hero-arrow-next:hover svg { transform: translateX(3px); }
.muzem-home .hero-pagination {
  position: absolute; z-index: 4; left: 50%; bottom: 48px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  color: var(--hero-fg);
}
.muzem-home .hero-dots { display: flex; gap: 4px; }
.muzem-home .hero-dot,
.muzem-home .hero-autoplay-toggle { width: 24px; height: 24px; display: grid; place-items: center; }
.muzem-home .hero-dot .dot-fill { display: none; }
.muzem-home .hero-dot[aria-current="true"] .dot-fill { display: inline; }
.muzem-home .hero-dot[aria-current="true"] .dot-stroke { display: none; }
.muzem-home .hero-autoplay-toggle { order: 2; }   /* primero en el foco, a la derecha a la vista */
.muzem-home .hero-autoplay-toggle .icon-play,
.muzem-home .hero-autoplay-toggle[data-state="paused"] .icon-pause { display: none; }
.muzem-home .hero-autoplay-toggle[data-state="paused"] .icon-play { display: block; }

/* ---------- Scroll cue ---------- */
.muzem-home .scroll-cue { height: var(--cue-h); display: flex; justify-content: center; align-items: center; }
.muzem-home .scroll-cue-link {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 8px 16px;
  font-size: var(--fs-cue); line-height: normal; text-align: center;
  color: var(--color-text-primary);
}
.muzem-home .scroll-cue-icon { color: var(--color-iconography-icon-primary); transition: transform 200ms var(--ease-out); }
.muzem-home .scroll-cue-link:hover .scroll-cue-icon { transform: translateY(3px); }

/* ---------- Tipografía de secciones ---------- */
.muzem-home :is(.authenticity-title, .certificate-title, .craft-title, .tips-title) {
  font-family: var(--font-display); font-weight: var(--font-weight-regular);
  font-size: var(--fs-display); line-height: normal; text-wrap: balance;
}
.muzem-home :is(.authenticity-body, .certificate-body, .craft-body, .tips-subtitle, .tip-body) {
  font-size: var(--fs-body-xl); line-height: 1.6; letter-spacing: -0.01em; text-wrap: pretty;
}

/* Máscaras de imagen: la foto se mueve dentro (parallax) o queda quieta.
   authenticity y tips usan contain: con el 120 % de alto, cover recortaría
   las piedras de los extremos y los bordes de las ilustraciones. */
.muzem-home :is(.authenticity-image, .certificate-image, .craft-image, .tip-image) { position: relative; overflow: hidden; min-width: 0; }
.muzem-home :is(.authenticity-image, .certificate-image, .craft-image, .tip-image) picture { position: absolute; inset: 0; }
.muzem-home :is(.authenticity-image, .certificate-image, .craft-image, .tip-image) img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; user-select: none; -webkit-user-drag: none;
}
.muzem-home :is(.authenticity-image, .tip-image) img { object-fit: contain; }
.motion-ready .muzem-home :is(.authenticity-image, .craft-image, .tip-image) img { top: -10%; height: 120%; }

/* ---------- section-authenticity ---------- */
.muzem-home .section-authenticity { padding: var(--space-section) var(--pad-x) 0; }
.muzem-home .authenticity-content { display: flex; align-items: center; gap: 44px; padding-bottom: var(--space-section); }
.muzem-home .authenticity-text { flex: 0 1 710px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.muzem-home .authenticity-copy { display: flex; flex-direction: column; gap: 24px; }
.muzem-home .authenticity-image { flex: 0 1 706px; aspect-ratio: 706 / 471; mix-blend-mode: multiply; }
.muzem-home .authenticity-divider { height: 2px; background: var(--color-surface-accent); transform-origin: left center; }

/* ---------- section-certificate ---------- */
.muzem-home .section-certificate { padding: var(--space-section) var(--pad-x); }
.muzem-home .certificate-content { display: flex; align-items: center; gap: 13%; }
.muzem-home .certificate-image { flex: 0 0 28.08%; aspect-ratio: 410 / 562; }
.muzem-home .certificate-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 40px; text-align: right; }
.muzem-home .certificate-copy { display: flex; flex-direction: column; gap: 24px; }

/* ---------- section-craft ---------- */
.muzem-home .section-craft {
  padding: var(--space-section) var(--pad-x);
  background: var(--color-surface-brand); color: var(--color-surface-accent);
  --focus: var(--color-surface-accent);
}
.muzem-home .craft-content { display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.muzem-home .craft-image { flex: 0 1 708px; aspect-ratio: 708 / 970; }
.muzem-home .craft-text { flex: 0 1 710px; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 24px; text-align: right; }
.muzem-home .craft-title strong { font-weight: var(--font-weight-bold); }
.muzem-home .craft-body { max-width: 79.3%; }

/* ---------- section-tips ---------- */
.muzem-home .section-tips { padding: var(--space-section) var(--pad-x); display: flex; flex-direction: column; align-items: center; gap: 38px; }
.muzem-home .tips-heading { width: min(710px, 100%); display: flex; flex-direction: column; gap: 24px; text-align: center; }
.muzem-home .tips-subtitle { font-weight: var(--font-weight-semibold); }
.muzem-home .tips-list { width: 100%; display: flex; flex-direction: column; }
.muzem-home .tip { display: flex; align-items: center; justify-content: space-between; padding-inline: 10.27% 30.82%; }
.muzem-home .tip--reverse { padding-inline: 30.82% 10.27%; }
.muzem-home .tip-text { flex: 0 0 47.8%; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.muzem-home .tip--reverse .tip-text { text-align: right; }
.muzem-home .tip-title {
  font-family: var(--font-display); font-weight: var(--font-weight-bold);
  font-size: var(--fs-heading-5xl); line-height: 1.13; letter-spacing: -0.025em;
}
.muzem-home .tip-image { flex: 0 0 47.6%; aspect-ratio: 1; mix-blend-mode: multiply; }

/* ---------- footer ---------- */
.muzem-home .footer {
  padding: var(--space-section) var(--pad-x) 56px;
  display: flex; flex-direction: column; gap: 64px;
  background: var(--color-surface-brand); color: var(--color-surface-accent);
  --focus: var(--color-surface-accent);
}
.muzem-home .footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.muzem-home .footer-logo { display: block; width: 260px; max-width: 100%; aspect-ratio: 1570 / 325.6; }
.muzem-home .footer-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left top; }
.muzem-home .footer-locations { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.muzem-home .footer-locations address { display: flex; flex-direction: column; gap: 12px; }
.muzem-home :is(.location-name, .social-title) {
  font-family: var(--font-display); font-weight: var(--font-weight-regular);
  font-size: var(--fs-location); line-height: 1.2;
}
.muzem-home .location-address { font-size: var(--fs-address); line-height: 1.5; }
.muzem-home .footer-social { display: flex; flex-direction: column; gap: 12px; }
.muzem-home .instagram-link { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-address); line-height: 1.5; }
.muzem-home .instagram-link:hover .instagram-label,
.muzem-home .legal-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.muzem-home .footer-divider { height: 1px; background: var(--color-surface-accent); transform-origin: left center; }
.muzem-home .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; font-size: 1rem; line-height: 1.5; }
.muzem-home .legal-links { display: flex; flex-wrap: wrap; gap: 8px 40px; }

/* ---------- Estado inicial de las entradas (solo con .motion-ready) ---------- */
.motion-ready .muzem-home [data-reveal] { opacity: 0; transform: translateY(24px); }
.motion-ready .muzem-home [data-draw] { transform: scaleX(0); }

/* =====================================================================
   Responsive (propuesta: no hay diseño mobile)
   ===================================================================== */
@media (max-width: 1279.98px) {
  .muzem-home .footer-top { flex-wrap: wrap; row-gap: 48px; }
  .muzem-home .footer-brand { flex: 0 0 100%; }
}

/* Tablet y mobile: una columna. En el hero, la foto arriba y el texto
   debajo, sobre el color del tema del slide: en estas fotos la pieza está
   en la mitad inferior y un texto encima la taparía. */
@media (max-width: 1023.98px) {
  .muzem-home { --cue-h: 96px; --photo-h: min(75vw, 48vh); }

  .muzem-home .hero-track { min-height: 0; }
  .muzem-home .hero-slide {
    flex-direction: column; align-items: stretch; justify-content: center;
    padding: calc(var(--photo-h) + 28px) var(--gutter) 100px;
  }
  .muzem-home .hero-media { bottom: auto; height: var(--photo-h); }
  .motion-ready .muzem-home .hero-media { top: calc(var(--photo-h) * -0.15); height: calc(var(--photo-h) * 1.15); }
  .muzem-home .hero-image { object-position: 50% 55%; }
  .muzem-home .hero-scrim { bottom: auto; height: var(--photo-h); }
  .muzem-home .hero-slide[data-theme="light"] .hero-scrim {
    background: linear-gradient(180deg, rgb(var(--scrim-light) / 0.6) 0%, rgb(var(--scrim-light) / 0) 30%, rgb(var(--scrim-light) / 0) 70%, rgb(var(--scrim-light)) 100%);
  }
  .muzem-home .hero-slide[data-theme="dark"] .hero-scrim {
    background: linear-gradient(180deg, rgb(var(--scrim-dark) / 0.55) 0%, rgb(var(--scrim-dark) / 0) 30%, rgb(var(--scrim-dark) / 0) 70%, rgb(var(--scrim-dark)) 100%);
  }
  /* Panel del texto: tapa la foto cuando el parallax la baja */
  .muzem-home .hero-slide::after { content: ""; position: absolute; inset: var(--photo-h) 0 0; background: inherit; }
  .muzem-home .hero-content { width: 100%; max-width: 600px; gap: 28px; }
  .muzem-home .hero-copy { gap: 16px; }
  .muzem-home .hero-lead { max-width: none; }
  .muzem-home .hero-arrow { top: auto; bottom: 24px; width: 44px; height: 44px; transform: none; }
  .muzem-home .hero-arrow-prev { left: var(--gutter); }
  .muzem-home .hero-arrow-next { right: var(--gutter); }
  .muzem-home .hero-pagination { bottom: 34px; }

  .muzem-home .scroll-cue-link { gap: 10px; }

  .muzem-home :is(.authenticity-content, .certificate-content, .craft-content) { flex-direction: column; align-items: stretch; gap: 40px; }
  .muzem-home :is(.authenticity-text, .certificate-text, .craft-text) { flex: none; }
  .muzem-home .authenticity-image { order: -1; flex: none; width: 100%; }
  .muzem-home .certificate-image { flex: none; width: min(78%, 360px); }
  .muzem-home .craft-image { flex: none; width: min(100%, 520px); }
  .muzem-home :is(.certificate-text, .craft-text) { align-items: flex-start; text-align: left; }
  .muzem-home .craft-body { max-width: none; }

  .muzem-home .section-tips { align-items: stretch; gap: 48px; }
  .muzem-home .tips-heading { width: 100%; text-align: left; }
  .muzem-home .tips-cta { align-self: flex-start; }
  .muzem-home .tips-list { gap: 56px; }
  .muzem-home :is(.tip, .tip--reverse) { flex-direction: column; align-items: flex-start; gap: 24px; padding-inline: 0; }
  .muzem-home .tip-image { order: -1; flex: none; width: min(72%, 360px); }
  .muzem-home .tip--reverse .tip-image { align-self: flex-end; }
  .muzem-home .tip-text { flex: none; width: 100%; }
  .muzem-home .tip--reverse .tip-text { text-align: left; }
}
@supports (height: 1svh) {
  @media (max-width: 1023.98px) {
    .muzem-home { --photo-h: min(75vw, 48svh); }
  }
}

@media (max-width: 767.98px) {
  /* El logo va centrado: ESP/ENG se compacta para no chocar con él */
  .muzem-home .lang-switch { gap: 14px; font-size: 0.9375rem; }
  .muzem-home .footer { gap: 48px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .muzem-home .footer-top { flex-direction: column; }
  .muzem-home .footer-logo { width: 200px; }
  .muzem-home .footer-locations { flex-direction: column; }
  .muzem-home .footer-bottom { flex-direction: column; align-items: flex-start; }
  .muzem-home .legal-links { flex-direction: column; }
}

@media (max-width: 479.98px) {
  .muzem-home .button { padding: 14px 22px; font-size: 1rem; white-space: normal; text-align: left; }
}
@media (max-width: 359.98px) {
  .muzem-home .lang-switch { gap: 10px; font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .muzem-home *,
  .muzem-home *::before,
  .muzem-home *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
