/* Página pública de enlaces. Los colores llegan del tema de cada página como variables en :root. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--fondo-solido);
  color: var(--texto);
  font-family: var(--letra);
  line-height: 1.5;
}
/* Fondo fijo en una capa propia: no se corta en páginas largas y funciona en iPhone (sin background-attachment) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--fondo); }
.pagina {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: 56px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
}
.ico { width: 22px; height: 22px; stroke-width: 1.75; flex: none; }

.compartir {
  position: absolute; top: 14px; right: 16px;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, var(--texto) 16%, transparent);
  color: var(--texto);
  transition: background .2s ease;
}
.compartir:hover { background: color-mix(in srgb, var(--texto) 26%, transparent); }
.compartir:focus-visible, .boton:focus-visible, .redes a:focus-visible { outline: 3px solid var(--texto); outline-offset: 3px; }

.perfil { text-align: center; display: flex; flex-direction: column; align-items: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.perfil h1 { font-size: 1.25rem; font-weight: 700; margin: 16px 0 4px; letter-spacing: .01em; }
.bio { margin: 0; font-size: 1rem; opacity: .92; max-width: 42ch; }

.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 8px; }
.redes a {
  color: var(--redes); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  transition: transform .15s ease, background .2s ease;
}
.redes a:hover { transform: scale(1.08); background: color-mix(in srgb, var(--redes) 14%, transparent); }
.redes .ico { width: 28px; height: 28px; }

.enlaces { list-style: none; margin: 24px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.seccion h2 { font-size: 1rem; font-weight: 700; text-align: center; margin: 12px 0 0; }

.boton {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 10px 64px;
  border-radius: var(--radio);
  text-decoration: none; text-align: center;
  font-weight: 600; font-size: 1rem;
  color: var(--btn-texto);
  background: var(--btn);
  border: 2px solid var(--btn);
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.boton:hover { transform: scale(1.02); }
.boton:active { transform: scale(.98); }
.boton .texto { overflow-wrap: anywhere; }
.boton .mini {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; object-fit: cover;
  border-radius: min(var(--radio), 10px);
  display: grid; place-items: center;
}
.boton .mini.icono .ico { width: 26px; height: 26px; }

/* Estilos de botón */
.btn-contorno .boton { background: transparent; color: var(--btn-texto); border-color: var(--btn); }
.btn-contorno .boton:hover { background: color-mix(in srgb, var(--btn) 16%, transparent); }
.btn-sombra .boton { box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--btn-sombra) 70%, transparent); }
.btn-sombra .boton:hover { box-shadow: 0 8px 18px -4px color-mix(in srgb, var(--btn-sombra) 70%, transparent); }
.btn-sombra_dura .boton { border-color: var(--btn-sombra); box-shadow: 5px 5px 0 var(--btn-sombra); }
.btn-sombra_dura .boton:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--btn-sombra); }
.btn-sombra_dura .boton:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--btn-sombra); }
.btn-vidrio .boton {
  background: color-mix(in srgb, var(--btn) 16%, transparent);
  border-color: color-mix(in srgb, var(--btn) 30%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.boton.destacado { outline: 3px solid color-mix(in srgb, var(--btn) 55%, transparent); outline-offset: 3px; }

/* Animaciones para llamar la atención sobre un enlace */
@keyframes pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes sacudir { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-2deg); } 92% { transform: rotate(2deg); } 96% { transform: rotate(-1deg); } }
@keyframes brillo { 0% { background-position: -160% 0; } 60%, 100% { background-position: 260% 0; } }
.anim-pulso { animation: pulso 2.2s ease-in-out infinite; }
.anim-sacudir { animation: sacudir 3.2s ease-in-out infinite; }
.anim-brillo {
  background-image: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  background-size: 60% 100%; background-repeat: no-repeat;
  animation: brillo 3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .anim-pulso, .anim-sacudir, .anim-brillo { animation: none; }
  .boton, .redes a { transition: none; }
}

.pie { margin-top: auto; padding-top: 40px; font-size: .8125rem; opacity: .8; }
.pie a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--texto) 10%, transparent); }
.pie a:hover { background: color-mix(in srgb, var(--texto) 18%, transparent); }
.pie .ico { width: 16px; height: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: #111; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .875rem;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }
.pie-logo { width: 18px; height: 18px; border-radius: 4px; }
