@font-face {
  font-family: 'Manrope';
  src: url('/static/fuentes/manrope.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Temas: "auto" sigue el modo claro u oscuro del móvil */
.tema-oscuro {
  --bg: #0F0F11; --card: #18181B; --border: #2A2A2E; --text: #F4F4F5;
  --muted: #A1A1AA; --arrow: #71717A; --shadow: none; --inverso-bg: #F4F4F5; --inverso-fg: #0F0F11;
}
.tema-claro, .tema-auto {
  --bg: #F5F5F4; --card: #FFFFFF; --border: #A1A1AA; --text: #18181B;
  --muted: #57534E; --arrow: #A8A29E; --shadow: 0 2px 6px rgba(24,24,27,.14); --inverso-bg: #18181B; --inverso-fg: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  .tema-auto {
    --bg: #0F0F11; --card: #18181B; --border: #2A2A2E; --text: #F4F4F5;
    --muted: #A1A1AA; --arrow: #71717A; --shadow: none; --inverso-bg: #F4F4F5; --inverso-fg: #0F0F11;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  justify-content: center;
}
a { color: inherit; text-decoration: none; }

.pagina {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 56px 24px 32px;
  display: flex;
  flex-direction: column;
}
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}

/* Cabecera */
header { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 600; letter-spacing: 1px;
  margin-bottom: 6px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.2px; }
.descripcion { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Botones */
nav { display: flex; flex-direction: column; gap: 12px; }
a.btn {
  min-height: 60px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
  transition: transform .15s ease, border-color .15s ease;
}
a.btn:hover { transform: translateY(-1px); }
a.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn-texto { flex-grow: 1; font-size: 16px; font-weight: 600; line-height: 1.3; }
.flecha { flex-shrink: 0; stroke: var(--arrow); transition: transform .3s ease; }
a.btn:hover .flecha, a.btn:active .flecha { transform: translate(2px, -2px); }

.ico {
  position: relative; overflow: hidden;
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF;
  animation: icoIn .7s cubic-bezier(.2,.8,.2,1) backwards;
}
.ico svg { position: relative; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.ico::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.42) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 6s ease-in-out 1s infinite;
}
a.btn:nth-child(2) .ico { animation-delay: .08s; }
a.btn:nth-child(3) .ico { animation-delay: .16s; }
a.btn:nth-child(4) .ico { animation-delay: .24s; }
a.btn:nth-child(5) .ico { animation-delay: .32s; }
a.btn:nth-child(2) .ico::after { animation-delay: 1.15s; }
a.btn:nth-child(3) .ico::after { animation-delay: 1.3s; }
a.btn:nth-child(4) .ico::after { animation-delay: 1.45s; }
a.btn:nth-child(5) .ico::after { animation-delay: 1.6s; }
a.btn:hover .ico svg, a.btn:active .ico svg { transform: scale(1.12) rotate(-8deg); }

@keyframes icoIn { from { opacity: 0; transform: scale(.5) rotate(-15deg); } }
@keyframes shine { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  .ico { animation: none; }
  .ico::after { display: none; }
  .ico svg, .flecha, a.btn { transition: none; }
}

/* Colores de cada icono */
.ico-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.ico-facebook  { background: #1877F2; }
.ico-tiktok    { background: #000000; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.ico-whatsapp  { background: #1FAF54; }
.ico-web       { background: #4F46E5; }
.ico-youtube   { background: #FF0000; }
.ico-linkedin  { background: #0A66C2; }
.ico-x         { background: var(--inverso-bg); color: var(--inverso-fg); }
.ico-maps      { background: #EA4335; }
.ico-resenas   { background: #D97706; }
.ico-telefono  { background: #0284C7; }
.ico-email     { background: #525252; }
.ico-reservas  { background: #0D9488; }
.ico-tienda    { background: #7C3AED; }
.ico-enlace    { background: #52525B; }

/* Pie */
footer { text-align: center; font-size: 12px; color: var(--muted); padding-top: 32px; display: flex; flex-direction: column; gap: 4px; }
footer a { text-decoration: underline; text-underline-offset: 2px; }

/* Página no encontrada */
.aviso { text-align: center; }
.aviso p { color: var(--muted); line-height: 1.5; }
