@font-face {
  font-family: 'Gloock';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fuentes/gloock/latin-ext-normal-8f1d01.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Gloock';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fuentes/gloock/latin-normal-a80c81.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fuentes/geist/latin-ext-normal-e1f671.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fuentes/geist/latin-normal-6cfb3d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Común a todas las demos: base, accesibilidad, barra de demo y vista del mensaje. Cada demo pone el resto. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: #fff; color: #000; }
.saltar:focus { top: 1rem; }

.demo-barra {
  margin: 0; max-width: none !important; padding: .45rem 1rem; text-align: center;
  font: 500 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #23252b; color: #f2f3f5;
}

#vista-mensaje {
  max-width: min(32rem, calc(100vw - 2rem)); padding: 1.5rem; border: 0; border-radius: 12px;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; color: #1b1c20;
  box-shadow: 0 20px 60px rgb(0 0 0 / .35);
}
#vista-mensaje::backdrop { background: rgb(20 20 25 / .55); }
#vista-mensaje h2 { font-size: 1.2rem; margin-bottom: .5rem; }
#vista-mensaje p { color: #4a4c55; font-size: .95rem; }
#vista-mensaje pre {
  margin: 1rem 0; padding: 1rem; white-space: pre-wrap; font: inherit; font-size: .95rem;
  background: #dcf8c6; border-radius: 10px 10px 10px 2px;
}
#vista-mensaje button { padding: .6rem 1.2rem; border: 0; border-radius: 8px; background: #1b1c20; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Los enlaces del menú no se parten en dos líneas (en el móvil el menú se desplaza de lado) */
.cabecera nav a { white-space: nowrap; }

/* Torres de la Rosa: la portada de la marca. Sin contacto a propósito: «nosotros vamos a ti».
   La firma es la mirilla de una puerta: a través de ella se ven, desenfocadas, webs que ya existen.
   Rosa y vino, por «de la Rosa»; Gloock, de alto contraste, para las frases; Geist para leer.
   Un solo movimiento en toda la página: lo que se ve por la mirilla se desliza despacio. */
:root {
  --vino: #3b0b1d;
  --rosa: #f2c9cf;
  --rosa-claro: #fbeef0;
  --latón: #b08d57;
  --serif: "Gloock", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
  --margen: clamp(1.25rem, 5vw, 4rem);
  --mirilla: min(78vw, 30rem);
}

body.inicio { background: var(--rosa); color: var(--vino); font: 400 1.125rem/1.65 var(--sans); }
.cabecera { padding: 1.6rem var(--margen); }
.marca { font: 400 1.35rem/1 var(--serif); }

.portada { max-width: 82rem; margin-inline: auto; padding: clamp(2.5rem, 9vw, 7rem) var(--margen) clamp(2rem, 5vw, 4rem); }
.portada h1 { font: 400 clamp(3.1rem, 10.5vw, 9rem)/.95 var(--serif); letter-spacing: -.025em; max-width: 11ch; }
.entradilla { margin-top: 1.8rem; max-width: 34ch; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; }

/* La mirilla */
.mirilla-zona { display: grid; justify-items: center; gap: 2.6rem; padding: clamp(2rem, 6vw, 4rem) var(--margen) clamp(4rem, 9vw, 6rem); text-align: center; }
.mirilla {
  position: relative; width: var(--mirilla); aspect-ratio: 1; border-radius: 50%; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 clamp(10px, 2.2vw, 18px) var(--vino), 0 0 0 calc(clamp(10px, 2.2vw, 18px) + 3px) var(--latón),
              0 40px 90px rgb(59 11 29 / .4);
}
.mirilla-fondo {
  position: absolute; inset: 0 auto 0 0; height: 100%; width: auto; max-width: none;
  animation: espiar 46s ease-in-out infinite alternate;
}
.mirilla::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, transparent 38%, rgb(30 4 14 / .45) 68%, rgb(30 4 14 / .92) 100%);
}
@keyframes espiar { to { transform: translateX(calc(-100% + var(--mirilla))); } }
.mirilla-texto { font: 400 clamp(1.7rem, 3.8vw, 2.8rem)/1.15 var(--serif); }

/* El relato */
.relato { background: var(--vino); color: var(--rosa-claro); padding: clamp(4rem, 10vw, 8rem) var(--margen); }
.relato-dentro { max-width: 38rem; margin-inline: auto; display: grid; gap: 1.4rem; font-size: clamp(1.15rem, 1.8vw, 1.32rem); line-height: 1.6; }

.final { padding: clamp(5rem, 13vw, 10rem) var(--margen); text-align: center; }
.final-frase { font: 400 clamp(2.3rem, 6.4vw, 5.4rem)/1.02 var(--serif); letter-spacing: -.015em; max-width: 15ch; margin-inline: auto; }

.pie { padding: 1.8rem var(--margen) 2.4rem; text-align: center; font-size: .95rem; }
