/* Páginas link-in-bio de deagrapa */
*, *::before, *::after { box-sizing: border-box; }
/* Tema base: naranja. Las variables viven en .bio para que los temas también funcionen en las miniaturas del editor. */
.bio {
  --bg: linear-gradient(180deg, #FF7A2A 0%, #FF5A00 100%);
  --text: #FFFFFF;
  --sub: rgba(255, 255, 255, .88);
  --btn-bg: #FFFFFF;
  --btn-text: #2A211C;
  --btn-hover: #FFF3EA;
  --ico: #FF6A13;
  --avatar-ring: rgba(255, 255, 255, .65);
  --badge-bg: rgba(255, 255, 255, .18);
  --badge-text: #FFFFFF;
  --btn-radius: 16px;
  --btn-border: 0;
  --btn-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  --btn-blur: none;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-family: var(--font);
}
body.bio { margin: 0; min-height: 100vh; background-attachment: fixed; line-height: 1.5; }
/* Capas animadas del tema: detrás del contenido */
body.bio > :not(script):not(style) { position: relative; z-index: 1; }
.bio::before, .bio::after { content: none; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body.bio > .bio-bgimg { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.bio.bg-custom::before, .bio.bg-custom::after { display: none; }

.bio.theme-blanco { --bg: #FFFFFF; --text: #241B16; --sub: #6E655F; --btn-bg: #FF6A13; --btn-text: #FFFFFF; --btn-hover: #E85A05; --ico: #FFFFFF; --avatar-ring: #FFE7D6; --badge-bg: #FFF3EA; --badge-text: #C24A02; }
.bio.theme-minimal { --bg: #F5F5F5; --text: #1F1F1F; --sub: #5A5A5A; --btn-bg: #FFFFFF; --btn-text: #222222; --btn-hover: #EFEFEF; --ico: #333333; --avatar-ring: #CCCCCC; --badge-bg: rgba(0, 0, 0, .05); --badge-text: #444444; --btn-border: 1px solid #E2E2E2; --btn-shadow: none; --font: Arial, 'Helvetica Neue', system-ui, sans-serif; }
.bio.theme-noche { --bg: #17110E; --text: #FFF6EF; --sub: #C9BDB4; --btn-bg: #2A201B; --btn-text: #FFF6EF; --btn-hover: #362922; --ico: #FF7A2A; --avatar-ring: #FF6A13; --badge-bg: #2A201B; --badge-text: #FFB98C; }
.bio.theme-atardecer { --bg: linear-gradient(160deg, #FF5F6D 0%, #FFC371 100%); --btn-bg: rgba(255, 255, 255, .95); --btn-text: #3A1D1D; --btn-hover: #FFFFFF; --ico: #FF5F6D; }
.bio.theme-menta { --bg: linear-gradient(180deg, #E9FFF5 0%, #C8F4E4 100%); --text: #0D3B30; --sub: #3E6A5F; --btn-bg: #0D3B30; --btn-text: #E9FFF5; --btn-hover: #145244; --ico: #2EC4A0; --avatar-ring: #2EC4A0; --badge-bg: rgba(13, 59, 48, .08); --badge-text: #0D3B30; }
.bio.theme-papel { --bg: #F5EFE6; --text: #2A211C; --sub: #6E655F; --btn-bg: transparent; --btn-text: #2A211C; --btn-hover: #EDE4D8; --ico: #2A211C; --avatar-ring: #2A211C; --badge-bg: transparent; --badge-text: #6E655F; --btn-border: 2px solid #2A211C; --btn-shadow: 4px 4px 0 #2A211C; }
.bio.theme-papel .bio-link:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #2A211C; }

/* ---------- Aurora: luces boreales que se mueven ---------- */
.bio.theme-aurora { --bg: #070B1A; --text: #F1F5FF; --sub: rgba(225, 232, 255, .78); --btn-bg: rgba(255, 255, 255, .08); --btn-hover: rgba(255, 255, 255, .16); --btn-text: #F1F5FF; --ico: #7CF5D4; --avatar-ring: rgba(124, 245, 212, .7); --badge-bg: rgba(255, 255, 255, .1); --badge-text: #F1F5FF; --btn-border: 1px solid rgba(255, 255, 255, .18); --btn-shadow: 0 8px 30px rgba(0, 0, 0, .25); --btn-blur: blur(12px); }
.bio.theme-aurora::before { content: ''; inset: -20%; background:
  radial-gradient(40% 35% at 25% 30%, rgba(45, 212, 191, .55), transparent 70%),
  radial-gradient(35% 40% at 75% 25%, rgba(139, 92, 246, .55), transparent 70%),
  radial-gradient(45% 35% at 55% 75%, rgba(236, 72, 153, .38), transparent 70%);
  filter: blur(30px); animation: bio-aurora 18s ease-in-out infinite alternate; }
@keyframes bio-aurora { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 50% { transform: translate(6%, -4%) rotate(8deg) scale(1.08); } 100% { transform: translate(-5%, 5%) rotate(-6deg) scale(1.02); } }

/* ---------- Océano: olas al pie ---------- */
.bio.theme-oceano { --bg: linear-gradient(180deg, #38BDF8 0%, #0284C7 55%, #075985 100%); --text: #FFFFFF; --sub: rgba(255, 255, 255, .9); --btn-bg: rgba(255, 255, 255, .96); --btn-hover: #FFFFFF; --btn-text: #0C4A6E; --ico: #0284C7; --avatar-ring: rgba(255, 255, 255, .8); --btn-radius: 999px; --btn-shadow: 0 6px 18px rgba(7, 89, 133, .25); }
.bio.theme-oceano::before, .bio.theme-oceano::after { content: ''; top: auto; height: 220px; background-repeat: repeat-x; background-position: 0 bottom; background-size: 800px 220px; }
.bio.theme-oceano::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220'%3E%3Cpath fill='%23ffffff' fill-opacity='.18' d='M0 120 Q100 70 200 120 T400 120 T600 120 T800 120 V220 H0Z'/%3E%3C/svg%3E"); animation: bio-wave 14s linear infinite; }
.bio.theme-oceano::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220'%3E%3Cpath fill='%23ffffff' fill-opacity='.12' d='M0 150 Q100 110 200 150 T400 150 T600 150 T800 150 V220 H0Z'/%3E%3C/svg%3E"); animation: bio-wave 9s linear infinite reverse; }
@keyframes bio-wave { to { background-position: 800px bottom; } }

/* ---------- Neón: botones que brillan ---------- */
.bio.theme-neon { --bg: #07070F; --text: #E6FDFF; --sub: rgba(200, 245, 255, .7); --btn-bg: rgba(0, 240, 255, .04); --btn-hover: rgba(0, 240, 255, .12); --btn-text: #E6FDFF; --ico: #00F0FF; --avatar-ring: #FF2BD6; --badge-bg: rgba(0, 240, 255, .08); --badge-text: #9FF7FF; --btn-radius: 12px; --btn-border: 2px solid #00F0FF; --btn-shadow: 0 0 12px rgba(0, 240, 255, .45), inset 0 0 10px rgba(0, 240, 255, .18); --font: 'Space Grotesk', 'Outfit', system-ui, sans-serif; }
.bio.theme-neon::before { content: ''; background-image: linear-gradient(rgba(0, 240, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, .06) 1px, transparent 1px); background-size: 40px 40px; }
.bio.theme-neon:not(.btn-custom) .bio-link { animation: bio-glow 2.8s ease-in-out infinite; }
.bio.theme-neon:not(.btn-custom) .bio-link:nth-child(even) { --btn-border: 2px solid #FF2BD6; --ico: #FF2BD6; animation-delay: 1.4s; box-shadow: 0 0 12px rgba(255, 43, 214, .45), inset 0 0 10px rgba(255, 43, 214, .18); }
.bio.theme-neon .bio-avatar { box-shadow: 0 0 22px rgba(255, 43, 214, .55); }
.bio.theme-neon h1 { text-shadow: 0 0 14px rgba(0, 240, 255, .6); }
@keyframes bio-glow { 50% { filter: brightness(1.25) drop-shadow(0 0 6px rgba(0, 240, 255, .5)); } }

/* ---------- Galaxia: estrellas que titilan ---------- */
.bio.theme-galaxia { --bg: radial-gradient(ellipse at 50% 0%, #3B1A73 0%, #160A33 55%, #07031A 100%); --text: #F5F0FF; --sub: rgba(230, 220, 255, .78); --btn-bg: rgba(255, 255, 255, .09); --btn-hover: rgba(255, 255, 255, .17); --btn-text: #F5F0FF; --ico: #C4B5FD; --avatar-ring: rgba(196, 181, 253, .8); --badge-bg: rgba(255, 255, 255, .1); --badge-text: #F5F0FF; --btn-border: 1px solid rgba(196, 181, 253, .35); --btn-blur: blur(8px); }
.bio.theme-galaxia::before { content: ''; background-image:
  radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 80px, #fff, transparent),
  radial-gradient(1.4px 1.4px at 150px 20px, #E9D5FF, transparent), radial-gradient(1px 1px at 60px 140px, #fff, transparent),
  radial-gradient(1.2px 1.2px at 170px 160px, #fff, transparent); background-size: 200px 200px; animation: bio-twinkle 4s ease-in-out infinite; }
.bio.theme-galaxia::after { content: ''; background-image: radial-gradient(2px 2px at 40px 60px, #fff, transparent), radial-gradient(1.8px 1.8px at 260px 190px, #DDD6FE, transparent), radial-gradient(2.2px 2.2px at 330px 40px, #fff, transparent); background-size: 380px 300px; animation: bio-twinkle 6s ease-in-out infinite reverse, bio-drift 120s linear infinite; }
@keyframes bio-twinkle { 50% { opacity: .35; } }
@keyframes bio-drift { to { background-position: 380px 300px; } }

/* ---------- Burbujas: suben sobre pastel ---------- */
.bio.theme-burbujas { --bg: linear-gradient(180deg, #FDF2F8 0%, #EDE9FE 50%, #E0F2FE 100%); --text: #3B1D4A; --sub: #6B4A7A; --btn-bg: rgba(255, 255, 255, .9); --btn-hover: #FFFFFF; --btn-text: #5B1F6E; --ico: #DB2777; --avatar-ring: #F9A8D4; --badge-bg: rgba(219, 39, 119, .08); --badge-text: #9D174D; --btn-radius: 999px; --btn-shadow: 0 6px 20px rgba(219, 39, 119, .12); }
.bio.theme-burbujas::before, .bio.theme-burbujas::after { content: ''; background-image:
  radial-gradient(circle at 30px 40px, rgba(255, 255, 255, .0) 14px, rgba(244, 114, 182, .35) 15px, rgba(255, 255, 255, .0) 17px),
  radial-gradient(circle at 150px 120px, rgba(255, 255, 255, .0) 22px, rgba(167, 139, 250, .3) 23px, rgba(255, 255, 255, .0) 25px),
  radial-gradient(circle at 90px 210px, rgba(255, 255, 255, .0) 9px, rgba(56, 189, 248, .35) 10px, rgba(255, 255, 255, .0) 12px);
  background-size: 220px 260px; animation: bio-rise 22s linear infinite; }
.bio.theme-burbujas::after { background-size: 340px 400px; background-position: 120px 60px; opacity: .8; animation-duration: 34s; }
@keyframes bio-rise { to { background-position-y: -520px; } }

/* ---------- Cristal: degradado vivo y botones de vidrio ---------- */
.bio.theme-cristal { --bg: #E73C7E; --text: #FFFFFF; --sub: rgba(255, 255, 255, .9); --btn-bg: rgba(255, 255, 255, .2); --btn-hover: rgba(255, 255, 255, .3); --btn-text: #FFFFFF; --ico: #FFFFFF; --avatar-ring: rgba(255, 255, 255, .7); --badge-bg: rgba(255, 255, 255, .2); --btn-border: 1px solid rgba(255, 255, 255, .35); --btn-shadow: 0 8px 24px rgba(0, 0, 0, .12); --btn-blur: blur(14px); }
.bio.theme-cristal::before { content: ''; background: linear-gradient(-45deg, #EE7752, #E73C7E, #23A6D5, #23D5AB); background-size: 400% 400%; animation: bio-shift 16s ease infinite; }
@keyframes bio-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Bosque: verde profundo, botones crema ---------- */
.bio.theme-bosque { --bg: radial-gradient(ellipse at 50% -10%, #3F7A5C 0%, #24493A 45%, #142A21 100%); --text: #F3EBD8; --sub: rgba(243, 235, 216, .8); --btn-bg: #F3EBD8; --btn-hover: #FFF8E8; --btn-text: #1F3A2E; --ico: #2F5D46; --avatar-ring: #D9C9A3; --badge-bg: rgba(243, 235, 216, .12); --badge-text: #F3EBD8; --btn-radius: 14px; --btn-shadow: 0 6px 0 rgba(0, 0, 0, .25); --font: 'Fraunces', Georgia, serif; }
.bio.theme-bosque::before { content: ''; opacity: .5; background-image: radial-gradient(circle at 10% 20%, rgba(217, 201, 163, .12) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(217, 201, 163, .1) 0 2px, transparent 3px); background-size: 90px 90px, 130px 130px; }

/* ---------- Dorado: negro y oro con destello ---------- */
.bio.theme-dorado { --bg: radial-gradient(ellipse at 50% 0%, #2A2418 0%, #0E0D0B 60%); --text: #F4E9D0; --sub: rgba(232, 213, 163, .78); --btn-bg: transparent; --btn-hover: rgba(201, 165, 92, .14); --btn-text: #E8D5A3; --ico: #C9A55C; --avatar-ring: #C9A55C; --badge-bg: rgba(201, 165, 92, .12); --badge-text: #E8D5A3; --btn-radius: 4px; --btn-border: 1px solid #C9A55C; --btn-shadow: none; --font: 'Playfair Display', Georgia, serif; }
.bio.theme-dorado h1 { letter-spacing: .02em; }
.bio.theme-dorado .bio-link { position: relative; overflow: hidden; letter-spacing: .03em; }
.bio.theme-dorado .bio-link::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(232, 213, 163, .28), transparent); animation: bio-shine 5s ease-in-out infinite; }
.bio.theme-dorado .bio-link:nth-child(2)::after { animation-delay: .4s; } .bio.theme-dorado .bio-link:nth-child(3)::after { animation-delay: .8s; } .bio.theme-dorado .bio-link:nth-child(4)::after { animation-delay: 1.2s; }
@keyframes bio-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* ---------- Retro 80s: sol y cuadrícula ---------- */
.bio.theme-retro { --bg: linear-gradient(180deg, #12002B 0%, #3A0B5C 45%, #8E1A6B 72%, #FF5E7E 100%); --text: #FFE3F1; --sub: rgba(255, 210, 235, .85); --btn-bg: #24093A; --btn-hover: #33104F; --btn-text: #FFE3F1; --ico: #00E5FF; --avatar-ring: #FF2E88; --badge-bg: rgba(255, 46, 136, .18); --badge-text: #FFE3F1; --btn-radius: 8px; --btn-border: 2px solid #FF2E88; --btn-shadow: 4px 4px 0 #00E5FF; --font: 'Space Grotesk', 'Outfit', system-ui, sans-serif; }
.bio.theme-retro::after { content: ''; top: auto; height: 40%; background-image: linear-gradient(rgba(255, 46, 136, .55) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 46, 136, .55) 2px, transparent 2px); background-size: 60px 40px; transform: perspective(300px) rotateX(60deg); transform-origin: bottom; animation: bio-grid 1.6s linear infinite; mask-image: linear-gradient(transparent, #000 35%); -webkit-mask-image: linear-gradient(transparent, #000 35%); }
.bio.theme-retro::before { content: ''; top: auto; left: 50%; bottom: 22%; width: 240px; height: 240px; margin-left: -120px; border-radius: 50%; background: linear-gradient(180deg, #FFD319 0%, #FF901F 45%, #FF2975 100%); opacity: .38;
  mask-image: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px); -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px); }
.bio.theme-retro .bio-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #00E5FF; }
.bio.theme-retro h1 { text-transform: uppercase; letter-spacing: .06em; text-shadow: 3px 3px 0 #FF2E88; }
@keyframes bio-grid { to { background-position: 0 40px; } }

/* ---------- Algodón: pastel que cambia lento ---------- */
.bio.theme-algodon { --bg: #FBCFE8; --text: #4A2C5A; --sub: #73548A; --btn-bg: rgba(255, 255, 255, .82); --btn-hover: #FFFFFF; --btn-text: #4A2C5A; --ico: #A855F7; --avatar-ring: #FFFFFF; --badge-bg: rgba(255, 255, 255, .5); --badge-text: #4A2C5A; --btn-radius: 999px; --btn-shadow: 0 8px 22px rgba(168, 85, 247, .14); --btn-blur: blur(6px); }
.bio.theme-algodon::before { content: ''; background: linear-gradient(120deg, #FBCFE8, #DDD6FE, #FED7AA, #BAE6FD, #FBCFE8); background-size: 300% 300%; animation: bio-shift 24s ease infinite; }

@media (prefers-reduced-motion: reduce) {
  .bio::before, .bio::after, .bio .bio-link, .bio .bio-link::after { animation: none !important; }
}

/* Encabezado (portada) propio */
.bio-cover { height: 170px; margin: -48px -20px 0; background-size: cover; background-position: center; border-radius: 0 0 26px 26px; }
.has-cover .bio-avatar { margin-top: -58px; position: relative; }
@media (min-width: 600px) { .bio-cover { margin: -28px 0 0; border-radius: 24px; height: 190px; } }
@media (max-width: 420px) { .bio-cover { margin-top: -36px; } }

.bio-draft { background: #241B16; color: #FFE7D6; text-align: center; font-size: .85rem; padding: 8px 12px; font-weight: 600; }
.bio-wrap { max-width: 560px; margin: 0 auto; padding: 48px 20px 32px; min-height: 100vh; display: flex; flex-direction: column; }
.bio-head { text-align: center; margin-bottom: 28px; }
.bio-avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 16px; border: 4px solid var(--avatar-ring); overflow: hidden; background: var(--btn-bg); color: var(--ico); display: grid; place-items: center; font-weight: 800; font-size: 2.2rem; }
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-head h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.bio-text { color: var(--sub); margin: 0 auto 6px; max-width: 420px; font-size: 1rem; }
.bio-meta { color: var(--sub); font-size: .88rem; margin: 0; opacity: .9; }
.bio-links { display: flex; flex-direction: column; gap: 12px; }
.bio-link {
  display: flex; align-items: center; gap: 12px; background: var(--btn-bg); color: var(--btn-text);
  padding: 15px 18px; border-radius: var(--btn-radius); text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: transform .12s ease, background .15s, box-shadow .15s; box-shadow: var(--btn-shadow); border: var(--btn-border);
  -webkit-backdrop-filter: var(--btn-blur); backdrop-filter: var(--btn-blur);
}
.bio-link:hover { background: var(--btn-hover); transform: translateY(-1px); }
.bio-link:active { transform: translateY(0); }
.bio-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ico); flex: none; }
.bio.theme-blanco .bio-ico { background: rgba(255, 255, 255, .18); }
.bio-label { flex: 1; text-align: center; margin-right: 46px; }
.bio-empty { text-align: center; color: var(--sub); }
.bio-foot { margin-top: auto; padding-top: 40px; text-align: center; }
.bio-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--badge-bg); color: var(--badge-text); text-decoration: none; font-size: .82rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.bio-badge:hover { text-decoration: underline; }
.bio-badge-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #FF6A13; color: #fff; font-weight: 800; font-size: .8rem; }
@media (max-width: 420px) { .bio-wrap { padding-top: 36px; } .bio-label { margin-right: 0; text-align: left; } }

/* Insignias (logros) bajo el nombre */
.bio-ach { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 12px 0 0; }
.bio-ach li { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-text); }
.bio.theme-papel .bio-ach li { border: 1.5px solid #2A211C; }

/* Pantalla de redirección (puente) */
body.redir { margin: 0; min-height: 100vh; font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #fff;
  background: radial-gradient(circle at 20% 10%, #FF8B45 0%, rgba(255, 139, 69, 0) 45%), linear-gradient(160deg, #FF7A2A 0%, #FF5A00 60%, #E84E00 100%); }
.redir-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px 20px; text-align: center; }
.redir-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.redir-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #fff; color: #FF6A13; font-size: 1.5rem; }
.redir-card { width: 100%; max-width: 440px; background: #fff; color: #241B16; border-radius: 26px; padding: 30px 26px 24px; box-shadow: 0 30px 70px rgba(120, 40, 0, .28); }
.redir-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: -66px auto 12px; border: 4px solid #fff; display: block; background: #FFE7D6; }
.redir-kicker { margin: 0; color: #7A6E66; font-size: .95rem; }
.redir-host { margin: 4px 0 2px; font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 800; color: #E85A05; word-break: break-all; line-height: 1.15; }
.redir-from { margin: 0 0 18px; color: #7A6E66; font-size: .9rem; }
.redir-count { position: relative; width: 120px; height: 120px; margin: 0 auto 18px; }
.redir-count svg { transform: rotate(-90deg); }
.redir-count .ring-bg { fill: none; stroke: #FFE7D6; stroke-width: 8; }
.redir-count .ring { fill: none; stroke: #FF6A13; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 0; animation: redir-ring linear forwards; }
@keyframes redir-ring { to { stroke-dashoffset: 327; } }
.redir-count span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: #241B16; }
.redir-go { display: inline-block; background: #FF6A13; color: #fff; text-decoration: none; font-weight: 700; padding: 13px 30px; border-radius: 999px; }
.redir-go:hover { background: #E85A05; }
.redir-safe { margin: 14px 0 0; font-size: .78rem; color: #9A8E86; }
.redir-cta { color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; background: rgba(255, 255, 255, .16); padding: 10px 18px; border-radius: 999px; }
.redir-cta:hover { background: rgba(255, 255, 255, .26); }
body.redir .bio-draft { position: fixed; top: 0; left: 0; right: 0; z-index: 5; }
.redir-go.is-wait { background: #E9E2DC; color: #8A7F78; cursor: not-allowed; pointer-events: none; }
.redir-go.is-wait:hover { background: #E9E2DC; }
.qr-card .redir-avatar { margin-top: -66px; }
.qr-list { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; display: grid; gap: 8px; }
.qr-list a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #FFF4EC; color: #241B16; text-decoration: none; font-weight: 600; word-break: break-word; }
.qr-list svg { color: #FF6A13; flex: none; }
.qr-text { text-align: left; font-size: 1.05rem; margin-top: 12px; white-space: normal; }

/* Bloques multimedia dentro de la bio */
.bio-title { font-size: 1.05rem; font-weight: 700; text-align: center; margin: 14px 0 0; color: var(--text); letter-spacing: .01em; }
.bio-textblock { color: var(--sub); text-align: center; font-size: .98rem; padding: 0 6px; }
.bio-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.bio-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Aviso de QR detenido */
.qr-stop { font-size: 2.4rem; line-height: 1; margin: 0 0 10px; }

/* Evento */
.bio-event { display: flex; gap: 14px; background: var(--btn-bg); color: var(--btn-text); border-radius: min(var(--btn-radius), 18px); padding: 14px; box-shadow: var(--btn-shadow); border: var(--btn-border); -webkit-backdrop-filter: var(--btn-blur); backdrop-filter: var(--btn-blur); text-align: left; }
.bio-event-date { flex: 0 0 58px; height: 66px; border-radius: 12px; background: var(--ico); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; text-transform: uppercase; font-size: .7rem; font-weight: 700; }
.bio.theme-blanco .bio-event-date { color: var(--btn-bg); background: #fff; }
.bio-event-date strong { font-size: 1.6rem; }
.bio-event-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bio-event-title { font-size: 1.05rem; }
.bio-event-when { font-size: .88rem; opacity: .85; }
.bio-event-place { font-size: .88rem; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bio-event-desc { margin: 4px 0 0; font-size: .9rem; opacity: .9; }
.bio-event-count { font-size: .82rem; font-weight: 700; color: var(--ico); margin-top: 2px; }
.bio.theme-blanco .bio-event-count { color: #fff; }
.bio-event-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bio-event-btn { font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1.5px solid currentColor; color: inherit; text-decoration: none; opacity: .9; }
.bio-event-btn.is-main { background: var(--ico); border-color: var(--ico); color: #fff; opacity: 1; }
.bio-event.is-past { opacity: .6; }
.bio-event-tag { font-size: .8rem; font-weight: 600; margin-top: 4px; }
.bio-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bio-report { font-size: .72rem; color: inherit; opacity: .45; text-decoration: none; }
.bio-report:hover { opacity: .8; text-decoration: underline; }
.redir-report { display: block; margin-top: 14px; font-size: .75rem; color: rgba(255, 255, 255, .6); text-decoration: none; }
.redir-report:hover { color: #fff; text-decoration: underline; }

/* Acomodo: tamaño de la foto, nombre arriba, contenido centrado y redes como íconos */
.bio.av-grande .bio-avatar { width: 156px; height: 156px; font-size: 3rem; }
.bio.av-enorme .bio-avatar { width: 200px; height: 200px; font-size: 3.8rem; border-width: 5px; }
.bio.no-ring .bio-avatar { border: 0; }
.bio.head-nombre .bio-head { display: flex; flex-direction: column; align-items: center; }
.bio.head-nombre .bio-head h1 { order: -1; font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.1; margin: 0 0 22px; }
.bio.head-nombre .bio-avatar { margin-bottom: 18px; }
.bio.is-centered .bio-head { margin-top: auto; }
.bio.is-centered .bio-wrap { padding-top: 32px; }
.bio-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 28px; }
.bio-links + .bio-socials { margin: 28px 0 0; }
.bio-social { --s: 52px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--ico); border: var(--btn-border); box-shadow: var(--btn-shadow); -webkit-backdrop-filter: var(--btn-blur); backdrop-filter: var(--btn-blur); transition: transform .12s ease, background .15s, color .15s; text-decoration: none; }
.bio-social svg { width: 46%; height: 46%; }
.bio-social:hover { background: var(--btn-hover); transform: translateY(-2px); }
.bio.ico-chico .bio-social { --s: 42px; }
.bio.ico-grande .bio-social { --s: 64px; }
.bio.theme-minimal .bio-social { background: transparent; border: 0; box-shadow: none; color: #333333; }
.bio.theme-minimal .bio-social svg { width: 62%; height: 62%; }
.bio.theme-minimal .bio-social:hover { background: transparent; color: #0077FF; }
.bio.theme-minimal.ico-grande .bio-socials { gap: 22px; }
.bio-head + .bio-socials { margin-top: 12px; }
