/* ==========================================================================
   MARTINICO OS — Hoja de estilos
   --------------------------------------------------------------------------
   Una interpretación del lenguaje visual de poolsuite.net (escritorio retro,
   Macintosh System 7) aplicada a la marca Martinico.

   REGLAS DEL SISTEMA (verificadas en la referencia, no inventadas):
     · Pantalla completa sin scroll: el contenido vive en una VENTANA.
     · Todo borde es de 1 px negro. Las esquinas van redondeadas a propósito:
       --r-lg (8 px) en ventanas, paneles y fichas; --r-sm (4 px) en mandos.
     · Los mandos son BISELES, no sombras difusas:
         subir  → inset -1px -1px 0 gris, inset 1px 1px 0 blanco, 0 0 0 1px negro
         bajar  → invertido
     · Dos registros tipográficos:
         - CRISTAL (interfaz): Geneva + Monaco (las fuentes del Mac clásico)
         - CONTENIDO (marca): Kindaten + Montserrat Alternates
     · Tramas de 1 bit hechas con gradientes CSS (sin archivos de imagen).
     · Un solo motivo decorativo: la BALDOSA (el damero hidráulico del suelo
       del local), siempre en franjas, nunca como fondo de toda la página.
     · Dos temas (claro y oscuro). El tema es una lista de tokens (bloque 02);
       ningún color se escribe a mano fuera de ahí.
     · Por debajo de 768 px el escritorio se abandona y la web fluye normal.

   ÍNDICE
     01. Fuentes
     02. Tokens (claro + oscuro)
     03. Base y utilidades
     04. Cursores pixelados
     05. Pantalla de arranque
     06. Barra de menús
     07. Escritorio (fondo)
     08. Ventana
     09. Dock
     10. Botones y enlaces
     11. Secciones y rejillas
     12. Fichas (cards)
     13. Carta (listas)
     14. Horario, contacto, avisos y mapa
     15. Pie de ventana
     16. Barras de scroll
     17. Baldosa (motivo de la casa)
     18. Cristal líquido
     19. Adaptación (responsive)
     20. Preferencias e impresión
   ========================================================================== */


/* ==========================================================================
   01. FUENTES
   ========================================================================== */
@font-face { font-family: "Kindaten"; src: url("../assets/fonts/kindaten.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/montserrat-alternates-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/montserrat-alternates-italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/montserrat-alternates-medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/montserrat-alternates-semibold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/montserrat-alternates-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/montserrat-alternates-extrabold.otf") format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/montserrat-alternates-black.otf") format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }


/* ==========================================================================
   02. TOKENS
   ========================================================================== */
:root {
  /* --- Marca --- */
  --blue:        #1D5BFF;   /* Azul Martinico */
  --blue-700:    #1546CC;   /* Azul para texto pequeño sobre claro */
  --blue-hover:  #2F68FF;   /* Azul al pasar por encima */
  --blue-shade:  #07214F;   /* Sombra interior de los botones azules */
  --blue-tint:   #DCE6FF;   /* Fondo suave para destacar un bloque */
  --navy:        #0D1C38;   /* Azul noche (fondo de escritorio) */
  --navy-2:      #12294F;   /* Azul noche algo más claro */
  --ink:         #0B0B0F;   /* Negro de la marca (filetes y texto) */

  /* --- Superficies de sistema --- */
  --cream:       #F9EFE4;   /* Gris platino cálido: barra de menús, ventana */
  --paper:       #FFFFFF;   /* Blanco de documento */
  --aqua:        #AFE2E5;   /* Pantalla / televisor */
  --sand:        #FAF4C6;   /* Aviso / nota */
  --grey:        #9B9B9B;   /* Sombra del bisel */
  --grey-2:      #D9D9D9;   /* Canal de barra de scroll */

  /* --- Grises de texto y filetes interiores ---------------------------------
     Nunca se escribe un gris a mano en el resto de la hoja: se usan estos.
     Así el modo oscuro es sólo cambiar la lista de arriba. */
  --muted:       #4A4A4A;   /* rótulos y datos secundarios de la interfaz */
  --muted-2:     #2B2B2B;   /* párrafos secundarios sobre el papel */
  --faint:       #6B6B6B;   /* texto secundario */
  --hairline:    rgba(11, 11, 15, .14);   /* filete entre filas de una lista */
  --dots:        rgba(11, 11, 15, .35);   /* línea de puntos de la carta */
  --bevel-hi:    #FFFFFF;   /* luz del bisel */
  --hover:       #FFFFFF;   /* fondo al pasar por encima */

  /* --- Bisel Macintosh System 7 (receta literal de la referencia) --- */
  --bevel-up:   inset -1px -1px 0 0 var(--grey), inset 1px 1px 0 0 var(--bevel-hi), 0 0 0 1px var(--ink);
  --bevel-down: inset  1px  1px 0 0 var(--grey), inset -1px -1px 0 0 var(--bevel-hi), 0 0 0 1px var(--ink);
  --bevel-flat: 0 0 0 1px var(--ink);
  --shadow-win: 4px 4px 0 0 rgba(3, 8, 18, .55);

  /* --- Movimiento: una sola curva para todo el sistema --- */
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* --- Radios: el toque suave sobre la rejilla dura del sistema --- */
  --r-lg: 8px;   /* ventanas, paneles y el dock */
  --r-sm: 4px;   /* botones, fichas y controles pequeños */

  /* --- Medidas del escritorio --- */
  --menubar-h: 30px;
  --dock-h:    54px;
  --win-gap:   16px;

  /* --- Tipografía --- */
  --font-ui:      Geneva, Verdana, Tahoma, "DejaVu Sans", sans-serif;
  --font-mono:    Monaco, "Courier New", Courier, monospace;
  --font-body:    "Montserrat Alternates", Verdana, Geneva, sans-serif;
  --font-display: "Kindaten", "Montserrat Alternates", Georgia, serif;

  /* --- Escala fluida (la usan estilos inline del HTML) --- */
  --step-0: clamp(1rem,   .95rem + .22vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.08rem + .6vw,  1.55rem);
  --step-2: clamp(1.5rem, 1.28rem + 1.1vw, 2.15rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw,  2.9rem);

  /* --- BALDOSA (bloque 17) --------------------------------------------------
     El único motivo decorativo: el damero hidráulico del suelo del local.
     Receta de la web clásica: un gradiente a 45° y su copia desplazada medio
     cuadro. El tamaño del cuadro es la MITAD del background-size.
     Va en blanco y negro fijos: es el suelo de verdad, no cambia de tema. */
  --floor-a: #FFFFFF;   /* cuadro claro */
  --floor-b: #0B0B0F;   /* cuadro oscuro */
  --baldosa: linear-gradient(45deg, var(--floor-b) 25%, transparent 25%, transparent 75%, var(--floor-b) 75%);

  /* --- Tramas de 1 bit (sin archivos): punteado y rejilla de losa --- */
  --dither:  repeating-conic-gradient(from 90deg, rgba(255,255,255,.055) 0% 25%, transparent 0% 50%);
  --tile:    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 8px),
             repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 8px);
  --stripe:  repeating-linear-gradient(180deg, rgba(0,0,0,.07) 0 1px, transparent 1px 2px);

  /* --- Cristal líquido (bloque 18) ------------------------------------------
     Dos versiones de cada superficie: opaca (--cream, --paper, --sand) y
     translúcida (--cream-glass...). Si el navegador no soporta
     backdrop-filter, se usa la opaca y no pasa nada. */
  --glass-blur:   16px;
  --glass-sheen:  rgba(255, 255, 255, .50);
  --cream-glass:  rgba(249, 239, 228, .68);
  --paper-glass:  rgba(255, 255, 255, .66);
  --sand-glass:   rgba(250, 244, 198, .76);
}


/* --------------------------------------------------------------------------
   02b. MODO OSCURO
   --------------------------------------------------------------------------
   Sólo se reescribe la lista de tokens. El tema lo pone el script del <head>
   en <html data-theme="claro|oscuro">, así que no hay parpadeo al cargar.
   Al ser un atributo con más peso que :root, estas reglas ganan siempre.
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  /* Marca: el azul se aclara para que se lea sobre fondo oscuro, pero se
     queda en un tono medio donde el texto blanco de los botones aún respira. */
  --blue:        #2E5FD8;
  --blue-700:    #9DBBFF;   /* enlaces: aquí SÍ hace falta un azul claro */
  --blue-hover:  #3D72F0;
  --blue-shade:  #0A1F4A;
  --blue-tint:   #172A4D;
  --navy:        #0A1220;
  --navy-2:      #101A2C;
  --ink:         #EDEFF4;

  --cream:       #1E2129;
  --paper:       #14161C;
  --aqua:        #1B3A3F;
  --sand:        #2C2B1C;
  --grey:        #565B66;
  --grey-2:      #33373F;

  --muted:       #A2A8B4;
  --muted-2:     #C6CBD5;
  --faint:       #8A9099;
  --hairline:    rgba(255, 255, 255, .16);
  --dots:        rgba(255, 255, 255, .40);
  --bevel-hi:    rgba(255, 255, 255, .22);
  --hover:       rgba(255, 255, 255, .10);

  --shadow-win:  4px 4px 0 0 rgba(0, 0, 0, .65);
  --stripe:      repeating-linear-gradient(180deg, rgba(255,255,255,.055) 0 1px, transparent 1px 2px);

  --glass-sheen: rgba(255, 255, 255, .12);
  --cream-glass: rgba(30, 33, 41, .68);
  --paper-glass: rgba(20, 22, 28, .66);
  --sand-glass:  rgba(44, 43, 28, .76);
}

/* Que los controles nativos (barras, campos) sigan al tema. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }


/* ==========================================================================
   03. BASE Y UTILIDADES
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  /* El escritorio es azul noche: en móvil es el fondo real de la página, en
     escritorio lo tapa .desktop, pero así el rebote elástico no destiñe. */
  background: var(--navy);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--blue); }

code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--grey-2);
  border: 1px solid var(--ink);
  padding: 0 .3em;
}

/* Foco visible en todo el sistema (estilo System 7: recuadro punteado) */
:focus-visible {
  outline: 2px dotted var(--ink);
  outline-offset: -4px;
}
.btn:focus-visible,
.menu-tabs a:focus-visible,
.win-btn:focus-visible,
.dock__item:focus-visible,
.nav-toggle:focus-visible,
.nav__menu a:focus-visible {
  outline: 2px dotted var(--ink);
  outline-offset: -4px;
}

/* Salto al contenido */
.skip-link {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 999;
  transform: translateY(-300%);
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: var(--bevel-up);
  font-family: var(--font-ui);
  font-size: 12px;
  padding: .45rem .7rem;
  text-decoration: none;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
  /* Primero el valor plano, luego el que suma el notch (iPhone en horizontal).
     Si env() no existe o vale 0, se queda con el de arriba: nada cambia. */
  padding-inline: 26px;
  padding-inline: calc(26px + env(safe-area-inset-left, 0px)) calc(26px + env(safe-area-inset-right, 0px));
}

/* Etiquetas de interfaz reutilizables */
.ui-label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}


/* ==========================================================================
   04. CURSORES PIXELADOS
   --------------------------------------------------------------------------
   La referencia usa cursores SVG propios. Aquí van incrustados (sin archivos)
   como flechas de bloque: negra por defecto, azul en lo pulsable.
   Para desactivarlos, comenta este bloque.
   ========================================================================== */
:root {
  --cur-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1 V13 L4 10 L6 14 L8 13 L6 9 H10 Z' fill='%230B0B0F' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E") 1 1, default;
  --cur-hand:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1 V13 L4 10 L6 14 L8 13 L6 9 H10 Z' fill='%231D5BFF' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E") 1 1, pointer;
  --cur-move:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1 V13 L4 10 L6 14 L8 13 L6 9 H10 Z' fill='%239B9B9B' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E") 1 1, move;
}

body { cursor: var(--cur-arrow); }

a, button, summary, label,
.dock__item, .nav-toggle, .win-btn, .menu-tabs a, .menu-item, .card {
  cursor: var(--cur-hand);
}

.window__titlebar,
.window__titlebar * { cursor: var(--cur-move); }


/* ==========================================================================
   05. PANTALLA DE ARRANQUE
   --------------------------------------------------------------------------
   La animación de marca (assets/img/boot.webp) se reproduce UNA sola vez en
   una "pantalla" blanca dentro de una ventana, como el arranque de un Mac.
   Es un WebP animado a 30 fps (los 117 fotogramas del vídeo original), no un
   vídeo: así ningún navegador (Firefox móvil incluido) muestra controles de
   reproducción. Recortado en cuadrado con object-fit:cover se ve siempre el
   logo completo (caja del logo = 28%–70% x 29%–68%).
   ========================================================================== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 20px;
  background-color: var(--navy);
  background-image: var(--dither), var(--tile);
  background-size: 4px 4px, 8px 8px;
  /* Red de seguridad si el JavaScript no llega a ejecutarse. Normalmente
     es os.js quien cierra la pantalla cuando el vídeo ha arrancado. */
  animation: boot-hide .45s ease 8s forwards;
}
.boot.is-hidden { animation: none; opacity: 0; visibility: hidden; }


.boot__window {
  width: min(86vw, 420px);
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-win);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.boot__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  padding: 0 6px;
  background-color: var(--cream);
  background-image: var(--stripe);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
}
.boot__dot {
  width: 9px; height: 9px; flex: none;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--ink);
}
.boot__name { overflow: hidden; text-overflow: ellipsis; }
.boot__size { margin-left: auto; color: var(--muted); }

.boot__screen {
  position: relative;
  aspect-ratio: 1 / 1;
  /* El vídeo de marca es negro sobre blanco: la pantalla va siempre en blanco,
     también de noche, para que no haya un salto de color al arrancar. */
  background: #fff;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
.boot__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;          /* que se comporte como animación, no como imagen */
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;   /* sin menú de "guardar imagen" al mantener pulsado */
}
/* Línea de barrido tipo tubo de rayos catódicos */
.boot__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
}

.boot__foot {
  padding: 10px 12px 12px;
  background: var(--cream);
}
.boot__bar {
  height: 15px;
  background: var(--paper);
  box-shadow: var(--bevel-down);
  padding: 2px;
}
.boot__fill {
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--blue);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, transparent 2px 5px);
}
/* La barra solo arranca cuando la animación ya está lista. Así se llena una
   sola vez, sin reinicios, y termina a la vez que el GIF. */
.boot.is-running .boot__fill {
  animation: boot-fill 3.9s steps(39, end) forwards;
}
.boot__caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.boot__skip {
  margin: 0;
  padding: 3px 10px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--bevel-up);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}

@keyframes boot-fill { from { width: 0; } to { width: 100%; } }
@keyframes boot-hide { to { opacity: 0; visibility: hidden; } }


/* ==========================================================================
   06. BARRA DE MENÚS
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  /* El menú se pega al borde físico superior del iPhone. La barra conserva
     su altura de siempre y el sobrante es el hueco de la isla/notch. */
  height: var(--menubar-h);
  height: calc(var(--menubar-h) + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  padding: env(safe-area-inset-top, 0px) calc(8px + env(safe-area-inset-right, 0px)) 0
           calc(8px + env(safe-area-inset-left, 0px));
  background: var(--cream);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1;
  color: var(--ink);
}
.site-header.is-scrolled { box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }

.menubar__left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.menubar__left > * { flex: none; }

.menubar__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.menubar__icon:hover { background: var(--ink); color: var(--cream); }
.menubar__icon svg { width: 13px; height: 15px; display: block; pointer-events: none; }

.menubar__brand {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: .02em;
  padding-right: 6px;
  white-space: nowrap;
}
.menubar__brand b { font-weight: 400; color: var(--muted); }

.menubar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.menubar__clock {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.menubar__date { color: var(--muted); }

/* Navegación de la barra de menús */
.nav__menu ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  display: block;
  padding: 4px 9px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}
.nav__menu a:hover {
  background: var(--ink);
  color: var(--cream);
}
.nav__menu a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
  box-shadow: inset 1px 1px 0 0 rgba(0, 0, 0, .4), inset -1px -1px 0 0 rgba(255, 255, 255, .35);
}

/* Botón de menú (sólo móvil) */
.nav-toggle {
  display: none;
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  background: var(--cream);
  box-shadow: var(--bevel-up);
  place-items: center;
}
.nav-toggle__bars {
  display: block;
  width: 12px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 4px 0 0 var(--ink), 0 -4px 0 0 var(--ink);
}
.nav-toggle:active { box-shadow: var(--bevel-down); }

/* Interruptor de tema (claro / oscuro). Es un mando más del sistema. */
.theme-btn {
  width: 22px;
  height: 20px;
  padding: 0;
  border: 0;
  background: var(--cream);
  box-shadow: var(--bevel-up);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.theme-btn:active { box-shadow: var(--bevel-down); }
.theme-btn svg { width: 12px; height: 12px; display: block; fill: currentColor; }
/* De día se enseña el sol; de noche, la luna.
   (Con .theme-btn delante para ganar a `.theme-btn svg { display:block }`.) */
.theme-btn .theme-btn__moon { display: none; }
:root[data-theme="dark"] .theme-btn .theme-btn__moon { display: block; }
:root[data-theme="dark"] .theme-btn .theme-btn__sun  { display: none; }

/* Interruptor de idioma (español / inglés). Mismo mando que el del tema. */
.lang-btn {
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  border: 0;
  background: var(--cream);
  box-shadow: var(--bevel-up);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
}
.lang-btn:active { box-shadow: var(--bevel-down); }


/* ==========================================================================
   07. ESCRITORIO (FONDO)
   ========================================================================== */
.desktop {
  position: fixed;
  inset: var(--menubar-h) 0 0 0;
  inset: calc(var(--menubar-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  overflow: hidden;
  background-color: var(--navy);
  background-image: var(--dither), var(--tile);
  background-size: 4px 4px, 8px 8px;
}
/* El escritorio es el destino del enlace "Saltar al contenido": recibe el
   foco por teclado, pero no necesita un recuadro alrededor de toda la pantalla. */
.desktop:focus,
.desktop:focus-visible { outline: none; }

/* Etiqueta del escritorio: vive en la franja libre que queda a la derecha del
   dock, bajo la ventana. Va con fondo, como las etiquetas de los iconos del
   escritorio clásico, para que se lea sobre el azul noche. */
.desktop__watermark {
  position: absolute;
  right: 16px;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 2px 8px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink);
  user-select: none;
  pointer-events: none;
}


/* ==========================================================================
   08. VENTANA
   ========================================================================== */
.window {
  position: absolute;
  left: var(--win-gap);
  right: var(--win-gap);
  left: calc(var(--win-gap) + env(safe-area-inset-left, 0px));
  right: calc(var(--win-gap) + env(safe-area-inset-right, 0px));
  top: var(--win-gap);
  bottom: calc(var(--dock-h) + var(--win-gap) + 12px);
  bottom: calc(var(--dock-h) + var(--win-gap) + 12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-win);
  /* clip (no hidden) recorta las esquinas sin crear un contenedor de scroll,
     así la barra pegajosa de móvil sigue pegándose al viewport. */
  overflow: clip;
}
/* El foco inicial de la ventana es programático: el recuadro punteado del
   sistema distraería dentro del marco. Los mandos sí conservan su foco. */
.window:focus,
.window:focus-visible { outline: none; }
/* Estado "pantalla completa" (lo activa el botón del cuadro de la ventana) */
.window.is-zoomed {
  left: 0; right: 0; top: 0;
  left: env(safe-area-inset-left, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: calc(var(--dock-h) + 14px);
  bottom: calc(var(--dock-h) + 14px + env(safe-area-inset-bottom, 0px));
  box-shadow: none;
}

.window__titlebar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 5px 0 8px;
  background-color: var(--cream);
  background-image: var(--stripe);
  border-bottom: 1px solid var(--ink);
  /* Las esquinas de arriba siguen el radio de la ventana (sin overflow:hidden,
     que rompería la barra pegajosa en móvil). */
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  user-select: none;
}
.window__name { font-weight: 700; white-space: nowrap; }
.window__dims { color: var(--muted); white-space: nowrap; }
.window__tag {
  margin-left: 6px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--ink);
}
.window__controls {
  margin-left: auto;
  display: flex;
  gap: 7px;
  /* Por encima de las asas de redimensionado: la esquina de la "x" nunca
     debe activar un redimensionado. */
  position: relative;
  z-index: 6;
}
.win-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: var(--cream);
  box-shadow: var(--bevel-up);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  color: var(--ink);
}
.win-btn:active { box-shadow: var(--bevel-down); }
.win-btn svg { width: 9px; height: 9px; display: block; fill: currentColor; }

.window__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--paper);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.window__statusbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 20px;
  padding: 0 8px;
  background-color: var(--cream);
  background-image: var(--stripe);
  border-top: 1px solid var(--ink);
  border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.window__statusbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ==========================================================================
   09. DOCK
   ========================================================================== */
.dock {
  position: fixed;
  left: 50%;
  /* El dock se centra dentro del hueco útil, no dentro de la pantalla entera:
     con la pantalla física metida bajo el notch sigue cayendo en el centro. */
  left: calc(50% + (env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) / 2);
  bottom: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 600;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  max-width: calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  display: flex;
  align-items: stretch;
  gap: 3px;
  padding: 5px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--bevel-up), 3px 3px 0 rgba(3, 8, 18, .5);
}

.dock__item {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 62px;
  padding: 5px 7px 4px;
  background: var(--cream);
  box-shadow: var(--bevel-up);
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: .02em;
  line-height: 1.1;
  text-align: center;
}
.dock__item svg { width: 20px; height: 20px; display: block; fill: var(--ink); }
.dock__item:hover { background: var(--hover); }
.dock__item:active { box-shadow: var(--bevel-down); }
.dock__item[aria-current="page"] {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--bevel-down);
}
.dock__item[aria-current="page"] svg { fill: #fff; }

/* Aplicación que está encima de todas: se ilumina en el dock */
.dock__item.is-front {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--bevel-down);
}
.dock__item.is-front svg { fill: #fff; }

.dock__sep {
  width: 1px;
  align-self: stretch;
  margin: 2px 3px;
  background: var(--grey);
  box-shadow: 1px 0 0 0 var(--bevel-hi);
}

.dock__external svg { shape-rendering: auto; overflow: visible; }
.dock__item svg { overflow: visible; }


/* ==========================================================================
   10. BOTONES Y ENLACES
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1;
  padding: 8px 14px;
  background: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: var(--r-sm);
  box-shadow: var(--bevel-up);
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--hover); color: var(--ink); }
.btn:active { box-shadow: var(--bevel-down); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: inset -1px -1px 0 0 var(--blue-shade), inset 1px 1px 0 0 rgba(255, 255, 255, .5), 0 0 0 1px var(--ink);
}
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--primary:active { box-shadow: inset 1px 1px 0 0 var(--blue-shade), inset -1px -1px 0 0 rgba(255, 255, 255, .5), 0 0 0 1px var(--ink); }

.btn--outline-light {
  background: var(--cream);
  color: var(--ink);
}
.btn--light { background: var(--cream); color: var(--ink); }

.text-link {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--blue-700);
  text-decoration: underline;
}
.text-link:hover { color: var(--blue); }
.text-link .arrow { font-family: var(--font-mono); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.2rem 0 0;
}


/* ==========================================================================
   11. SECCIONES Y REJILLAS
   ========================================================================== */
.section { padding: 2.6rem 0; }
.section + .section { border-top: 1px solid var(--ink); }

.section--tint {
  background-color: var(--cream);
  background-image: var(--dither);
  background-size: 4px 4px;
}
.section--navy {
  /* Fondo PLANO, como la cabecera de la portada ("Coctelería de autor..."):
     mismo azul, sin trama de punteado ni baldosa. */
  background-color: var(--navy);
  background-image: none;
  color: #fff;
}
.section--navy .section__title,
.section--navy .section__lead { color: #fff; }

.section__head { margin-bottom: 1.5rem; }
.section__head--center { text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  letter-spacing: .01em;
  margin-bottom: .3rem;
}
.section__lead {
  max-width: 60ch;
  margin: 0;
  font-size: var(--step-0);
  color: var(--muted-2);
}
.section__head--center .section__lead { margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
}
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }

.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

/* Fotografías: enmarcadas como archivos, sin rótulo debajo */
.split__media {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--bevel-up);
  padding: 6px;
}
.split__media img {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
}

/* --- Portada (hero) --- */
.hero {
  position: relative;
  /* Fondo PLANO a propósito: mismo azul que el escritorio pero sin la trama
     de punteado ni la rejilla. El texto y el logo se leen sobre color limpio. */
  background-color: var(--navy);
  color: #fff;
  padding: 2.4rem 0 3.2rem;
  border-bottom: 1px solid var(--ink);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
}
/* min-width:0 evita que una palabra larga ensanche y rompa su columna */
.hero__text { min-width: 0; }

/* Entrada de la portada: la ventana "aparece" al abrir la web. Solo aquí,
   y se anula sola si el sistema pide reducir movimiento (bloque 18).
   Se anima ÚNICAMENTE el desplazamiento, nunca la opacidad: así, incluso en el
   peor caso (una animación que no llegue a correr), el titular sigue visible. */
@keyframes entrar {
  from { transform: translateY(12px); }
  to   { transform: none; }
}
.hero .reveal    { animation: entrar .55s var(--ease) both; }
.hero .reveal--d2 { animation-delay: .14s; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  line-height: 1;
  color: #fff;
  margin-bottom: .5rem;
}
.hero__lead {
  max-width: 46ch;
  color: #d8e0ef;
}
.hero__facts {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #b9c6dd;
}
.hero__facts li { position: relative; }
.hero__facts li + li::before {
  content: "";
  position: absolute;
  left: -.55rem;
  top: .35em;
  width: 3px;
  height: 3px;
  background: currentColor;
}
.hero__facts a { color: #fff; }

/* El logotipo de la portada vive dentro de un "monitor" de sistema */
.hero__art {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--bevel-up), var(--shadow-win);
  overflow: hidden;
}
.hero__art::before {
  content: "martinico.png · 394×640";
  display: block;
  padding: 3px 6px;
  background-color: var(--cream);
  background-image: var(--stripe);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
  text-align: left;
}
.hero__art img {
  width: 100%;
  /* 336 = 300 de logo + 18 de aire arriba + 18 de aire abajo */
  max-height: 336px;
  object-fit: contain;
  padding: 18px;
  background: var(--navy);
}

/* Suelo de la portada. El estilo del motivo está en el bloque 17 (BALDOSA). */


/* ==========================================================================
   12. FICHAS
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--bevel-up);
  overflow: hidden;
}
.card__media {
  border-bottom: 1px solid var(--ink);
}
.card__media--glyph {
  display: grid;
  place-items: center;
  min-height: 148px;
  padding: 1.1rem;
  background-color: var(--cream);
  background-image: var(--dither);
  background-size: 4px 4px;
}
.card__media--glyph img {
  width: auto;
  height: 76px;
  object-fit: contain;
}
.card__body { padding: .9rem 1rem 1.05rem; }
.eyebrow {
  display: inline-block;
  margin: 0 0 .45rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--ink);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-1);
  margin-bottom: .3rem;
}
.card__text { font-size: .95em; margin-bottom: .8rem; color: var(--muted-2); }
.card__price {
  margin: 0;
  padding-top: .55rem;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}


/* ==========================================================================
   13. CARTA
   ========================================================================== */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1rem;
}
.menu-tabs a {
  font-family: var(--font-ui);
  font-size: 11px;
  padding: 6px 10px;
  background: var(--cream);
  box-shadow: var(--bevel-up);
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}
.menu-tabs a:hover { background: var(--hover); }
.menu-tabs a:active { box-shadow: var(--bevel-down); }

/* Pestañas de la carta: ocupan el lugar de la etiqueta azul del título y
   cambian el contenido dentro de la misma ventana. */
.carta-tabs {
  position: sticky;
  top: 0;
  /* Por encima de las asas de redimensionado (z-index 5): en móvil el asa
     izquierda amplía su área táctil y tapaba el icono de Portada. */
  z-index: 6;
  display: flex;
  align-items: stretch;
  gap: 3px;
  padding: 4px 6px;
  background-color: var(--cream);
  background-image: var(--stripe);
  border-bottom: 1px solid var(--ink);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carta-tabs::-webkit-scrollbar { display: none; }
.carta-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--cream);
  box-shadow: var(--bevel-up);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.carta-tab:hover { background: var(--hover); }
.carta-tab:active { box-shadow: var(--bevel-down); }
.carta-tab[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--ink), inset -1px -1px 0 rgba(0, 0, 0, .35);
}
.carta-tab:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
}
.carta-tab svg { width: 10px; height: 10px; display: block; fill: currentColor; }
.carta-panel[hidden] { display: none; }
.carta-placeholder {
  margin: 0 0 1rem;
  font-size: 11px;
  font-style: italic;
  color: var(--muted-2);
}
@media (max-width: 767px) {
  /* Carta abierta directamente (sin escritorio): la página entera hace
     scroll y el título de la ventana se queda pegado a 34 px. Las pestañas
     se pegan justo debajo para no taparlo. */
  .carta-tabs {
    top: calc(34px + 24px + env(safe-area-inset-top, 0px));
    flex-wrap: wrap;
    overflow-x: visible;
  }
}
/* Con el escritorio de ventanas, el cuerpo de la ventana es quien hace
   scroll y el título queda fuera: las pestañas se pegan al borde de arriba
   del cuerpo (0), no 58 px más abajo. */
.desktop--windows .carta-tabs { top: 0; }
@media (pointer: coarse) {
  .carta-tab { min-height: 36px; padding: 8px 9px; }
}
@media (max-width: 420px) {
  .carta-tab--home .carta-tab__label { display: none; }
}

.menu-group {
  margin-bottom: 2rem;
  scroll-margin-top: 8px;
}
.menu-group--featured .menu-list {
  background: var(--blue-tint);
}
.menu-group__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0;
}
.menu-group__icon { width: 17px; height: auto; }
/* Los iconos son archivos SVG en negro fijo (#0B0B0F): sobre el papel oscuro
   desaparecerían. De noche se fuerzan a blanco (brillo 0 + invertir). El filtro
   no toca la transparencia, sólo el color del dibujo, así que el rabo del
   dibujo sigue limpio. */
:root[data-theme="dark"] .menu-group__icon { filter: brightness(0) invert(1); }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--paper);
  /* Sólo abajo: arriba el borde lo pone el título del grupo. */
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
}
.menu-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: .5rem;
  padding: .5rem .7rem;
  border-bottom: 1px solid var(--hairline);
}
.menu-item:last-child { border-bottom: 0; }
/* Los ítems de la carta NO reaccionan: no cambian de aspecto al pasar o pulsar. */
.menu-item:hover,
.menu-item:active,
.menu-item:focus-visible { background: transparent; color: inherit; }
.menu-item:hover .menu-item__desc,
.menu-item:hover .menu-item__price,
.menu-item:active .menu-item__desc,
.menu-item:active .menu-item__price { color: inherit; }
.menu-item:hover .menu-item__dots,
.menu-item:active .menu-item__dots { border-bottom-color: inherit; }

.menu-item__main { display: contents; }
.menu-item__name {
  grid-area: 1 / 1;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
}
.menu-item__notes,
.card__notes {
  font-size: 10.5px;
  font-style: italic;
  color: var(--muted-2);
  line-height: 1.35;
}
.menu-item__notes { grid-area: 2 / 1 / 3 / 3; }
.card__notes { margin: 0 0 .55rem; }
.menu-item__sin-alcohol,
.card__sin-alcohol {
  font-style: normal;
  color: var(--blue-700);
  white-space: nowrap;
}
.menu-item__sin-alcohol::before,
.card__sin-alcohol::before {
  content: "·";
  margin: 0 .32rem;
}
.menu-item__desc {
  grid-area: 3 / 1 / 4 / 4;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.4;
}
.menu-item__dots {
  grid-area: 1 / 2;
  align-self: baseline;
  border-bottom: 2px dotted var(--dots);
  transform: translateY(-3px);
}
.menu-item__price {
  grid-area: 1 / 3;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}


/* ==========================================================================
   14. HORARIO, CONTACTO Y AVISOS
   ========================================================================== */
.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
}
.hours li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  padding: .35rem .7rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
}
.hours li:last-child { border-bottom: 0; }
.hours__time { text-align: right; }
.hours li.is-today {
  background: var(--blue);
  color: #fff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .35), inset 0 -1px 0 0 rgba(0, 0, 0, .35);
}
.hours li.is-today .hours__day::after {
  content: " · hoy";
  font-size: 10px;
  opacity: .9;
}
html[lang="en"] .hours li.is-today .hours__day::after {
  content: " · today";
}

.contact-aside { display: grid; gap: .7rem; }
.contact-line {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--bevel-up);
  padding: .5rem .7rem;
}
.contact-line__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-line__value {
  font-family: var(--font-mono);
  font-size: 13px;
  /* El correo es una cadena larga sin espacios: que pueda partirse antes que
     desbordar la tarjeta en móvil. */
  overflow-wrap: anywhere;
}

/* Tarjeta de lugar: como un cuadro de diálogo del sistema */
.place-card {
  background: var(--cream);
  background-image: var(--dither);
  background-size: 4px 4px;
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--bevel-up);
  padding: 1rem;
}
.place-card h2,
.place-card h3 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--ink);
}
.place-card .btn { margin-top: .6rem; }

/* --- Mapa en vivo (bloque 14) ---------------------------------------------
   El mapa se sirve dentro de un marco de ventana, como si fuera un archivo
   abierto. Se usa OpenStreetMap: no pide clave de API, no pide tarjeta y no
   pone cookies. Para cambiar a Google Maps basta con sustituir el src del
   <iframe> en contacto.html. */
.map-frame {
  margin: .7rem 0 .5rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--bevel-down);
  overflow: hidden;
}
.map-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 6px;
  background-color: var(--cream);
  background-image: var(--stripe);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
}
.map-frame__dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--ink);
}
.map-frame__name { font-weight: 700; white-space: nowrap; }
.map-frame__hint { margin-left: auto; color: var(--muted); white-space: nowrap; }
.map-frame__view {
  display: block;
  width: 100%;
  height: 250px;
  border: 0;
  /* Un filtro suave para que el mapa no desentone con el papel y el azul. */
  filter: grayscale(.32) sepia(.16) saturate(.9) contrast(1.02);
}
.map-frame__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 6px;
  border-top: 1px solid var(--ink);
  background-color: var(--cream);
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
}
.map-frame__note { font-size: .82rem; color: var(--muted); margin: .1rem 0 .6rem; }
.place-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.place-card__actions .btn { margin-top: 0; }

/* De noche el mapa baja de brillo en vez de invertirse (seguiría desentonando) */
:root[data-theme="dark"] .map-frame__view {
  filter: grayscale(.30) saturate(.7) brightness(.76) contrast(1.06);
}

/* Aviso de contenido de ejemplo */
.note {
  margin-top: 1.4rem;
  background-color: var(--sand);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--bevel-up);
  padding: .7rem .85rem;
  font-size: .92em;
}
.note::before {
  content: "nota";
  display: inline-block;
  margin-right: .5rem;
  padding: 0 5px;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--sand);
}


/* ==========================================================================
   15. PIE DE VENTANA
   ========================================================================== */
.site-footer {
  background-color: var(--cream);
  background-image: var(--dither);
  background-size: 4px 4px;
  border-top: 1px solid var(--ink);
  padding: 1.8rem 0 1.2rem;
  font-size: .92em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.4rem;
}
.footer-col h3 {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--ink);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .3rem; }
.footer-brand p { margin-bottom: .7rem; }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1.6rem;
  padding-top: .8rem;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}


/* ==========================================================================
   16. BARRAS DE SCROLL (estilo del sistema)
   ========================================================================== */
.window__body {
  scrollbar-width: thin;
  scrollbar-color: var(--grey) var(--grey-2);
}
.window__body::-webkit-scrollbar { width: 15px; }
.window__body::-webkit-scrollbar-track {
  background: var(--grey-2);
  border-left: 1px solid var(--ink);
}
.window__body::-webkit-scrollbar-thumb {
  background: var(--cream);
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  box-shadow: var(--bevel-up);
}
.window__body::-webkit-scrollbar-thumb:active { box-shadow: var(--bevel-down); }
.window__body::-webkit-scrollbar-corner { background: var(--grey-2); }


/* ==========================================================================
   17. BALDOSA (MOTIVO DE LA CASA)
   --------------------------------------------------------------------------
   El damero hidráulico del suelo del local: el único motivo decorativo de la
   web. Va SIEMPRE en franjas cortas, nunca como fondo de página. Así es un
   guiño al suelo y no un papel pintado.

   La receta es la de la primera versión de la web: dos gradientes a 45° del
   mismo tamaño, el segundo desplazado medio cuadro. El cuadro visible mide la
   MITAD del background-size:
       background-size: 12px 12px  →  cuadros de 6 px
       background-position: 0 0, 6px 6px
   ========================================================================== */

/* (La barra de menús ya NO lleva franja de baldosa: se quitó a propósito.) */

/* El suelo de la portada. */
.floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16px;
  border-top: 1px solid var(--ink);
  background-color: var(--floor-a);
  background-image: var(--baldosa), var(--baldosa);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

/* El suelo de las fichas con icono. */
.card__media--glyph { position: relative; }
.card__media--glyph::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 7px;
  background-color: var(--floor-a);
  background-image: var(--baldosa), var(--baldosa);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}

/* El marco de la tarjeta de ubicación. */
.place-card { position: relative; overflow: hidden; }
.place-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background-color: var(--floor-a);
  background-image: var(--baldosa), var(--baldosa);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}


/* ==========================================================================
   18. CRISTAL LÍQUIDO (SUTIL)
   --------------------------------------------------------------------------
   Muy contenido a propósito: sólo se vuelve translúcido el CROMO del sistema
   (barra de menús, barras de la ventana, dock, mandos y tarjetas). El papel
   del documento se queda opaco para que el texto se lea siempre.

   Si el navegador no entiende backdrop-filter, este bloque entero se ignora y
   todo conserva su fondo opaco. No hay nada que se rompa.
   ========================================================================== */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

  .site-header,
  .window__titlebar,
  .window__statusbar,
  .dock,
  .dock__item,
  .win-btn,
  /* Se excluye el botón principal a propósito: si el cristal le pisara el
     fondo, en modo claro perdería el azul y el texto blanco no se leería. */
  .btn:not(.btn--primary),
  .theme-btn,
  .menu-tabs a,
  .hero__art,
  .hero__art::before,
  .place-card,
  .note,
  .card,
  .contact-line,
  .map-frame,
  .map-frame__bar,
  .map-frame__foot,
  .desktop__watermark,
  .boot__window,
  .boot__titlebar,
  .boot__foot,
  .boot__skip {
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.45);
            backdrop-filter: blur(var(--glass-blur)) saturate(1.45);
  }

  /* Superficies de cromo: la versión translúcida del token. */
  .site-header,
  .window__titlebar,
  .window__statusbar,
  .dock,
  .dock__item,
  .win-btn,
  /* Se excluye el botón principal a propósito: si el cristal le pisara el
     fondo, en modo claro perdería el azul y el texto blanco no se leería. */
  .btn:not(.btn--primary),
  .theme-btn,
  .menu-tabs a,
  .hero__art,
  .hero__art::before,
  .place-card,
  .desktop__watermark,
  .map-frame__bar,
  .map-frame__foot,
  .boot__window,
  .boot__titlebar,
  .boot__foot,
  .boot__skip {
    background-color: var(--cream-glass);
  }

  /* Superficies de papel. */
  .card,
  .contact-line,
  .map-frame { background-color: var(--paper-glass); }

  .note { background-color: var(--sand-glass); }

  /* --- Reflejo del cristal (especular) --------------------------------------
     Una luz suave en el borde de arriba de cada PANEL. Va delante en la lista
     de fondos, así que se SUMA a la trama que la superficie ya tuviera (la
     rayita del cromo, el punteado de la tarjeta) sin borrarla.
     Sólo se pone en paneles: ni botones ni pestañas, para que al pasar el ratón
     no parpadee (su :hover reescribe el fondo entero). */
  .site-header,
  .dock,
  .hero__art,
  .desktop__watermark,
  .card,
  .contact-line,
  .map-frame,
  .map-frame__foot,
  .note,
  .boot__window,
  .boot__foot,
  .boot__skip {
    background-image: linear-gradient(180deg, var(--glass-sheen), rgba(255, 255, 255, 0) 30px);
  }

  /* Los que ya llevan la rayita del cromo: la conservan debajo del reflejo. */
  .window__titlebar,
  .window__statusbar,
  .map-frame__bar,
  .hero__art::before,
  .boot__titlebar {
    background-image: linear-gradient(180deg, var(--glass-sheen), rgba(255, 255, 255, 0) 22px), var(--stripe);
  }

  /* La tarjeta de lugar lleva punteado: hay que rehacer su background-size,
     porque con dos capas el `4px 4px` de antes se le aplicaría al reflejo. */
  .place-card {
    background-image: linear-gradient(180deg, var(--glass-sheen), rgba(255, 255, 255, 0) 30px), var(--dither);
    background-size: auto, 4px 4px;
  }
}


/* ==========================================================================
   19. ADAPTACIÓN
   --------------------------------------------------------------------------
   La referencia abandona el escritorio fijo por debajo de 768 px y pasa a
   ser una página normal. Aquí se hace lo mismo, por eso la ventana deja de
   ser absoluta y el scroll vuelve a la página.
   ========================================================================== */
@media (min-width: 768px) {
  html, body { height: 100%; }
  body { height: 100dvh; overflow: hidden; }
  /* El arrastre de la ventana sólo existe con ventana fija; en móvil la barra
     se queda pegajosa y debe permitir el scroll con el dedo. */
  .window__titlebar { touch-action: none; }
}

/* La ventana va metida ~70 px dentro de la pantalla, así que el contenido es
   más estrecho que el viewport: los cortes van por debajo de lo habitual. */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero__art { max-width: 280px; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  html, body { height: auto; overflow: visible; }
  body { overflow-x: hidden; }

  /* La barra de menús pasa a ser pegajosa y despliega el menú. En iPhone la
     barra crece sólo por el hueco de la isla: el dibujo sigue midiendo 34 px. */
  .site-header { position: sticky; height: 34px; height: calc(34px + env(safe-area-inset-top, 0px)); }
  .nav-toggle { display: grid; margin-left: auto; }
  .menubar__clock { gap: 6px; }
  .menubar__date { display: none; }
  .menubar__left { flex: 1 1 auto; }
  .menubar__right { margin-left: 0; }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* El menú móvil se pone por encima de lo que haya debajo. */
    z-index: 1;
    display: none;
    background: var(--cream);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
  }
  .site-header.nav-open .nav__menu { display: block; }
  .nav__menu ul { flex-direction: column; gap: 0; padding: 4px; }
  /* 15 px de relleno arriba y abajo = 44 px por fila: el dedo acierta. */
  .nav__menu a { padding: 15px 10px; }
  .nav__menu a:hover { background: var(--ink); color: var(--cream); }

  /* Al saltar a un ancla (#autor, #horario, #contenido) las barras pegajosas
     tapaban el título. El navegador deja el ancla por debajo de ambas. */
  html { scroll-padding-top: 58px; }

  /* La ventana deja de ser absoluta: es una tarjeta que fluye */
  .desktop {
    position: static;
    overflow: visible;
    padding-bottom: 6px;
  }
  .desktop__watermark { display: none; }
  .window {
    position: static;
    margin: 8px;
    box-shadow: none;
  }
  .window.is-zoomed { margin: 0; border-left: 0; border-right: 0; }
  .window__titlebar {
    position: sticky;
    top: 34px;
    top: calc(34px + env(safe-area-inset-top, 0px));
    z-index: 40;
  }
  .window__body { overflow: visible; padding-bottom: 6px; }

  /* Dock: barra flotante y centrada; los 6 accesos se reparten el ancho.
     Se centra dentro del hueco útil y se aparta del indicador del iPhone. */
  .dock {
    left: 0;
    left: env(safe-area-inset-left, 0px);
    right: 0;
    right: env(safe-area-inset-right, 0px);
    bottom: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    transform: none;
    max-width: 460px;
    margin-inline: auto;
    justify-content: center;
    overflow-x: visible;
    padding: 5px 6px;
    gap: 3px;
  }
  .dock__item { min-width: 0; flex: 1 1 0; padding: 5px 2px 4px; }
  .dock__label { font-size: 10px; }
  body {
    padding-bottom: calc(var(--dock-h) + 16px);
    padding-bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom, 0px));
  }

  .hero { padding: 2rem 0 2.8rem; }
  .section { padding: 1.9rem 0; }
  .container { padding-inline: 18px; }
  .container {
    padding-inline: calc(18px + env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__facts { flex-direction: column; gap: .25rem; }
  .hero__facts li + li::before { display: none; }
  .menu-item { grid-template-columns: 1fr auto; }
  .menu-item__name { grid-area: 1 / 1; }
  .menu-item__dots { display: none; }
  .menu-item__price { grid-area: 1 / 2; }
  .menu-item__desc { grid-area: 3 / 1 / 4 / 3; }
  .card__media--glyph { min-height: 118px; }
  .card__media--glyph img { height: 58px; }
}


/* ==========================================================================
   20. PREFERENCIAS E IMPRESIÓN
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .boot { animation: boot-hide .2s ease .6s forwards; }
  .boot__fill { width: 100%; animation: none; }
  .boot.is-running .boot__fill { width: 100%; animation: none; }
  .window__body { scroll-behavior: auto; }
}

@media (prefers-contrast: more) {
  :root { --grey: #6b6b6b; }
  .nav__menu a[aria-current="page"] { background: var(--navy); }
  .dock__item[aria-current="page"] { background: var(--navy); }
}

@media print {
  .site-header, .dock, .boot, .window__statusbar, .skip-link { display: none !important; }
  .desktop, .window, .window__body { position: static; overflow: visible; border: 0; box-shadow: none; }
  body { overflow: visible; height: auto; background: #fff; }
}


/* ==========================================================================
   21. TÁCTIL (móvil y tablet con dedo)
   --------------------------------------------------------------------------
   Los mandos de esta interfaz son deliberadamente pequeños: son mandos de
   sistema de 1997 y ese es su dibujo. Aquí NO se les cambia el tamaño a la
   vista; se les agranda el área de TOQUE con un pseudo-elemento invisible,
   de modo que el dedo acierte pero el dibujo sigue midiendo lo mismo.

   Se activa sólo con puntero táctil (@media (pointer: coarse)), así que el
   escritorio con ratón no cambia ni un píxel.

   Objetivo: 44 x 44 px por control (WCAG 2.5.5 / guía de iPhone).
   ========================================================================== */
@media (pointer: coarse) {

  /* --- Barra de menús --------------------------------------------------
     Caben dos mandos en el lado derecho con 10 px de hueco entre ellos.
     Cada uno se estira hacia su lado y se reparte el hueco por la mitad,
     así ninguno se come el área del otro. En vertical empiezan en el borde
     superior de la pantalla y llegan a 44 px. */
  .theme-btn, .lang-btn, .nav-toggle, .menubar__icon { position: relative; }
  .menubar__icon::after {
    content: "";
    position: absolute;
    inset: -11px;
  }
  .theme-btn::after {
    content: "";
    position: absolute;
    top: -7px; bottom: -17px;
    left: -11px; right: -5px;
  }
  .lang-btn::after {
    content: "";
    position: absolute;
    top: -7px; bottom: -17px;
    left: -5px; right: -5px;
  }
  .nav-toggle::after {
    content: "";
    position: absolute;
    top: -6px; bottom: -16px;
    left: -5px; right: -8px;
  }

  /* --- Cuadros de la ventana ------------------------------------------
     Entre cuadro y cuadro hay 25 px reales, así que NO se pueden llevar a
     44 de ancho sin solaparse y robarse los toques entre sí. Se les da el
     ancho máximo que cabe (24 px) y toda la altura de la barra (24 px). */
  .win-btn { position: relative; }
  .win-btn::after { content: ""; position: absolute; inset: -3px; }

  /* --- Dock inferior ---------------------------------------------------
     Los ítems ya pasan de 44 px de ancho; lo que les falta es altura (42).
     Se estiran a 44, que sigue cabiendo dentro de los 5 px de relleno. */
  .dock__item { position: relative; }
  .dock__item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 44px;
    transform: translateY(-50%);
  }

  /* --- Pestañas de la carta -------------------------------------------
     Pasan a 40 px de alto y se les dan 2 px por lado: dan 44 px de diana y
     se reparten el hueco de 5 px que ya había entre pestañas sin pisarse
     (sobra 1 px de aire por cada lado). */
  .menu-tabs a { position: relative; padding: 11px 10px; }
  .menu-tabs a::after {
    content: "";
    position: absolute;
    top: -2px; bottom: -2px;
    left: -2px; right: -2px;
  }

  /* --- Botones con texto ----------------------------------------------
     Éstos sí se agrandan de verdad: un CTA de 28 px en un teléfono es
     difícil de dar. Pasan a 44 px de alto. */
  .btn { padding: 16px 16px; }

  /* --- Enlaces del pie ------------------------------------------------
     OJO: aquí NO vale el truco del pseudo-elemento. Las filas del pie
     están a 29 px unas de otras (24 px de texto + 4,8 de margen), así que
     un área de 44 px centrada en cada enlace se solapa 15 px con la
     siguiente y el dedo acabaría abriendo el enlace de abajo.
     Se separan las filas de verdad: el margen desaparece y el enlace
     crece hasta 44 px con relleno. El relleno lateral es transparente y
     se compensa con margen negativo, así el texto no se mueve ni un
     píxel y la diana también gana ancho. */
  .footer-col li { margin-bottom: 0; }
  .footer-col li a {
    display: inline-block;
    padding: 10px 6px;
    margin-inline: -6px;
  }

  /* --- Redes ----------------------------------------------------------
     Van en fila y envuelven, así que también se les da altura de verdad
     (20 px de texto + 12 arriba y abajo). Entre filas el contenedor ya
     deja 4,8 px, de modo que dos filas quedan a 48,8 y no se pisan. */
  .social a { display: inline-block; padding: 12px 0; }

  /* --- Valores de contacto --------------------------------------------
     Aquí sí sobra sitio: cada ficha mide 63 px de alto, así que un área
     de 44 px centrada en el enlace no llega a la ficha vecina. */
  .contact-line__value a {
    display: inline-block;
    position: relative;
  }
  .contact-line__value a::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* --- Enlaces sueltos de sección -------------------------------------
     ".text-link" ("Conoce Martinico →", "Ver la carta completa →"...) van
     solos al final de un bloque, así que un área centrada de 44 px no
     pisa nada. */
  .text-link { position: relative; }
  .text-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* --- "Ver más grande" (pie del mapa) --------------------------------
     Aquí no se puede usar el pseudo-elemento hacia arriba: se metería 12 px
     dentro del mapa y robaría toques al propio mapa. Se agranda la barra
     entera (la nota y el enlace quedan centrados) y el enlace crece de
     verdad dentro de ella. */
  .map-frame__foot { align-items: center; }
  .map-frame__foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* --- "@martinicobar" en la ficha de la portada ----------------------
     Es la última viñeta de la lista y las viñetas están a 21 px unas de
     otras, así que tampoco vale un área centrada (se comería el toque de
     la viñeta vecina). Se hace la viñeta del enlace tan alta como un
     dedo; las demás no crecen, sólo la fila que la contiene, y el punto
     separador se recentra para seguir a su texto. */
  .hero__facts { align-items: center; }
  .hero__facts a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .hero__facts li + li::before { top: calc(50% - 1.5px); }

  /* --- "Saltar al contenido" (sólo se ve al enfocarlo con el teclado) --- */
  .skip-link { padding: .7rem .9rem; }
}

/* ==========================================================================
   ESCRITORIO CON VENTANAS (aplicaciones)
   ========================================================================== */
.desktop__windows {
  position: absolute;
  inset: 0;
  z-index: 50;
  overflow: hidden;
}

/* Las ventanas del escritorio se dimensionan por JS (no llenan el escritorio) */
.desktop__windows .window {
  right: auto;
  bottom: auto;
  overflow: hidden;
}
.desktop__windows .window.is-active {
  box-shadow: var(--shadow-win), 0 0 0 1px var(--blue);
}

/* Asa de redimensionado */
.win-resize {
  position: absolute;
  z-index: 5;
  background: transparent;
  touch-action: none;
}
.win-resize--nw, .win-resize--se { cursor: nwse-resize; }
.win-resize--sw { cursor: nesw-resize; }
.win-resize--n, .win-resize--s { cursor: ns-resize; }
.win-resize--e, .win-resize--w { cursor: ew-resize; }

.win-resize--nw { top: 0; left: 0; width: 16px; height: 16px; }
.win-resize--n  { top: 0; left: 16px; right: 32px; height: 10px; }
.win-resize--e  { top: 32px; right: 0; bottom: 16px; width: 10px; }
.win-resize--se {
  bottom: 0; right: 0; width: 14px; height: 14px;
}
.win-resize--s  { bottom: 0; left: 16px; right: 16px; height: 10px; }
.win-resize--sw { bottom: 0; left: 0; width: 16px; height: 16px; }
.win-resize--w  { top: 16px; left: 0; bottom: 16px; width: 10px; }

/* Ampliar área de toque en móvil y mostrar asa visible */
@media (pointer: coarse) {
  .win-resize { touch-action: none; }
  .win-resize::after { content: ""; position: absolute; inset: -12px; }
  .window__titlebar { touch-action: none; }
  .win-resize--se {
    width: 24px; height: 24px;
  }
  .win-resize--n, .win-resize--s { height: 22px; }
  .win-resize--e, .win-resize--w { width: 22px; }
  .win-resize--nw, .win-resize--sw { width: 22px; height: 22px; }
  /* Permitir que el área táctil del asa no se recorte */
  .desktop--windows .window { overflow: visible; }
}

/* Flash del título al traer al frente */
@keyframes win-flash { 0%,100% { background-color: var(--cream); } 50% { background-color: var(--blue); color: #fff; } }
.window__titlebar.is-flash { animation: win-flash .32s ease; }
.window__titlebar.is-flash .window__name,
.window__titlebar.is-flash .window__tag { color: #fff; }

/* ==========================================================================
   ESCRITORIO CON VENTANAS: anula el modo "tarjeta que fluye" del móvil
   para que el escritorio siga siendo un contenedor posicionado.
   ========================================================================== */
/* En el escritorio con ventanas no se hace scroll en la página: el cuerpo
   de cada ventana scrollea por su cuenta. Evita el "pull to refresh" y el
   conflicto con el redimensionado en el móvil. */
html.os-shell,
body.os-shell { height: 100%; overflow: hidden; overscroll-behavior: none; }
.desktop--windows {
  position: fixed !important;
  inset: var(--menubar-h) 0 0 0;
  inset: calc(var(--menubar-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  overflow: hidden;
}
.desktop--windows .desktop__watermark { display: block; }
.desktop--windows .desktop__windows {
  position: absolute;
  inset: 0;
}
.desktop--windows .window {
  position: absolute;
  margin: 0;
  box-shadow: var(--shadow-win);
}
.desktop--windows .window__titlebar {
  position: static;
  touch-action: none;
}
.desktop--windows .window__body {
  overflow-y: auto;
  overflow-x: hidden;
}

/* ==========================================================================
   SNAKE (juego secreto)
   ========================================================================== */
.snake-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 8px;
  background: var(--paper);
  gap: 6px;
  touch-action: none;
}
.desktop--windows .window[data-app="snake"] .window__body {
  touch-action: none;
  overscroll-behavior: none;
}
.snake-canvas {
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--cream);
  touch-action: none;
  image-rendering: pixelated;
}
.snake-hud {
  display: flex;
  gap: 1.2rem;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink);
  align-items: center;
}
.snake-hud b { color: var(--blue); font-family: var(--font-display); }
.snake-msg { color: var(--muted); font-size: 11px; font-family: var(--font-display); }
.snake-instr { margin: 0; font-family: var(--font-display); font-size: 11px; color: var(--muted); text-align: center; }


/* ==========================================================================
   22. ACERCA DE Y LEGAL
   ========================================================================== */
.about {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 20px 16px;
  background: var(--paper);
}
.about__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 0 18px;
  text-align: center;
  container-type: inline-size;
}
.about__logo {
  display: block;
  width: 112px;
  height: 112px;
  padding: 0;
  /* El propio archivo ya trae el fondo azul noche y las esquinas redondeadas:
     no lleva placa ni borde exterior. */
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  object-fit: contain;
}
.about__credit {
  max-width: 100%;
  margin: 0;
  /* El ancho de la ventana puede cambiar; la línea larga se ajusta sin partirse. */
  font-size: .92rem;
  font-size: clamp(11px, 4.6cqw, .92rem);
  line-height: 1.5;
  color: var(--ink);
}
.about__credit span {
  display: block;
  white-space: nowrap;
}
.about__legal {
  flex: none;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dotted var(--hairline);
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
}
.about__legal a { color: var(--blue-700); }

.legal {
  padding: 22px 22px 26px;
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.65;
}
.legal__meta {
  margin: 0 0 .9em;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__intro { color: var(--ink); }
.legal h2 {
  margin: 1.4em 0 .55em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ink);
}
.legal__section:first-of-type h2 { margin-top: .7em; }
.legal h3 {
  margin: 1.25em 0 .35em;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.legal p { margin: 0 0 .85em; }
.legal ul { margin: 0 0 .95em; padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal a { color: var(--blue-700); overflow-wrap: anywhere; }
.legal code { font-size: .84em; }
.legal__section + .legal__section {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}
.legal__data {
  display: grid;
  gap: 0;
  margin: 0 0 1em;
}
.legal__data div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: .5em;
  padding: .32em 0;
  border-bottom: 1px dotted var(--hairline);
}
.legal__data dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.legal__data dd { margin: 0; min-width: 0; }

@media (max-width: 480px) {
  .legal { padding: 18px 16px 22px; font-size: 13px; }
  .about { padding: 18px 16px 14px; }
  .about__logo { width: 96px; height: 96px; padding: 0; border-radius: 10px; }
  .about__credit { font-size: .88rem; font-size: clamp(11px, 4.6cqw, .88rem); }
}
