/* Estilos de la página pública de una marca.
   Los colores, el radio y la tipografía llegan como variables CSS desde el tema de la marca
   (src/dominio/tema.ts). Pensada primero para el celular. */

@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap;
  src: url(/fuentes/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap;
  src: url(/fuentes/manrope-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap;
  src: url(/fuentes/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap;
  src: url(/fuentes/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap;
  src: url(/fuentes/space-grotesk-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap;
  src: url(/fuentes/space-grotesk-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Serif Display'; font-weight: 400; font-display: swap;
  src: url(/fuentes/dm-serif-display-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Serif Display'; font-weight: 400; font-display: swap;
  src: url(/fuentes/dm-serif-display-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fondo: #ffffff;
  --texto: #111827;
  --boton: #111827;
  --texto-boton: #ffffff;
  --radio: 12px;
  --fuente: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.5;
}

.pagina {
  /* Una sola columna, también en escritorio: es una página para el pulgar. */
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.cabecera { text-align: center; }

.logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
}

.logo-inicial {
  display: grid;
  place-items: center;
  background: var(--boton);
  color: var(--texto-boton);
  font-size: 40px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.descripcion {
  margin: 8px auto 0;
  max-width: 36ch;
  opacity: 0.85;
  overflow-wrap: anywhere;
}

.redes, .enlaces { list-style: none; margin: 0; padding: 0; }

.redes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.redes a {
  /* Área de toque de 44 px aunque el icono sea más pequeño. */
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--texto);
  border-radius: 50%;
}

.redes .icono { width: 26px; height: 26px; }

.enlaces {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.boton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 20px;
  border: 2px solid var(--boton);
  border-radius: var(--radio);
  background: var(--boton);
  color: var(--texto-boton);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.boton .icono { width: 22px; height: 22px; flex: none; }

.relleno-borde .boton {
  background: transparent;
  color: var(--boton);
}

/* El destacado invierte el estilo del resto para que salte a la vista. */
.boton.destacado {
  font-weight: 800;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.18);
  transform: scale(1.02);
}

.relleno-borde .boton.destacado {
  background: var(--boton);
  color: var(--texto-boton);
}

@media (hover: hover) {
  .boton:hover { opacity: 0.88; transform: translateY(-1px); }
  .redes a:hover { opacity: 0.7; }
}

.boton:active { transform: scale(0.98); }

a:focus-visible {
  outline: 3px solid var(--texto);
  outline-offset: 3px;
}

.pie {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .boton { transition: none; }
}
