:root {
  --yellow: #f4d42a;
  --yellow-soft: #ffe96a;
  --black: #08090a;
  --panel: rgba(18, 19, 20, 0.86);
  --line: rgba(255, 255, 255, 0.11);
  --muted: #9c9c9e;
  --text: #f7f7f2;
  --shell: min(1180px, calc(100% - 42px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.portal-shell { width: var(--shell); margin-inline: auto; }

.portal-ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 78% 14%, rgba(244, 212, 42, 0.09), transparent 28%), #08090a;
}
.portal-ambient img { width: 100%; height: 100%; object-fit: cover; opacity: 0.07; filter: grayscale(1) contrast(1.35); }
.portal-ambient div { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,10,.38), #08090a 72%); }

.portal-header {
  width: var(--shell);
  height: 86px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.portal-brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.portal-brand > img { width: 39px; height: 39px; object-fit: contain; }
.portal-brand > span { display: flex; flex-direction: column; line-height: 1.05; }
.portal-brand strong { letter-spacing: .17em; font-size: 1.05rem; }
.portal-brand small { margin-top: 5px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.portal-navigation { display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14,15,16,.72); backdrop-filter: blur(16px); }
.portal-navigation a { padding: 9px 17px; color: #aaa; font-size: .85rem; border-radius: 999px; transition: .2s ease; }
.portal-navigation a:hover, .portal-navigation a.active { color: #111; background: var(--yellow); }
.portal-account { justify-self: end; padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px; color: #ddd; background: rgba(255,255,255,.035); font-size: .82rem; cursor: pointer; }
.portal-account span { margin-left: 9px; color: var(--yellow); }
.portal-account:hover { border-color: rgba(244,212,42,.45); }
.portal-account.active-account { color: #111; border-color: var(--yellow); background: var(--yellow); }

.portal-hero { min-height: 650px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 72px; padding-block: 64px 80px; }
.eyebrow { color: var(--yellow); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; }
.eyebrow i { width: 7px; height: 7px; margin-right: 8px; display: inline-block; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 18px var(--yellow); }
.portal-hero h1 { margin: 20px 0 24px; max-width: 620px; font-size: clamp(3.5rem, 7vw, 6.8rem); line-height: .87; letter-spacing: -.065em; }
.portal-hero h1 em { color: var(--yellow); font-style: normal; }
.portal-hero-copy > p { max-width: 560px; margin: 0; color: #a4a4a5; font-size: 1.08rem; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.portal-button { min-height: 48px; padding: 13px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; border: 1px solid var(--line); border-radius: 9px; font-size: .86rem; font-weight: 750; transition: transform .2s, border-color .2s, background .2s; }
.portal-button:hover { transform: translateY(-2px); }
.portal-button.primary { color: #101010; border-color: var(--yellow); background: var(--yellow); box-shadow: 0 12px 40px rgba(244,212,42,.12); }
.portal-button.primary:hover { background: var(--yellow-soft); }
.portal-button.secondary { color: #ddd; background: rgba(255,255,255,.04); }
.portal-button.secondary:hover { border-color: rgba(255,255,255,.28); }

.portal-hero-visual { position: relative; min-height: 480px; }
.hero-frame { position: absolute; inset: 0 0 0 9%; overflow: hidden; border: 1px solid var(--line); border-radius: 28px 4px 28px 4px; background: #151515; box-shadow: 0 38px 100px rgba(0,0,0,.48); }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.9)); }
.hero-frame > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.08); }
.hero-frame-caption { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hero-frame-caption span { color: var(--yellow); font-size: 3rem; font-weight: 950; letter-spacing: -.08em; }
.hero-frame-caption strong { max-width: 170px; text-align: right; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-badge { position: absolute; top: 38px; left: 0; width: 132px; height: 132px; display: grid; place-items: center; border: 1px solid rgba(244,212,42,.35); border-radius: 50%; background: rgba(8,9,10,.92); box-shadow: 0 20px 45px rgba(0,0,0,.45); }
.hero-badge img { position: absolute; width: 105px; opacity: .14; }
.hero-badge span { position: relative; color: var(--yellow); text-align: center; font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }

.portal-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.portal-stats article { min-height: 142px; padding: 28px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.portal-stats article:last-child { border-right: 0; }
.portal-stats strong { color: var(--yellow); font-size: clamp(1.8rem, 3vw, 2.9rem); line-height: 1; letter-spacing: -.05em; }
.portal-stats span { margin-top: 10px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }

.portal-section { padding-block: 110px 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.045em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: .92rem; }

.voice-podium { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.voice-member { min-height: 260px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(28,29,30,.92), rgba(13,14,15,.92)); text-align: center; }
.voice-member::before { content: ""; position: absolute; top: -80px; width: 150px; height: 150px; border-radius: 50%; background: rgba(244,212,42,.08); filter: blur(32px); }
.voice-member.position-1 { transform: translateY(-12px); border-color: rgba(244,212,42,.46); }
.member-crown { min-height: 24px; color: var(--yellow); font-size: 1.35rem; font-weight: 900; }
.member-initials { width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid rgba(244,212,42,.36); border-radius: 50%; color: var(--yellow); background: #101112; font-size: 1.2rem; font-weight: 900; }
.voice-member > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.voice-member > div strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .94rem; }
.voice-member > div span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.voice-member time { color: var(--yellow-soft); font-size: .72rem; font-weight: 750; }
.portal-loading { grid-column: 1 / -1; padding: 50px; border: 1px solid var(--line); color: var(--muted); text-align: center; }

.media-wall { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: repeat(2, 250px); gap: 12px; }
.media-wall figure { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); background: #161718; transition: border-color .25s, transform .25s; }
.media-wall figure:hover { border-color: rgba(244,212,42,.42); transform: translateY(-2px); }
.media-wall .media-feature { grid-row: 1 / 3; }
.album-open-button { width: 100%; height: 100%; padding: 0; display: block; color: inherit; border: 0; background: transparent; cursor: zoom-in; }
.media-wall img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s ease, filter .7s ease; filter: saturate(.72); }
.media-wall figure:hover img { transform: scale(1.035); filter: saturate(1); }
.media-wall figcaption { position: absolute; inset: auto 0 0; padding: 48px 22px 19px; display: flex; flex-direction: column; background: linear-gradient(transparent, rgba(0,0,0,.88)); pointer-events: none; }
.media-wall figcaption small { color: var(--yellow); font-size: .62rem; font-weight: 800; letter-spacing: .17em; }
.album-expand { position: absolute; z-index: 2; top: 16px; right: 16px; padding: 8px 11px; display: flex; align-items: center; gap: 8px; color: #ddd; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(8,9,10,.64); font-size: .62rem; font-weight: 750; opacity: 0; backdrop-filter: blur(12px); transform: translateY(-5px); transition: opacity .2s, transform .2s; }
.media-wall figure:hover .album-expand, .album-open-button:focus-visible .album-expand { opacity: 1; transform: translateY(0); }
.album-expand b { color: var(--yellow); }
.album-lightbox[hidden] { display: none; }
.album-lightbox { position: fixed; z-index: 100; inset: 0; padding: 70px 88px 48px; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 22px; background: rgba(3,4,5,.94); backdrop-filter: blur(18px); }
.album-lightbox > figure { min-width: 0; max-width: 1450px; height: min(78vh, 900px); margin: auto; position: relative; display: flex; align-items: center; justify-content: center; }
.album-lightbox > figure img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 35px 100px rgba(0,0,0,.6); }
.album-lightbox figcaption { position: absolute; left: 18px; bottom: 18px; padding: 11px 14px; display: flex; flex-direction: column; color: var(--text); border-left: 2px solid var(--yellow); background: rgba(5,6,7,.76); backdrop-filter: blur(10px); }
.album-lightbox figcaption span { color: var(--yellow); font-size: .56rem; font-weight: 850; letter-spacing: .16em; }
.album-lightbox figcaption strong { margin-top: 3px; font-size: .78rem; }
.album-close, .album-arrow { color: #ddd; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(15,16,17,.82); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.album-close:hover, .album-arrow:hover { color: #111; border-color: var(--yellow); background: var(--yellow); }
.album-close { width: 44px; height: 44px; position: absolute; top: 22px; right: 24px; font-size: 1.45rem; }
.album-arrow { width: 54px; height: 54px; font-size: 1.15rem; }
.lightbox-open { overflow: hidden; }

.hierarchy-section { padding-bottom: 110px; }
.hierarchy-list { border-top: 1px solid var(--line); }
.hierarchy-item { min-height: 78px; display: grid; grid-template-columns: 70px 1fr 140px; align-items: center; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.hierarchy-item:hover { padding-inline: 12px; background: rgba(255,255,255,.025); }
.hierarchy-level { color: var(--yellow); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.hierarchy-item > div { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hierarchy-item > div strong { font-size: 1rem; }
.hierarchy-item > div span { color: var(--muted); font-size: .75rem; }
.hierarchy-item > i { justify-self: end; width: min(110px, 100%); height: 2px; background: linear-gradient(90deg, rgba(244,212,42,.1), var(--yellow)); opacity: .6; animation: hierarchy-in .5s both; animation-delay: var(--delay); }
@keyframes hierarchy-in { from { transform: scaleX(0); transform-origin: right; } }

.portal-join { min-height: 250px; padding: 42px; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 38px; border: 1px solid rgba(244,212,42,.25); background: linear-gradient(110deg, rgba(244,212,42,.08), rgba(255,255,255,.025)); }
.portal-join > img { width: 130px; }
.portal-join h2 { margin: 7px 0; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.portal-join p { margin: 0; color: var(--muted); }
.portal-footer { min-height: 140px; margin-top: 100px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #777; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.portal-footer img { width: 76px; opacity: .65; }

/* Perfil */
.profile-shell { min-height: calc(100vh - 226px); padding-block: 70px; }
.profile-state { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.profile-state > img { width: 130px; margin-bottom: 25px; opacity: .65; }
.profile-state h1 { margin: 10px 0; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.055em; }
.profile-state p { max-width: 520px; margin: 0 0 28px; color: var(--muted); }
.profile-loader { width: 48px; height: 48px; margin-bottom: 24px; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--yellow); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.profile-cover { min-height: 285px; padding: 44px; display: flex; justify-content: space-between; align-items: end; gap: 30px; position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(125deg, rgba(244,212,42,.1), rgba(18,19,20,.88) 48%, rgba(30,30,28,.65)); }
.profile-cover::after { content: "UPS"; position: absolute; right: 35px; top: -48px; color: rgba(255,255,255,.025); font-size: 15rem; font-weight: 950; letter-spacing: -.1em; }
.profile-identity { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; }
.profile-avatar { width: 118px; height: 118px; display: grid; place-items: center; overflow: hidden; border: 3px solid var(--yellow); border-radius: 50%; background: #141516; box-shadow: 0 16px 50px rgba(0,0,0,.4); color: var(--yellow); font-size: 2.2rem; font-weight: 900; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-status { color: var(--yellow); font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.profile-identity h1 { margin: 6px 0 0; font-size: clamp(2rem, 5vw, 4.3rem); line-height: .95; letter-spacing: -.06em; }
.profile-identity p { margin: 8px 0 0; color: var(--muted); }
.rank-emblem { position: relative; z-index: 1; min-width: 220px; padding: 19px; border-left: 2px solid var(--yellow); display: flex; flex-direction: column; }
.rank-emblem span, .rank-emblem small { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; }
.rank-emblem strong { margin: 3px 0; font-size: 1.35rem; }
.profile-session-actions { position: absolute; z-index: 3; top: 22px; right: 22px; display: flex; gap: 7px; }
.profile-session-actions button { padding: 9px 12px; color: #bbb; border: 1px solid var(--line); border-radius: 8px; background: rgba(8,9,10,.66); font-size: .68rem; cursor: pointer; backdrop-filter: blur(12px); }
.profile-session-actions button:hover { color: #111; border-color: var(--yellow); background: var(--yellow); }
.profile-dashboard { margin-top: 12px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 12px; }
.voice-card, .profile-panel { border: 1px solid var(--line); background: var(--panel); }
.voice-card { min-height: 335px; padding: 36px; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.voice-crown { color: var(--yellow); font-size: 2rem; }
.voice-card > span { margin-top: 15px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; }
.voice-card > strong { margin-top: 4px; color: var(--yellow); font-size: clamp(4rem, 9vw, 7rem); line-height: .9; letter-spacing: -.08em; }
.voice-card p { color: #bbb; }
.voice-progress { width: 100%; height: 3px; margin-top: 12px; overflow: hidden; background: rgba(255,255,255,.08); }
.voice-progress i { display: block; width: 0; height: 100%; background: var(--yellow); transition: width .8s ease; }
.profile-panel { padding: 32px; }
.panel-heading h2 { margin: 5px 0 24px; font-size: 1.55rem; letter-spacing: -.035em; }
.profile-details { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.profile-details > div { min-height: 88px; padding: 17px; display: flex; flex-direction: column; justify-content: center; background: #111213; }
.profile-details dt { color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.profile-details dd { margin: 6px 0 0; font-size: .88rem; font-weight: 700; }
.profile-timeline { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.profile-timeline li { position: relative; padding-top: 23px; border-top: 1px solid var(--line); }
.profile-timeline li i { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 14px rgba(244,212,42,.55); }
.profile-timeline li div { display: flex; flex-direction: column; gap: 5px; }
.profile-timeline li span { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; }
.profile-timeline li strong { font-size: .82rem; text-transform: capitalize; }

/* Directorio */
.directory-shell { min-height: calc(100vh - 226px); padding-block: 72px 100px; }
.directory-hero { min-height: 280px; padding-bottom: 55px; display: flex; justify-content: space-between; align-items: end; gap: 45px; border-bottom: 1px solid var(--line); }
.directory-hero h1 { margin: 14px 0 18px; font-size: clamp(3.4rem, 8vw, 7rem); line-height: .88; letter-spacing: -.07em; }
.directory-hero h1 em { color: var(--yellow); font-style: normal; }
.directory-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1rem; }
.directory-total { min-width: 170px; padding: 20px 0 4px 26px; display: flex; flex-direction: column; border-left: 2px solid var(--yellow); }
.directory-total span, .directory-total small { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; }
.directory-total strong { color: var(--yellow); font-size: 3.8rem; line-height: 1; letter-spacing: -.06em; }
.directory-controls { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.directory-search { width: min(340px, 100%); display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.directory-search span { color: var(--yellow); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.directory-search input { min-width: 0; width: 100%; height: 44px; color: var(--text); border: 0; outline: 0; background: transparent; }
.directory-search input::placeholder { color: #646466; }
.band-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.band-tabs button { padding: 9px 12px; color: #aaa; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); font-size: .68rem; cursor: pointer; }
.band-tabs button:hover, .band-tabs button.active { color: #111; border-color: var(--yellow); background: var(--yellow); }
.directory-note { margin-top: 20px; padding: 14px 17px; color: #c8b95f; border: 1px solid rgba(244,212,42,.2); background: rgba(244,212,42,.05); font-size: .76rem; }
.member-directory { display: grid; gap: 54px; padding-top: 48px; }
.member-band > header { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.member-band > header > div span { color: var(--yellow); font-size: .63rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.member-band h2 { margin: 5px 0 0; font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -.045em; }
.member-band > header > strong { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.directory-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; }
.directory-card { min-width: 0; min-height: 270px; padding: 24px 18px 22px; position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(244,212,42,.045), rgba(18,19,20,.92) 45%); text-align: center; transition: border-color .2s, transform .2s, background .2s; }
.directory-card::before { content: ''; width: 150px; height: 150px; position: absolute; top: -92px; right: -75px; border-radius: 50%; background: rgba(244,212,42,.08); filter: blur(20px); }
.directory-card:hover { border-color: rgba(244,212,42,.48); background: linear-gradient(145deg, rgba(244,212,42,.085), rgba(18,19,20,.96) 48%); transform: translateY(-3px); }
.directory-card-badge { min-height: 24px; position: relative; color: var(--yellow); font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.directory-card-badge:first-letter { font-size: 1rem; }
.directory-card-avatar { width: 74px; height: 74px; margin: 8px 0 16px; position: relative; display: grid; place-items: center; color: var(--yellow); border: 1px solid rgba(244,212,42,.48); border-radius: 50%; background: rgba(8,9,10,.82); font-size: 1rem; font-weight: 950; letter-spacing: .02em; box-shadow: inset 0 0 28px rgba(244,212,42,.035); }
.directory-card-copy { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.directory-card-copy strong { max-width: 100%; overflow: hidden; color: var(--text); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.directory-card-copy small { max-width: 100%; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.directory-card-role { min-height: 28px; margin-top: 10px; color: #a6a6a8; font-size: .62rem; font-weight: 750; line-height: 1.35; text-transform: uppercase; letter-spacing: .09em; }
.directory-card-voice { margin-top: auto; padding-top: 13px; color: var(--yellow); font-size: .7rem; font-weight: 850; }
.directory-columns, .directory-member { display: grid; grid-template-columns: 55px minmax(240px, 1fr) minmax(150px, .4fr) 150px; align-items: center; gap: 15px; }
.directory-columns { min-height: 38px; padding-inline: 14px; color: #656567; border-block: 1px solid var(--line); font-size: .6rem; text-transform: uppercase; letter-spacing: .13em; }
.directory-member { min-height: 74px; padding-inline: 14px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.directory-member:hover { padding-inline: 20px; background: rgba(255,255,255,.025); }
.directory-number { color: #575759; font-size: .68rem; font-weight: 800; }
.directory-identity { min-width: 0; display: flex; align-items: center; gap: 13px; }
.directory-identity > span { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; color: var(--yellow); border: 1px solid rgba(244,212,42,.25); border-radius: 50%; background: #111213; font-size: .75rem; font-weight: 900; }
.directory-identity > div { min-width: 0; display: flex; flex-direction: column; }
.directory-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.directory-identity small { color: var(--muted); font-size: .68rem; }
.directory-rank { color: #ccc; font-size: .74rem; }
.directory-voice { color: var(--yellow-soft); font-size: .7rem; font-weight: 750; text-align: right; }
.directory-empty { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); border: 1px solid var(--line); }
.directory-empty strong { color: var(--text); }

/* Aliados */
.allies-ambient { background: radial-gradient(circle at 78% 16%, rgba(56,189,248,.12), transparent 30%), radial-gradient(circle at 20% 20%, rgba(244,212,42,.05), transparent 25%), #08090a; }
.allies-hero h1 em { color: #62d4ff; }
.ally-eyebrow { color: #62d4ff; }
.ally-eyebrow i { background: #62d4ff; box-shadow: 0 0 18px rgba(98,212,255,.7); }
.ally-total { border-left-color: #62d4ff; }
.ally-total strong { color: #62d4ff; }
.ally-search span { color: #62d4ff; }
.ally-tabs button:hover, .ally-tabs button.active { color: #071217; border-color: #62d4ff; background: #62d4ff; }
.ally-band > header > div span { color: #62d4ff; }
.ally-card { background: linear-gradient(145deg, rgba(98,212,255,.055), rgba(18,19,20,.92) 45%); }
.ally-card::before { background: rgba(98,212,255,.1); }
.ally-card:hover { border-color: rgba(98,212,255,.5); background: linear-gradient(145deg, rgba(98,212,255,.1), rgba(18,19,20,.96) 48%); }
.ally-card .directory-card-badge, .ally-card .directory-card-avatar, .ally-card .directory-card-voice { color: #62d4ff; }
.ally-card .directory-card-avatar { border-color: rgba(98,212,255,.48); box-shadow: inset 0 0 28px rgba(98,212,255,.045); }
.ally-member .directory-identity > span { color: #62d4ff; border-color: rgba(98,212,255,.28); }
.ally-relation { color: #b9eaff; }
.ally-voice { color: #62d4ff; }

/* Discord */
.discord-ambient { background: radial-gradient(circle at 78% 25%, rgba(88,101,242,.18), transparent 30%), radial-gradient(circle at 30% 15%, rgba(244,212,42,.07), transparent 24%), #08090a; }
.discord-shell { min-height: calc(100vh - 226px); padding-block: 70px 95px; }
.discord-hero { min-height: 600px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.discord-copy { position: relative; }
.discord-mark { position: absolute; z-index: -1; left: -44px; top: -105px; color: rgba(88,101,242,.09); font-size: 20rem; font-weight: 950; line-height: 1; }
.discord-copy h1 { margin: 18px 0 24px; font-size: clamp(3.2rem, 6.8vw, 6.3rem); line-height: .9; letter-spacing: -.065em; }
.discord-copy h1 em { color: #7c87ff; font-style: normal; }
.discord-copy > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 1rem; }
.discord-cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.discord-cta-row .discord-button { color: #fff; }
.discord-public-note { margin-top: 22px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .72rem; }
.discord-public-note > i { width: 9px; height: 9px; border-radius: 50%; background: #51e98a; box-shadow: 0 0 16px rgba(81,233,138,.58); }
.discord-public-note > span { display: flex; flex-direction: column; }
.discord-public-note strong { color: #d8d8da; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.discord-access-card { margin-top: 38px; padding: 20px; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 17px; border: 1px solid var(--line); background: rgba(18,19,22,.84); }
.access-indicator { width: 9px; height: 9px; border: 2px solid #777; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.access-indicator.identify { border: 0; background: #7c87ff; animation: none; box-shadow: 0 0 15px rgba(124,135,255,.65); }
.access-indicator.approved { border: 0; background: #51e98a; animation: none; box-shadow: 0 0 15px rgba(81,233,138,.55); }
.access-indicator.denied { border: 0; background: #ef6464; animation: none; box-shadow: 0 0 15px rgba(239,100,100,.45); }
.discord-access-card > div { display: flex; flex-direction: column; }
.discord-access-card small { color: #7c87ff; font-size: .61rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.discord-access-card strong { margin-top: 3px; font-size: .9rem; }
.discord-access-card p { margin: 2px 0 0; color: var(--muted); font-size: .72rem; }
.discord-button { min-width: 150px; color: #fff; border-color: #5865f2; background: #5865f2; cursor: pointer; }
.discord-button:hover { background: #6f7af7; }
.discord-button:disabled { cursor: wait; opacity: .6; }
.discord-visual { min-height: 500px; position: relative; display: grid; place-items: center; }
.discord-orbit { position: absolute; border: 1px solid rgba(124,135,255,.15); border-radius: 50%; }
.orbit-one { width: 390px; height: 390px; }
.orbit-two { width: 285px; height: 285px; border-color: rgba(244,212,42,.1); }
.discord-logo-card { width: 205px; height: 245px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(124,135,255,.35); border-radius: 28px; background: linear-gradient(160deg, rgba(88,101,242,.17), rgba(13,14,16,.92)); box-shadow: 0 35px 90px rgba(0,0,0,.48); }
.discord-logo-card img { position: absolute; width: 180px; opacity: .12; }
.discord-logo-card strong { position: relative; color: var(--yellow); font-size: 4rem; letter-spacing: -.09em; }
.discord-logo-card span { position: relative; color: #8d96ff; font-size: .62rem; font-weight: 800; letter-spacing: .2em; }
.discord-floating-message { position: absolute; min-width: 205px; padding: 14px 17px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); background: rgba(15,16,19,.94); box-shadow: 0 18px 45px rgba(0,0,0,.42); }
.discord-floating-message i { width: 8px; height: 8px; border-radius: 50%; background: #51e98a; box-shadow: 0 0 12px rgba(81,233,138,.5); }
.discord-floating-message span { display: flex; flex-direction: column; font-size: .72rem; font-weight: 700; }
.discord-floating-message small { color: #7c87ff; font-size: .55rem; letter-spacing: .14em; }
.message-a { top: 80px; right: 0; }
.message-b { bottom: 65px; left: 0; }
.discord-server-preview { min-height: 500px; position: relative; display: grid; grid-template-columns: 62px 160px 1fr; overflow: visible; border: 1px solid rgba(124,135,255,.28); border-radius: 18px; background: #17181c; box-shadow: 0 45px 110px rgba(0,0,0,.58); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.server-rail { padding: 12px 9px; display: flex; flex-direction: column; align-items: center; gap: 10px; border-radius: 18px 0 0 18px; background: #111216; }
.server-rail span, .server-rail i { width: 40px; height: 40px; border-radius: 50%; }
.server-rail .server-home { display: grid; place-items: center; color: #111; border-radius: 14px; background: var(--yellow); font-size: .7rem; font-weight: 950; }
.server-rail i { display: block; background: linear-gradient(145deg, #34363d, #222329); }
.server-channels { min-width: 0; padding: 0 10px; background: #1c1d22; }
.server-channels header { height: 50px; margin-inline: -10px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.3); font-size: .68rem; }
.server-channels small { display: block; margin: 17px 4px 5px; color: #75767c; font-size: .5rem; font-weight: 800; }
.server-channels p { margin: 2px 0; padding: 6px 8px; overflow: hidden; color: #999ba2; border-radius: 4px; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.server-channels p span { margin-right: 5px; color: #6d6f76; font-weight: 900; }
.server-channels p.selected { color: #e5e5e6; background: #35363d; }
.server-conversation { min-width: 0; padding: 0 15px 15px; position: relative; display: flex; flex-direction: column; background: #24252b; border-radius: 0 18px 18px 0; }
.server-conversation > header { height: 50px; margin-inline: -15px; padding: 0 15px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(0,0,0,.28); }
.server-conversation > header > span { color: #85868d; font-size: 1.2rem; }
.server-conversation > header > strong { font-size: .7rem; }
.server-conversation > header > small { overflow: hidden; color: #777980; font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.conversation-welcome { margin-top: auto; padding-bottom: 20px; display: flex; flex-direction: column; }
.conversation-welcome b { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #41434a; font-size: 1.2rem; }
.conversation-welcome strong { margin-top: 7px; font-size: .85rem; }
.conversation-welcome p, .conversation-message p { margin: 2px 0 0; color: #b6b7bc; font-size: .58rem; }
.conversation-message { padding-block: 8px; display: flex; gap: 9px; }
.chat-avatar { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: .58rem; font-weight: 900; }
.chat-avatar.yellow { color: #151515; background: var(--yellow); }
.chat-avatar.purple { color: #fff; background: #5865f2; }
.conversation-message > div { display: flex; flex-direction: column; }
.conversation-message strong { font-size: .62rem; }
.conversation-message time { margin-left: 4px; color: #73747b; font-size: .48rem; font-weight: 400; }
.conversation-input { height: 35px; margin-top: 9px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; color: #707178; border-radius: 6px; background: #383a42; font-size: .55rem; }
.conversation-input span { font-size: 1rem; }
.server-online { position: absolute; right: 22px; bottom: -27px; min-width: 170px; padding: 13px 15px; display: grid; grid-template-columns: 10px 1fr; gap: 1px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(14,15,18,.96); box-shadow: 0 15px 35px rgba(0,0,0,.5); }
.server-online i { grid-row: 1 / 3; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: #51e98a; box-shadow: 0 0 12px rgba(81,233,138,.55); }
.server-online strong { font-size: .63rem; }
.server-online span { color: var(--muted); font-size: .52rem; }
.discord-features { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.discord-features article { min-height: 145px; padding: 27px; display: flex; gap: 17px; border-right: 1px solid var(--line); }
.discord-features article:last-child { border-right: 0; }
.discord-features article > span { color: #7c87ff; font-size: .65rem; font-weight: 800; }
.discord-features strong { font-size: .86rem; }
.discord-features p { margin: 6px 0 0; color: var(--muted); font-size: .75rem; }

@media (max-width: 980px) {
  .portal-header { grid-template-columns: 1fr auto; }
  .portal-navigation { position: fixed; z-index: 20; left: 50%; bottom: 14px; transform: translateX(-50%); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
  .portal-account { grid-column: 2; }
  .portal-hero { grid-template-columns: 1fr; gap: 36px; }
  .portal-hero-visual { min-height: 440px; }
  .voice-podium { grid-template-columns: repeat(3, 1fr); }
  .voice-member.position-1 { transform: none; }
  .portal-join { grid-template-columns: 110px 1fr; }
  .portal-join .portal-button { grid-column: 2; justify-self: start; }
  .profile-dashboard { grid-template-columns: 1fr; }
  .voice-card { grid-row: auto; min-height: 270px; }
  .directory-controls { align-items: flex-start; flex-direction: column; }
  .band-tabs { justify-content: flex-start; }
  .discord-hero { grid-template-columns: 1fr; gap: 25px; }
  .discord-visual { min-height: 420px; }
  .discord-server-preview { min-height: 440px; transform: none; }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .portal-header { height: 74px; }
  .portal-account { padding: 9px 10px; font-size: 0; }
  .portal-account::after { content: "Perfil"; font-size: .76rem; }
  .discord-account::after { content: "Discord"; }
  .logout-control::after { content: "Salir"; }
  .portal-account span { display: none; }
  .portal-hero { min-height: auto; padding-top: 58px; }
  .portal-hero h1 { font-size: clamp(3.3rem, 17vw, 5.2rem); }
  .portal-hero-visual { min-height: 340px; }
  .hero-frame { left: 0; }
  .hero-badge { width: 100px; height: 100px; top: -20px; }
  .portal-stats { grid-template-columns: repeat(2, 1fr); }
  .portal-stats article:nth-child(2) { border-right: 0; }
  .portal-stats article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .portal-section { padding-top: 82px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .voice-podium { grid-template-columns: 1fr; }
  .voice-member { min-height: 112px; padding: 16px; display: grid; grid-template-columns: 34px 54px 1fr auto; text-align: left; }
  .member-initials { width: 48px; height: 48px; font-size: .82rem; }
  .voice-member > div strong { max-width: 150px; }
  .media-wall { grid-template-columns: 1fr; grid-template-rows: 330px repeat(2, 210px); }
  .media-wall .media-feature { grid-row: auto; }
  .album-lightbox { padding: 70px 16px 30px; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 7px; }
  .album-lightbox > figure { height: 70vh; }
  .album-arrow { width: 40px; height: 40px; }
  .album-close { top: 14px; right: 14px; }
  .hierarchy-item { grid-template-columns: 50px 1fr; }
  .hierarchy-item > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .hierarchy-item > i { display: none; }
  .portal-join { padding: 28px; grid-template-columns: 1fr; }
  .portal-join > img { width: 90px; }
  .portal-join .portal-button { grid-column: auto; }
  .portal-footer { margin-bottom: 75px; }
  .profile-shell { padding-block: 35px; }
  .profile-cover { min-height: 410px; padding: 28px; align-items: flex-start; flex-direction: column; justify-content: flex-end; }
  .profile-identity { align-items: flex-start; flex-direction: column; }
  .profile-avatar { width: 92px; height: 92px; }
  .rank-emblem { min-width: 0; width: 100%; }
  .profile-session-actions { position: static; width: 100%; flex-wrap: wrap; order: -1; }
  .profile-panel, .voice-card { padding: 24px; }
  .profile-details, .profile-timeline { grid-template-columns: 1fr 1fr; }
  .profile-timeline { gap: 25px 0; }
  .directory-shell { padding-top: 50px; }
  .directory-hero { align-items: flex-start; flex-direction: column; }
  .directory-total { min-width: 150px; }
  .directory-columns { display: none; }
  .directory-member { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding-block: 12px; }
  .directory-rank { grid-column: 2; padding-left: 52px; }
  .directory-voice { grid-column: 3; grid-row: 1 / 3; }
  .discord-shell { padding-top: 50px; }
  .discord-copy h1 { font-size: clamp(3.25rem, 15vw, 5.3rem); }
  .discord-access-card { grid-template-columns: 12px 1fr; }
  .discord-button { grid-column: 2; justify-self: start; }
  .discord-features { grid-template-columns: 1fr; }
  .discord-features article { border-right: 0; border-bottom: 1px solid var(--line); }
  .discord-features article:last-child { border-bottom: 0; }
}

@media (max-width: 430px) {
  .portal-navigation { gap: 3px; padding: 4px; }
  .portal-navigation a { padding-inline: 7px; font-size: .63rem; }
  .portal-stats article { min-height: 115px; padding: 19px; }
  .voice-member { grid-template-columns: 28px 48px 1fr; }
  .voice-member time { grid-column: 3; }
  .profile-details, .profile-timeline { grid-template-columns: 1fr; }
  .directory-member { grid-template-columns: 24px minmax(0, 1fr); }
  .directory-rank { padding-left: 52px; }
  .directory-voice { grid-column: 2; grid-row: auto; padding-left: 52px; text-align: left; }
  .discord-visual { min-height: 340px; transform: scale(.82); margin-inline: -30px; }
  .discord-server-preview { min-height: 410px; grid-template-columns: 48px 115px 1fr; margin-inline: -20px; transform: scale(.94); }
  .server-rail { padding-inline: 5px; }
  .server-rail span, .server-rail i { width: 34px; height: 34px; }
  .server-channels { padding-inline: 6px; }
  .server-channels header { margin-inline: -6px; }
  .discord-cta-row { align-items: stretch; flex-direction: column; }
  .album-expand { opacity: 1; transform: none; }
  .album-lightbox { padding-inline: 8px; grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .album-arrow { width: 32px; height: 32px; }
  .album-lightbox figcaption { left: 8px; bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
