:root {
  --navy: #0F2A44;
  --navy-2: #163a5c;
  --naranjo: #E8761B;
  --claro: #F59E42;
  --texto: #ffffff;
  --suave: #b9c8d8;
  --tarjeta: rgba(255, 255, 255, .06);
  --borde: rgba(255, 255, 255, .14);
}

* { box-sizing: border-box; margin: 0; }

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--navy);
  background-image:
    radial-gradient(120% 60% at 50% -10%, var(--navy-2) 0%, transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  color: var(--texto);
  font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.perfil { text-align: center; margin-bottom: 32px; }

.perfil__icono {
  width: 88px;
  height: 88px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--borde);
  animation: girar 1.1s cubic-bezier(.2,.8,.2,1) both;
}

.perfil h1 {
  margin-top: 18px;
  font: 800 30px/1.1 Archivo, Inter, sans-serif;
  letter-spacing: -.01em;
}

.perfil p { margin-top: 8px; color: var(--suave); font-size: 15px; }

.enlaces { display: grid; gap: 12px; }

.enlace {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 72px;
  border-radius: 16px;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  color: var(--texto);
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.enlace:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); }
.enlace:active { transform: scale(.985); }
.enlace:focus-visible { outline: 3px solid var(--claro); outline-offset: 3px; }

.enlace--principal { background: var(--naranjo); border-color: var(--naranjo); }
.enlace--principal:hover { background: #d96a12; border-color: #d96a12; }
.enlace--principal small { color: rgba(255,255,255,.88); }
.enlace--principal .enlace__icono { background: rgba(255,255,255,.18); color: #fff; }

.enlace__icono {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(245,158,66,.14);
  color: var(--claro);
}
.enlace__icono--naranjo { background: rgba(245,158,66,.14); color: var(--claro); }
.enlace__icono--verde { background: rgba(52,211,153,.14); color: #6ee7b7; }
.enlace__icono--whatsapp { background: rgba(37,211,102,.14); color: #4ade80; }
.enlace__icono--azul { background: rgba(96,165,250,.16); color: #93c5fd; }
.enlace__icono--rosado { background: rgba(244,114,182,.15); color: #f9a8d4; }
.enlace__icono--gris { background: rgba(255,255,255,.1); color: #e2e8f0; }

.vacio { text-align: center; color: var(--suave); }

.enlace svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.enlace__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.enlace__texto strong { font: 600 17px/1.25 Archivo, Inter, sans-serif; }
.enlace__texto small { margin-top: 2px; color: var(--suave); font-size: 13.5px; line-height: 1.35; }

.enlace__flecha { flex: none; opacity: .7; }
.enlace__flecha svg { width: 20px; height: 20px; }

.pie { margin-top: auto; padding-top: 40px; text-align: center; font-size: 13px; }
.pie a { color: var(--suave); text-decoration: none; }
.pie a:hover { color: var(--texto); }

@keyframes girar {
  from { transform: rotate(-90deg) scale(.8); opacity: 0; }
  to { transform: none; opacity: 1; }
}

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