:root {
  --bg-black: #050507;
  --bg-elevated: #0a0b10;
  --bg-surface: #0f1016;
  --bg-glass: rgba(9, 10, 14, 0.78);
  --white: #ffffff;
  --silver-bright: #e4e4e7;
  --silver: #a1a1aa;
  --muted: #71717a;
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-dark-strong: rgba(255, 255, 255, 0.22);
  --line-active: rgba(255, 255, 255, 0.88);
  --container-w: clamp(1200px, 94vw, 1840px);
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--white);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-black);
  color: var(--white);
  line-height: 1.62;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  position: relative;
  z-index: 2;
  width: 100%;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 40px);
  position: relative;
  z-index: 2;
}

/* Modos de Pantalla Completa Fluida para Apartados y Navbar */
.container-full,
.workspace-full-container,
.foryou-full-container,
.navbar .container,
.navbar-zen .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: clamp(20px, 3.2vw, 56px) !important;
  padding-right: clamp(20px, 3.2vw, 56px) !important;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   CERO PARPADEO DE AUTENTICACIÓN (ZERO FLASH OF AUTH)
   Muestra de inmediato el perfil y oculta los botones de login
   cuando ya existía una sesión activa mientras Firebase valida en segundo plano
   ========================================================= */
html.xuanii-auth-cached #navSignInBtn,
html.xuanii-auth-cached #accountAuthGate,
html.xuanii-auth-cached #forYouGuestBar {
  display: none !important;
}

html.xuanii-auth-cached #navUserChip {
  display: flex !important;
}

html.xuanii-auth-cached #authenticatedWorkspace {
  display: grid !important;
}

html.xuanii-auth-cached #forYouComposerWrap {
  display: block !important;
}

/* =========================================================
   ANIMACIONES FLUIDAS ESTILO APPLE (SCROLL & TRANSICIONES)
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.992);
  filter: blur(5px);
  transition:
    opacity 0.78s var(--ease-apple) var(--reveal-delay, 0ms),
    transform 0.78s var(--ease-apple) var(--reveal-delay, 0ms),
    filter 0.78s var(--ease-apple) var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@keyframes appleStageIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.994);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes appleItemIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes appleDrawerIn {
  from {
    opacity: 0;
    transform: translate3d(38px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes appleModalIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* =========================================================
   FONDO MONOCROMÁTICO DE SEDA FLUIDA CON DESVANECIDO SUAVE
   ========================================================= */
.ambient-silk-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.38) 54%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.38) 54%, transparent 100%);
}

.ambient-silk-backdrop canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Rejilla arquitectónica de 4 columnas (ADN Stripe en Negro Obsidiana) */
.stripe-guides {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.guides-inner {
  max-width: var(--container-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  justify-content: space-between;
}

.guide-line {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.045);
}

.guide-line.dashed {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.038) 0,
    rgba(255, 255, 255, 0.038) 5px,
    transparent 5px,
    transparent 11px
  );
}

/* =========================================================
   NAVEGACIÓN SUPERIOR CON CRISTAL OSCURO
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.74);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.25s var(--ease-apple);
}

.brand:hover {
  opacity: 0.85;
}

.brand-logo {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.brand-text {
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.045em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s var(--ease-apple);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 1.5px;
  background: var(--white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-inline {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-dark-strong);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.user-name.workspace-pill-link {
  border-bottom: 1px solid var(--line-dark-strong);
  padding-bottom: 2px;
  transition: border-color 0.22s var(--ease-apple);
}

.user-name.workspace-pill-link:hover,
.user-name.workspace-pill-link.active {
  border-bottom-color: var(--white);
}

.btn-signout {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 0.2s var(--ease-apple);
}

.btn-signout:hover {
  color: var(--white);
}

/* =========================================================
   BOTONES Y ENLACES CON FÍSICA FLUIDA APPLE
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.015em;
  padding: 12px 23px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.28s var(--ease-spring),
    background-color 0.25s var(--ease-apple),
    border-color 0.25s var(--ease-apple),
    box-shadow 0.28s var(--ease-apple),
    opacity 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate3d(0, -1.5px, 0);
}

.btn:active {
  transform: scale(0.972);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 8px 17px;
  font-size: 0.83rem;
}

.btn-block {
  width: 100%;
}

.btn-white {
  background: var(--white);
  color: var(--bg-black);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.11);
}

.btn-white:hover {
  background: #ececf0;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: var(--line-dark-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.google-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.link-editorial {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 10px 2px;
  transition: opacity 0.22s var(--ease-apple), transform 0.22s var(--ease-apple);
}

.link-editorial:hover {
  opacity: 0.78;
}

.arrow {
  display: inline-block;
  transition: transform 0.26s var(--ease-spring);
}

.link-editorial:hover .arrow,
.btn:hover .arrow {
  transform: translate3d(4px, 0, 0);
}

/* =========================================================
   HERO PRINCIPAL E INTERIORES CON DESVANECIDO ATMOSFÉRICO
   ========================================================= */
.hero {
  position: relative;
  padding: 116px 0 132px;
  overflow: hidden;
}

.page-hero {
  position: relative;
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}

.hero-diagonal-wrap {
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 700px;
  transform: skewY(-5deg);
  transform-origin: 0 100%;
  overflow: hidden;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.85) 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.85) 58%, transparent 100%);
}

#monochromeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, transparent 8%, rgba(5, 5, 7, 0.82) 84%),
    linear-gradient(180deg, transparent 52%, #050507 100%);
}

.hero-copy {
  max-width: 780px;
}

.open-eyebrow {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--silver);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.55rem, 5vw, 4.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.042em;
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.45rem);
}

.text-silver {
  background: linear-gradient(180deg, #ffffff 0%, #7d7d88 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.11rem;
  color: var(--silver);
  max-width: 630px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.page-hero .hero-lead {
  margin-bottom: 0;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.hero-live-rail {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.rail-metric {
  border-left: 1.5px solid var(--white);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-metric.secondary-metric {
  border-left-color: var(--line-dark-strong);
}

.rail-figure {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rail-figure strong {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.95);
  animation: pulseGlow 2.4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.84); }
}

.rail-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.rail-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--white);
}

.rail-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================================================
   SECCIONES EN NEGRO OBSIDIANA CON DESVANECIDOS SUAVES
   (CERO FONDOS BLANCOS FUERTES)
   ========================================================= */
.section-dark {
  padding: 112px 0;
  position: relative;
}

.section-obsidian-fade {
  position: relative;
  padding: 128px 0;
  background:
    radial-gradient(ellipse 72% 45% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 72%),
    linear-gradient(180deg, #050507 0%, #0b0c12 18%, #0b0c12 82%, #050507 100%);
  z-index: 2;
}

.section-divider-top {
  border-top: 1px solid var(--line-dark);
}

.section-soft-divider {
  border-top: 1px solid var(--line-dark);
  margin-top: 72px;
  padding-top: 64px;
}

.editorial-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.showcase-copy h2,
.section-dark h2,
.section-obsidian-fade h2 {
  font-size: clamp(1.95rem, 3.3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.showcase-lead {
  font-size: 1.05rem;
  color: var(--silver);
  margin-bottom: 42px;
  max-width: 540px;
}

.open-callouts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.callout-rail {
  border-left: 1.5px solid var(--white);
  padding-left: 18px;
  transition: transform 0.3s var(--ease-apple);
}

.callout-rail:hover {
  transform: translate3d(3px, 0, 0);
}

.callout-domain {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin-bottom: 6px;
}

.callout-rail h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--white);
}

.callout-rail p {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.56;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

#editorialPreviewCanvas {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
}

.infra-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.columns-4-open {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.columns-3-open {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.arch-col {
  border-left: 1px solid var(--line-dark-strong);
  padding-left: 18px;
  transition: border-color 0.25s var(--ease-apple), transform 0.28s var(--ease-apple);
}

.arch-col:hover {
  border-left-color: var(--white);
}

.col-index {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--silver);
  margin-bottom: 10px;
}

.arch-col h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--white);
}

.arch-col p {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.56;
}

/* =========================================================
   FORMULARIOS ABIERTOS CON LÍNEA INFERIOR (SIN CAJAS)
   ========================================================= */
.split-editorial {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.editorial-stack {
  display: grid;
  gap: 28px;
}

.open-form {
  display: grid;
  gap: 28px;
}

.field-line {
  display: grid;
  gap: 7px;
}

.field-line label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--silver);
  text-transform: uppercase;
}

.line-input,
.line-select,
.line-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark-strong);
  color: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  padding: 11px 0;
  outline: none;
  transition: border-color 0.22s var(--ease-apple);
  border-radius: 0;
}

.line-select option {
  background: #0d0e14;
  color: var(--white);
}

.line-input:focus,
.line-select:focus,
.line-textarea:focus {
  border-bottom-color: var(--white);
}

.line-input::placeholder,
.line-textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.line-textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.6;
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 10px;
}

.topic-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: color 0.22s var(--ease-apple);
}

.topic-tab:hover,
.topic-tab.active {
  color: var(--white);
}

.topic-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 1.5px;
  background: var(--white);
}

.form-feedback {
  border-left: 1.5px solid var(--white);
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--silver-bright);
  animation: appleItemIn 0.3s var(--ease-apple) both;
}

.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.open-rows {
  display: grid;
}

.open-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
}

.open-row-title {
  font-weight: 600;
  color: var(--white);
  display: block;
}

.open-row-val {
  color: var(--silver);
  font-size: 0.88rem;
}

.open-row-sub {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 3px;
}

.open-toggle-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark-strong);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  padding: 4px 0;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-apple), border-color 0.2s var(--ease-apple);
}

.open-toggle-btn:hover {
  border-bottom-color: var(--white);
}

.open-toggle-btn[data-active="false"] {
  color: var(--muted);
  border-bottom-color: var(--line-dark);
}

.text-action-btn {
  background: transparent;
  border: none;
  color: var(--silver);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0;
  transition: color 0.2s var(--ease-apple);
}

.text-action-btn:hover {
  color: var(--white);
}

.text-action-btn.danger-text:hover {
  color: #f4f4f5;
}

/* =========================================================
   ESTRELLAS DE CALIFICACIÓN, ID INTERNO Y PERFILES SOCIALES
   ========================================================= */
.id-tag-mono {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-apple), border-color 0.2s var(--ease-apple);
}

.id-tag-mono:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.stars-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--white);
}

.stars-glyphs {
  letter-spacing: 0.08em;
  color: var(--white);
}

.stars-count {
  color: var(--muted);
  font-size: 0.76rem;
}

.star-picker-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.star-pick-btn {
  background: transparent;
  border: none;
  font-size: 1.45rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), color 0.18s ease, text-shadow 0.2s ease;
}

.star-pick-btn:hover,
.star-pick-btn.lit {
  color: var(--white);
  transform: scale(1.14);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

.review-open-item {
  border-left: 1.5px solid var(--line-dark-strong);
  padding-left: 16px;
  display: grid;
  gap: 5px;
  padding-top: 4px;
  padding-bottom: 4px;
  animation: appleItemIn 0.34s var(--ease-apple) both;
}

.directory-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.directory-search-wrap {
  min-width: 280px;
  flex: 0 1 360px;
}

.profiles-open-list {
  display: grid;
}

.profile-open-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-dark);
  animation: appleItemIn 0.42s var(--ease-apple) both;
  transition: border-color 0.25s var(--ease-apple);
}

.profile-open-row:hover {
  border-bottom-color: var(--line-dark-strong);
}

.profile-identity {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 100%;
  flex: 1;
}

.profile-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-dark-strong);
  flex-shrink: 0;
  background: var(--bg-surface);
  cursor: pointer;
  transition: transform 0.28s var(--ease-spring), border-color 0.22s ease;
}

.profile-avatar-lg:hover {
  transform: scale(1.06);
  border-color: var(--white);
}

.profile-meta-stack {
  display: grid;
  gap: 6px;
}

.profile-name-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-name-line h3 {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.profile-name-line h3:hover {
  opacity: 0.8;
}

.profile-handle {
  font-size: 0.8rem;
  color: var(--muted);
}

.profile-role-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-role {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--silver-bright);
}

.profile-situation-tag {
  font-size: 0.73rem;
  color: var(--silver);
  border-left: 1px solid var(--line-dark-strong);
  padding-left: 10px;
}

.profile-bio {
  font-size: 0.92rem;
  color: var(--silver);
  line-height: 1.58;
  white-space: pre-wrap;
  margin-top: 2px;
}

.skills-tags-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.skill-tag-open {
  font-size: 0.73rem;
  color: var(--silver-bright);
  border-bottom: 1px solid var(--line-dark-strong);
  padding-bottom: 1px;
}

.profile-mini-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.mini-shot-img {
  width: 78px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--line-dark-strong);
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), border-color 0.2s ease;
}

.mini-shot-img:hover {
  transform: scale(1.06);
  border-color: var(--white);
}

.profile-cta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  flex-shrink: 0;
}

.work-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  color: var(--silver-bright);
}

.work-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.work-dot.muted-dot {
  background: var(--muted);
  box-shadow: none;
}

/* =========================================================
   RED SOCIAL PROFESIONAL & STUDIO SHELL (CUENTA.HTML)
   ========================================================= */
.studio-gate-wrap {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.auth-gate-open {
  border-left: 1.5px solid var(--white);
  padding-left: 26px;
  max-width: 650px;
  display: grid;
  gap: 18px;
  animation: appleStageIn 0.55s var(--ease-apple) both;
}

.auth-gate-open h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.1;
}

.auth-gate-open p {
  color: var(--silver);
  font-size: 1rem;
}

.studio-shell {
  display: block;
  min-height: calc(100vh - 64px);
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.studio-shell:has(.studio-sidebar) {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.studio-sidebar {
  border-right: 1px solid var(--line-dark);
  padding: 28px 24px 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  flex-shrink: 0;
}

.studio-user-head {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.studio-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-dark-strong);
  flex-shrink: 0;
  background: var(--bg-surface);
}

.studio-user-meta {
  min-width: 0;
}

.studio-user-name {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-user-handle {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-presence-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark-strong);
  color: var(--silver-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  padding: 6px 0;
  outline: none;
  cursor: pointer;
}

.studio-presence-select option {
  background: #0d0e14;
  color: var(--white);
}

.studio-nav {
  display: grid;
  gap: 3px;
}

.studio-nav-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin: 14px 0 5px;
}

.studio-nav-label:first-child {
  margin-top: 0;
}

.studio-nav-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-left: 1.5px solid transparent;
  color: var(--silver);
  font-family: inherit;
  font-size: 0.89rem;
  font-weight: 500;
  text-align: left;
  padding: 9px 10px 9px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition:
    color 0.22s var(--ease-apple),
    border-color 0.22s var(--ease-apple),
    transform 0.22s var(--ease-apple);
}

.studio-nav-btn:hover {
  color: var(--white);
  transform: translate3d(2px, 0, 0);
}

.studio-nav-btn.active {
  color: var(--white);
  font-weight: 600;
  border-left-color: var(--white);
}

.studio-badge {
  font-size: 0.72rem;
  color: var(--muted);
}

.studio-nav-btn.active .studio-badge {
  color: var(--white);
}

.studio-side-foot {
  border-top: 1px solid var(--line-dark);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.77rem;
  color: var(--muted);
}

.studio-stage {
  padding: 32px 16px 80px;
  max-width: 780px;
  margin: 0 auto;
  min-width: 0;
  width: 100%;
}

.workspace-panel {
  width: 100%;
  max-width: 100%;
}

.workspace-panel:not([hidden]) {
  animation: appleStageIn 0.46s var(--ease-apple) both;
}

.studio-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
}

.studio-top-bar h1,
.studio-top-bar h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.036em;
  line-height: 1.14;
}

/* =========================================================
   MURO SOCIAL Y PORTAFOLIO FOTOGRÁFICO (FEED & PERFIL)
   ========================================================= */
.feed-composer-open {
  border-left: 1.5px solid var(--white);
  padding-left: 22px;
  margin-bottom: 44px;
  display: grid;
  gap: 18px;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.composer-photo-preview {
  position: relative;
  display: inline-block;
  max-width: 320px;
}

.composer-photo-preview img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border: 1px solid var(--line-dark-strong);
  display: block;
}

.feed-stream {
  display: grid;
}

.feed-post-open {
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  gap: 14px;
  animation: appleItemIn 0.4s var(--ease-apple) both;
}

.feed-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.feed-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.feed-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-dark-strong);
  background: var(--bg-surface);
}

.feed-post-kind {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--silver);
  text-transform: uppercase;
}

.feed-post-caption {
  font-size: 0.98rem;
  color: var(--silver-bright);
  line-height: 1.62;
  white-space: pre-wrap;
  width: 100%;
  max-width: 100%;
}

.post-media-container {
  width: 100%;
  max-width: 100%;
}

.post-photo-frame {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-dark-strong);
  background: #08080b;
  border-radius: 4px;
}

.post-photo-frame img {
  width: 100%;
  max-height: clamp(520px, 68vh, 840px);
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-apple);
}

.post-photo-frame:hover img {
  transform: scale(1.018);
}

.post-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.post-actions-bar .text-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-actions-bar .text-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transform: translateY(-1px);
}

.post-actions-bar .text-action-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-actions-bar .text-action-btn:hover svg {
  transform: scale(1.12);
}

.post-like-btn {
  background: transparent;
  border: none;
  color: var(--silver);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.22s var(--ease-spring);
}

.post-like-btn:hover,
.post-like-btn.liked {
  color: var(--white);
  transform: scale(1.06);
}

/* Galería de fotos en el perfil de cada usuario */
.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.portfolio-shot {
  border: 1px solid var(--line-dark-strong);
  background: #08080b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: appleItemIn 0.38s var(--ease-apple) both;
}

.portfolio-shot img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-apple);
}

.portfolio-shot:hover img {
  transform: scale(1.04);
}

.portfolio-shot-foot {
  padding: 10px 12px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--silver);
}

/* =========================================================
   CHAT CIFRADO AES-256-GCM + PUERTA DE 1 MENSAJE A DESCONOCIDOS
   ========================================================= */
.chat-split-open {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(24px, 2.5vw, 44px);
  min-height: calc(100vh - 220px);
  width: 100%;
}

.conv-list-open {
  border-right: 1px solid var(--line-dark);
  padding-right: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conv-item-open {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  border-left: 2px solid transparent;
  color: var(--white);
  font-family: inherit;
  text-align: left;
  padding: 14px 8px 14px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s var(--ease-apple), opacity 0.2s ease;
}

.conv-item-open:hover {
  opacity: 0.88;
}

.conv-item-open.active {
  border-left-color: var(--white);
}

.conv-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--line-dark-strong);
}

.conv-item-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.conv-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-item-preview {
  font-size: 0.77rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-open {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.chat-active-thread {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 18px;
}

.chat-thread-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.chat-peer-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crypto-status-line {
  font-size: 0.71rem;
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pending-gate-banner {
  border-left: 2px solid var(--white);
  padding: 12px 0 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  gap: 10px;
  animation: appleItemIn 0.32s var(--ease-apple) both;
}

.pending-gate-banner p {
  font-size: 0.87rem;
  color: var(--silver-bright);
}

.chat-stream-open {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 380px);
  min-height: 480px;
  max-height: none;
  overflow-y: auto;
  padding: 12px 14px 12px 0;
}

.chat-msg-rail {
  border-left: 1px solid var(--line-dark-strong);
  padding-left: 16px;
  display: grid;
  gap: 4px;
  animation: appleItemIn 0.28s var(--ease-apple) both;
}

.chat-msg-rail.own-msg {
  border-left: 2px solid var(--white);
}

.chat-msg-meta {
  font-size: 0.71rem;
  color: var(--muted);
}

.chat-msg-text {
  font-size: 0.94rem;
  color: var(--silver-bright);
  line-height: 1.56;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg-rail.own-msg .chat-msg-text {
  color: var(--white);
}

.chat-compose-open {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-top: 8px;
}

.chat-compose-open .line-input {
  flex: 1;
}

/* =========================================================
   COMUNIDADES POR ESPECIALIDAD
   ========================================================= */
.comm-split-open {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 2.5vw, 44px);
  min-height: 480px;
  width: 100%;
}

.comm-channels-rail {
  border-right: 1px solid var(--line-dark);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comm-channel-btn {
  background: transparent;
  border: none;
  border-left: 1.5px solid transparent;
  color: var(--silver);
  font-family: inherit;
  text-align: left;
  padding: 10px 8px 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-apple);
}

.comm-channel-btn:hover {
  color: var(--white);
  transform: translate3d(2px, 0, 0);
}

.comm-channel-btn.active {
  color: var(--white);
  border-left-color: var(--white);
}

.comm-channel-title {
  font-size: 0.89rem;
  font-weight: 600;
}

.comm-channel-sub {
  font-size: 0.74rem;
  color: var(--muted);
}

/* =========================================================
   BAÚL DE ARCHIVOS, APLICACIONES Y TIMELINE
   ========================================================= */
.vault-grid-split {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  width: 100%;
}

.vault-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  animation: appleItemIn 0.34s var(--ease-apple) both;
}

.vault-item-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.vault-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid var(--line-dark-strong);
  flex-shrink: 0;
}

.vault-type-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}

.vault-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--white);
  word-break: break-word;
}

.vault-snippet {
  font-size: 0.84rem;
  color: var(--silver);
  margin-top: 3px;
  max-width: 100%;
  white-space: pre-wrap;
}

.vault-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.app-hub-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-dark);
}

.app-hub-main {
  border-left: 1.5px solid var(--white);
  padding-left: 20px;
  max-width: 100%;
  flex: 1;
}

.app-hub-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin-bottom: 8px;
}

.app-hub-main h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.app-hub-main p {
  color: var(--silver);
  font-size: 0.94rem;
}

.app-hub-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.open-timeline {
  display: grid;
  gap: 54px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line-dark);
}

.timeline-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-meta {
  border-left: 1px solid var(--white);
  padding-left: 16px;
  align-self: start;
}

.timeline-date {
  display: block;
  font-size: 0.78rem;
  color: var(--white);
  margin-bottom: 4px;
}

.timeline-tag {
  font-size: 0.72rem;
  color: var(--muted);
}

.timeline-body h3 {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.timeline-body p {
  color: var(--silver);
  font-size: 0.96rem;
  max-width: 650px;
}

.legal-prose {
  max-width: 740px;
  display: grid;
  gap: 38px;
}

.legal-block {
  border-left: 1px solid var(--line-dark-strong);
  padding-left: 22px;
}

.legal-block h2 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-block p {
  color: var(--silver);
  font-size: 0.95rem;
}

.submission-list {
  display: grid;
  gap: 24px;
  margin-top: 12px;
}

.submission-entry {
  border-left: 1px solid var(--white);
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

/* =========================================================
   MODALES CRISTAL OSCURO + INSPECTOR LATERAL DE PERFILES
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 4, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
}

.modal-card {
  background: #0a0b10;
  border: 1px solid var(--line-dark-strong);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  animation: appleModalIn 0.36s var(--ease-apple) both;
}

.modal-card.modal-card-lg {
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-kicker {
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  color: var(--silver);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--silver);
  font-size: 1.15rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--white);
}

.modal-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.032em;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--silver);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* Drawer lateral fluido para ver Perfil Completo, Fotos y Calificar Estrellas */
.inspector-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 4, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: flex-end;
  z-index: 115;
}

.inspector-drawer {
  width: min(720px, 100vw);
  height: 100vh;
  background: #08080c;
  border-left: 1px solid var(--line-dark-strong);
  padding: 28px 30px 64px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: appleDrawerIn 0.42s var(--ease-apple) both;
}

/* =========================================================
   PERFIL ESTILO TIKTOK / RED SOCIAL MODERNA
   ========================================================= */
.btn-tiktok-share {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--silver);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-tiktok-share:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.profile-tiktok-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.profile-tiktok-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-tiktok-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: #141419;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: block;
}

.profile-tiktok-names {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 220px;
}

.profile-tiktok-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-tiktok-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.15;
}

.profile-tiktok-handle {
  font-size: 0.82rem;
  color: var(--muted);
}

.profile-tiktok-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.profile-tiktok-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-tiktok-actions-bar .btn-tiktok-follow {
  position: relative;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 22px;
  border-radius: 6px;
  cursor: pointer;
  background: var(--white);
  color: #000000;
  border: 1px solid var(--white);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-tiktok-actions-bar .btn-tiktok-follow:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.profile-tiktok-actions-bar .btn-tiktok-follow.following {
  background: rgba(255, 255, 255, 0.05);
  color: var(--silver-bright);
  border-color: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.profile-tiktok-actions-bar .btn-tiktok-follow.following:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.profile-tiktok-stats-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.tiktok-stat-box {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.tiktok-stat-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
}

.tiktok-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: capitalize;
}

.tiktok-stat-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-tiktok-bio-card {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.015);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-tiktok-tabs-nav {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 8px;
  margin-top: 4px;
}

.tiktok-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: -1px;
}

.tiktok-tab-btn:hover:not(.disabled) {
  color: var(--white);
}

.tiktok-tab-btn.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.tiktok-tab-btn.disabled {
  opacity: 0.42;
  cursor: not-allowed;
  user-select: none;
}

.tiktok-tab-counter {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--silver-bright);
}

.tiktok-tab-pill-locked {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-posts-stream {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}

.profile-pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.btn-load-more-profile {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-load-more-profile:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.profile-pagination-counter {
  font-size: 0.72rem;
  color: var(--muted);
}

.profile-all-loaded {
  text-align: center;
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.76rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin-top: 16px;
}

.profile-posts-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-top: 10px;
}

.profile-real-stage {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-portfolio-locked-card {
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

/* =========================================================
   FOOTER ABIERTO
   ========================================================= */
.footer {
  border-top: 1px solid var(--line-dark);
  padding: 44px 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s var(--ease-apple);
}

.footer-links a:hover {
  color: var(--white);
}

/* =========================================================
   INSIGNIA OFICIAL DE CREADOR (MONOCROMÁTICA LUMINOSA)
   ========================================================= */
/* =========================================================
   INSIGNIAS OFICIALES: VERIFICADO (CHULITO AZUL) Y CREADOR (LLAVE)
   ========================================================= */
.creator-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 4px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 0 4px;
  box-shadow: none !important;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
  text-decoration: none;
}

.creator-badge.creator-badge-sm {
  gap: 3px;
  margin: 0 0 0 3px;
}

.verified-check-icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(29, 155, 240, 0.45));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  cursor: pointer;
}

.verified-check-icon:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(29, 155, 240, 0.75));
}

.creator-wrench-icon {
  width: 16.5px;
  height: 16.5px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  cursor: pointer;
  animation: creatorWrenchFloat 3.8s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.95));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

@keyframes creatorWrenchFloat {
  0% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.9));
  }
  35% {
    transform: rotate(-10deg) scale(1.08);
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.35));
  }
  70% {
    transform: rotate(6deg) scale(0.96);
    filter: drop-shadow(0 0 3px rgba(180, 180, 185, 0.5)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.85));
  }
  100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.9));
  }
}

.creator-wrench-icon:hover {
  transform: rotate(-22deg) scale(1.25) !important;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1)) !important;
}

.creator-badge.creator-badge-sm .verified-check-icon {
  width: 14px;
  height: 14px;
}

.creator-badge.creator-badge-sm .creator-wrench-icon {
  width: 14px;
  height: 14px;
}

.creator-avatar-ring {
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 0 0 2px #09090b, 0 0 14px rgba(255, 255, 255, 0.45);
  animation: creatorRingPulse 3.6s ease-in-out infinite;
}

@keyframes creatorRingPulse {
  0% {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #09090b, 0 0 14px rgba(255, 255, 255, 0.55);
  }
  50% {
    border-color: #52525b;
    box-shadow: 0 0 0 2px #09090b, 0 0 8px rgba(255, 255, 255, 0.2);
  }
  100% {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #09090b, 0 0 14px rgba(255, 255, 255, 0.55);
  }
}

/* =========================================================
   APARTADO "PARA TI" — RED SOCIAL VISUAL, FOTOS Y BÚSQUEDA
   ========================================================= */
.foryou-hub-head {
  padding: 76px 0 44px;
  border-bottom: 1px solid var(--line-dark);
}

.foryou-search-shell {
  margin-top: 28px;
  display: grid;
  gap: 20px;
}

.foryou-search-line {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1.5px solid var(--line-dark-strong);
  padding-bottom: 10px;
  transition: border-color 0.25s var(--ease-apple);
}

.foryou-search-line:focus-within {
  border-bottom-color: var(--white);
}

.foryou-search-icon {
  width: 19px;
  height: 19px;
  color: var(--silver);
  flex-shrink: 0;
}

.foryou-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 1.05rem;
  outline: none;
  padding: 6px 0;
}

.foryou-search-input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.foryou-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.view-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.view-mode-btn {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid transparent;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.22s var(--ease-apple), border-color 0.22s var(--ease-apple);
}

.view-mode-btn:hover,
.view-mode-btn.active {
  color: var(--white);
}

.view-mode-btn.active {
  border-bottom-color: var(--white);
}

/* Franja abierta de especialistas recomendados según lo que buscas en Para ti */
.foryou-specialists-zone {
  padding: 34px 0;
  border-bottom: 1px solid var(--line-dark);
}

.foryou-specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 26px;
  margin-top: 18px;
}

.foryou-specialist-rail {
  border-left: 1px solid var(--line-dark-strong);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.25s var(--ease-apple), transform 0.28s var(--ease-apple);
  animation: appleItemIn 0.38s var(--ease-apple) both;
}

.foryou-specialist-rail:hover {
  border-left-color: var(--white);
  transform: translate3d(3px, 0, 0);
}

.foryou-specialist-top {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.foryou-specialist-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-dark-strong);
  background: var(--bg-surface);
  flex-shrink: 0;
}

/* Mosaico visual de fotos y trabajos en Para ti */
.foryou-visual-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 28px 0;
}

.mosaic-shot-item {
  border: 1px solid var(--line-dark-strong);
  background: #08090d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.28s var(--ease-apple), transform 0.34s var(--ease-spring);
  animation: appleItemIn 0.42s var(--ease-apple) both;
}

.mosaic-shot-item:hover {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translate3d(0, -3px, 0);
}

.mosaic-shot-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #050507;
  cursor: zoom-in;
}

.mosaic-shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-apple);
}

.mosaic-shot-item:hover .mosaic-shot-media img {
  transform: scale(1.038);
}

.mosaic-text-showcase {
  padding: 26px 22px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
  cursor: pointer;
}

.mosaic-shot-body {
  padding: 16px 18px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 10px;
}

.mosaic-shot-caption {
  font-size: 0.89rem;
  color: var(--silver-bright);
  line-height: 1.52;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mosaic-shot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.post-photo-frame.zoomable {
  cursor: zoom-in;
  position: relative;
}

/* Hilo abierto de comentarios reales dentro de publicaciones */
.post-comments-drawer {
  margin-top: 6px;
  border-left: 1.5px solid var(--line-dark-strong);
  padding-left: 18px;
  display: grid;
  gap: 14px;
  max-width: 100%;
  width: 100%;
  animation: appleItemIn 0.3s var(--ease-apple) both;
}

.post-comments-list {
  display: grid;
  gap: 12px;
}

.post-comment-row {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.post-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.post-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
}

.post-comment-text {
  font-size: 0.89rem;
  color: var(--silver-bright);
  line-height: 1.52;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-comment-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.post-comment-form .line-input {
  flex: 1;
  font-size: 0.88rem;
  padding: 8px 0;
}

/* Visor Lightbox a pantalla completa para fotografías subidas */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 5, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-stage {
  width: min(1040px, 100%);
  max-height: 92vh;
  background: #08090e;
  border: 1px solid var(--line-dark-strong);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: appleModalIn 0.34s var(--ease-apple) both;
}

.lightbox-top {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lightbox-media-wrap {
  background: #030305;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.lightbox-media-wrap img {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  display: block;
}

.lightbox-bottom {
  padding: 16px 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.lightbox-caption {
  font-size: 0.92rem;
  color: var(--silver-bright);
  max-width: 100%;
  flex: 1;
  line-height: 1.54;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .editorial-showcase,
  .open-callouts,
  .split-editorial,
  .timeline-entry,
  .chat-split-open,
  .comm-split-open,
  .studio-shell,
  .vault-grid-split {
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line-dark);
    padding: 20px 0;
  }

  .studio-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .studio-nav-label {
    display: none;
  }

  .studio-nav-btn {
    width: auto;
    border-left: none;
    border-bottom: 1.5px solid transparent;
    padding: 6px 10px;
  }

  .studio-nav-btn.active {
    border-left-color: transparent;
    border-bottom-color: var(--white);
  }

  .studio-stage {
    padding: 28px 0 60px 0;
  }

  .conv-list-open,
  .comm-channels-rail {
    border-right: none;
    border-bottom: 1px solid var(--line-dark);
    padding-right: 0;
    padding-bottom: 16px;
  }

  .app-hub-row,
  .profile-open-row {
    flex-direction: column;
  }

  .app-hub-actions,
  .profile-cta-col {
    align-items: flex-start;
  }

  .columns-4-open,
  .columns-3-open {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .columns-4-open,
  .columns-3-open {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-links {
    width: 100%;
    order: 3;
    border-top: 1px solid var(--line-dark);
    padding-top: 10px;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-links a.active::after {
    bottom: -4px;
  }

  .inspector-drawer {
    padding: 24px 20px 48px;
  }
}

/* =========================================================
   BARRA SUPERIOR MINIMALISTA Y PRECISA (STRIPE / APPLE)
   ========================================================= */
.navbar-zen {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 64px;
  background: rgba(5, 5, 7, 0.84);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s var(--ease-apple);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Microinteracción de Botón de Dock / Menú estilo Apple (Cero Cuadros) */
.dock-trigger-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 4px !important;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-apple);
}

.dock-trigger-btn:hover {
  background: transparent !important;
  border: none !important;
  opacity: 0.85;
}

.dock-trigger-btn:active {
  transform: scale(0.94);
}

.dock-burger-box {
  width: 20px;
  height: 13px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dock-line {
  display: block;
  height: 1.75px;
  background-color: var(--white);
  border-radius: 999px;
  transition:
    transform 0.28s var(--ease-apple),
    width 0.22s var(--ease-apple),
    opacity 0.2s ease;
  transform-origin: center;
}

.dock-line-top {
  width: 20px;
}

.dock-line-mid {
  display: none !important;
}

.dock-line-bot {
  width: 13px;
}

/* Microinteracción: al pasar el ratón, la línea inferior se desliza fluidamente completando el ancho */
.dock-trigger-btn:hover .dock-line-bot {
  width: 20px;
}

/* Al abrir el dock, se transforma con gracia en una X minimalista perfecta */
.dock-trigger-btn[aria-expanded="true"] .dock-line-top {
  transform: translateY(5.6px) rotate(45deg);
}

.dock-trigger-btn[aria-expanded="true"] .dock-line-bot {
  width: 20px;
  transform: translateY(-5.6px) rotate(-45deg);
}

.nav-vertical-divider {
  display: none !important;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.navbar-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 16px;
  transition: all 0.2s var(--ease-apple);
}

.navbar-search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.navbar-search-icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex-shrink: 0;
}

.navbar-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 0.84rem;
  font-family: inherit;
}

.navbar-search-input::placeholder {
  color: var(--muted);
}

/* Ficha de Perfil Profesional en Navbar */
.nav-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  transition: border-color 0.25s var(--ease-apple), background-color 0.25s var(--ease-apple);
}

.nav-profile-chip:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.nav-profile-anchor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.nav-avatar-shell {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-presence-badge {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #050507;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.nav-profile-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-user-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
}

.nav-role-sub {
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.nav-logout-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s var(--ease-apple), background 0.2s var(--ease-apple);
}

.nav-logout-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   DOCK RETRÁCTIL IZQUIERDO OBSIDIANA (APPLE / LINEAR STYLE)
   ========================================================= */
.dock-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 4, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 120;
  display: flex;
  justify-content: flex-start;
  transition: opacity 0.3s var(--ease-apple);
}

.sidebar-dock {
  width: min(350px, 88vw);
  height: 100vh;
  background: #07080c;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.8), inset -1px 0 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 24px 20px 28px;
  overflow-y: auto;
  animation: appleDockSlideIn 0.36s var(--ease-apple) both;
}

@keyframes appleDockSlideIn {
  from {
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.dock-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.dock-close-btn {
  background: transparent;
  border: none;
  color: var(--silver);
  font-size: 1.15rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.dock-close-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Botón Destacado: Publicar Contenido */
.dock-cta-box {
  margin-bottom: 24px;
}

.btn-dock-publish {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #ececf0 100%);
  color: #050507;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
}

.btn-dock-publish:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.22);
}

.dock-icon-action {
  width: 18px;
  height: 18px;
}

.dock-cta-badge {
  font-size: 0.65rem;
  background: #050507;
  color: #ffffff;
  padding: 3px 6px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* Enlaces de Navegación del Dock */
.dock-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

/* Indicador dinámico vertical animado (El palito '|' que se desliza fluidamente) */
.dock-indicator-bar {
  position: absolute;
  left: 0;
  width: 2.5px;
  height: 22px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
  z-index: 5;
}

/* Fallback CSS puro mientras entra JS */
.dock-nav:not(.dock-has-js) .dock-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 22px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
}

.dock-group-title {
  font-size: 0.67rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  padding: 12px 10px 4px 14px;
}

/* Enlaces de Navegación del Dock (Completamente Limpios y Desencapsulados) */
.dock-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--silver);
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-nav-item:hover {
  background: transparent !important;
  border: none !important;
  color: var(--white);
  transform: translateX(3px);
}

.dock-nav-item.active {
  background: transparent !important;
  border: none !important;
  color: var(--white);
}

.dock-icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.dock-nav-item:hover .dock-icon,
.dock-nav-item.active .dock-icon {
  color: var(--white);
}

.dock-nav-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dock-nav-label {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
  color: inherit;
  transition: color 0.2s ease;
}

.dock-nav-item.active .dock-nav-label {
  font-weight: 600;
  color: var(--white);
}

.dock-nav-sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.dock-nav-item:hover .dock-nav-sub,
.dock-nav-item.active .dock-nav-sub {
  color: var(--silver);
}

/* Botón secundario "+ Crear Comunidad" */
.dock-nav-nested {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dock-subaction-btn {
  align-self: flex-start;
  margin-left: 42px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--silver);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dock-subaction-btn:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.dock-pill-badge {
  margin-left: auto;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Pie del Dock (Limpio, Sin Encapsulados) */
.dock-foot {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dock-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 4px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

.dock-profile-row:hover {
  opacity: 0.88;
}

.dock-avatar-shell {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.dock-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-surface);
}

.dock-profile-meta {
  min-width: 0;
  flex: 1;
}

.dock-profile-nameline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dock-user-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-handle {
  display: block;
  font-size: 0.73rem;
  color: var(--silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.dock-profile-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  flex-shrink: 0;
  padding: 4px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.dock-profile-row:hover .dock-profile-arrow {
  transform: translateX(4px);
  color: var(--white);
}

.dock-esc-hint {
  font-size: 0.68rem;
  color: var(--muted);
}

/* =========================================================
   SISTEMA DE INSIGNIAS JERÁRQUICAS: CREADOR, PRO Y PLUS
   ========================================================= */
.badge-core {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
  border-radius: 4px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.badge-core:hover {
  transform: translateY(-0.5px);
}

/* Insignia PRO */
.badge-pro,
.tier-pro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff6cc;
  padding: 3.5px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.65);
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.22) 0%,
    rgba(184, 134, 11, 0.12) 100%
  );
  box-shadow:
    0 2px 12px rgba(255, 215, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  vertical-align: middle;
  flex-shrink: 0;
}

.badge-pro svg,
.tier-pro svg {
  width: 8.5px;
  height: 8.5px;
  color: #ffd700;
}

/* Insignia PLUS */
.badge-plus,
.tier-plus {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #e0f2fe;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.18) 0%,
    rgba(2, 132, 199, 0.08) 100%
  );
  box-shadow:
    0 2px 10px rgba(56, 189, 248, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  vertical-align: middle;
  flex-shrink: 0;
}

.badge-plus svg,
.tier-plus svg {
  width: 8px;
  height: 8px;
  color: #38bdf8;
}

.badge-sm {
  font-size: 0.55rem !important;
  padding: 2px 5px !important;
  gap: 3.5px !important;
  letter-spacing: 0.08em !important;
}

.badge-sm svg {
  width: 7.5px !important;
  height: 7.5px !important;
}

.pro-avatar-ring {
  border-color: rgba(255, 215, 0, 0.8) !important;
  box-shadow: 0 0 0 2px #050507, 0 0 12px rgba(255, 215, 0, 0.35) !important;
}

.plus-avatar-ring {
  border-color: rgba(56, 189, 248, 0.7) !important;
  box-shadow: 0 0 0 2px #050507, 0 0 10px rgba(56, 189, 248, 0.25) !important;
}

/* =========================================================
   SOPORTE MULTIMEDIA: VIDEOS RESPONSIVOS Y FACADE OSCURA
   ========================================================= */
.video-responsive-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030305;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
}

.youtube-facade-dark {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-facade-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
  transition: background-color 0.25s ease;
}

.youtube-facade-dark:hover::before {
  background: rgba(0, 0, 0, 0.25);
}

.video-play-trigger-btn {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #050507;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.24s var(--ease-spring), background-color 0.2s ease;
}

.youtube-facade-dark:hover .video-play-trigger-btn {
  transform: scale(1.12);
  background: #ffffff;
}

.embedded-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.xuanii-dark-video {
  width: 100%;
  border-radius: 8px;
  background: #000000;
  border: 1px solid var(--line-dark);
}

/* =========================================================
   VENTANA DE CÓDIGO FUENTE (CODE SNIPPETS MACOS OSCURO)
   ========================================================= */
.xuanii-code-window {
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.code-window-dots .dot:nth-child(1) { background: #ff5f56; }
.code-window-dots .dot:nth-child(2) { background: #ffbd2e; }
.code-window-dots .dot:nth-child(3) { background: #27c93f; }

.code-title {
  font-size: 0.72rem;
  color: var(--silver);
  margin-left: 8px;
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-tag {
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.code-pre {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #e4e4e7;
  overflow-x: auto;
  white-space: pre;
}

/* =========================================================
   MÓDULO DE EMPLEO INTELIGENTE Y PANEL ESPEJO RECLUTADOR
   ========================================================= */
.employment-mode-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.emp-tab-btn {
  background: transparent;
  border: none;
  color: var(--silver);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.emp-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.recruiter-mirror-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recruiter-header-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.recruiter-search-bar {
  min-width: 280px;
  flex: 1;
  max-width: 440px;
}

.candidates-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.candidate-mirror-card {
  background: #090a0f;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s var(--ease-apple), transform 0.25s var(--ease-spring);
}

.candidate-mirror-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.candidate-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.candidate-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-dark);
}

.candidate-role {
  display: block;
  font-size: 0.82rem;
  color: var(--silver);
  margin-top: 2px;
}

.candidate-id {
  font-size: 0.72rem;
  color: var(--muted);
}

.candidate-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 8px;
}

.candidate-score-box .score-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.candidate-score-box .score-lbl {
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.candidate-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rep-badge-tag {
  font-size: 0.72rem;
  color: var(--silver-bright);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

.gh-verified-tag {
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
}

.candidate-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.candidate-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-dark);
}

/* Modal de Membresías y Planes */
.membership-modal-dialog {
  width: min(680px, 92vw);
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  position: relative;
}

.tiers-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tier-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-card-highlight {
  border-color: rgba(255, 215, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.tier-badge-floating {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #ffd700;
  color: #050507;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.tier-features-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--silver-bright);
}

.tier-features-list li::before {
  content: "✓ ";
  color: var(--white);
  font-weight: 700;
}

/* =========================================================
   ENDHA "PARA TI" — ARQUITECTURA SOCIAL MINIMALISTA
   Barra superior limpia, buscador directo, botón publicar y
   flujo social orgánico (Blanco y Negro puro - GEMINI.md)
   ========================================================= */

.foryou-top-section {
  padding: 24px 0 48px;
}

.foryou-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 28px;
}

.foryou-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 8px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.foryou-search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.foryou-search-box .foryou-search-icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex-shrink: 0;
}

.foryou-search-box .foryou-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 0.88rem;
  font-family: inherit;
}

.foryou-search-box .foryou-search-input::placeholder {
  color: var(--muted);
}

.foryou-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 16px;
  cursor: pointer;
}

.foryou-plus-glyph {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

/* Modal dedicado: Estudio de Publicación */
.foryou-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 5, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: foryouModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.foryou-modal-backdrop[hidden] {
  display: none !important;
}

@keyframes foryouModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.foryou-main {
  padding-top: 36px;
  padding-bottom: 72px;
}

.foryou-modal-dialog {
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  background: #0a0a0d;
  border: 1px solid var(--line-dark-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  border-radius: 6px;
  overflow-y: auto;
  animation: foryouModalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes foryouModalScaleIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.foryou-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line-dark);
}

.foryou-modal-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foryou-modal-badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.foryou-modal-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.01em;
}

.foryou-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.foryou-modal-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.foryou-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.foryou-modal-author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foryou-modal-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.foryou-modal-name {
  color: var(--white);
  font-size: 0.92rem;
}

.foryou-modal-handle {
  font-size: 0.76rem;
  color: var(--muted);
}

.foryou-modal-scope-pill {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  padding: 3px 9px;
  border-radius: 999px;
}

.foryou-modal-field {
  width: 100%;
}

.foryou-modal-title-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 11px 14px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.foryou-modal-title-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.035);
}

.foryou-modal-textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.foryou-modal-textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.035);
}

.foryou-modal-char-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.foryou-modal-hint {
  font-size: 0.74rem;
  color: var(--muted);
}

.foryou-char-counter {
  font-size: 0.72rem;
  color: var(--muted);
}

.studio-media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
}

.studio-media-toolbar-title {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.studio-media-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-media-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--silver-bright);
  font-family: inherit;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.studio-media-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.studio-media-btn.active {
  background: var(--white);
  color: #000000;
  border-color: var(--white);
  font-weight: 600;
}

.studio-section-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dark-strong);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: foryouModalFadeIn 0.2s ease both;
}

.studio-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-dark);
}

.studio-limit-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  color: var(--silver-bright);
  letter-spacing: 0.06em;
}

.studio-video-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-upload-box {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.studio-upload-box:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.studio-upload-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
}

.studio-or-divider {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  position: relative;
}

.studio-or-divider::before,
.studio-or-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36%;
  height: 1px;
  background: var(--line-dark);
}

.studio-or-divider::before {
  left: 0;
}

.studio-or-divider::after {
  right: 0;
}

.studio-media-preview-box {
  background: #000000;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.studio-preview-video {
  width: 100%;
  max-height: 260px;
  background: #000000;
  display: block;
}

.studio-preview-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.studio-media-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--line-dark);
}

.studio-duration-ok {
  font-size: 0.74rem;
  color: var(--silver-bright);
}

.studio-validation-error {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid #ffffff;
  color: var(--white);
  font-size: 0.76rem;
}

.foryou-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.foryou-modal-status {
  font-size: 0.76rem;
  color: var(--silver);
}

.foryou-modal-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-feed-follow {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.btn-feed-follow:hover {
  background: var(--white);
  color: #000000;
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-feed-follow.following {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 500;
}

.btn-feed-follow.following:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Animaciones líquidas estilo agua (Fluid Water Physics) */
.water-ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 55%, transparent 75%);
  animation: liquidWaterSpread 0.65s cubic-bezier(0, 0, 0.2, 1) forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes liquidWaterSpread {
  0% {
    transform: scale(0);
    opacity: 0.9;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes liquidWaterPop {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.88) translateY(1px);
  }
  55% {
    transform: scale(1.16) translateY(-2px);
  }
  75% {
    transform: scale(0.97) translateY(0.5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.fluid-water-pop {
  animation: liquidWaterPop 0.48s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.fluid-water-pop .reaction-icon {
  animation: liquidIconRipple 0.48s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes liquidIconRipple {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.32) rotate(-8deg);
  }
  70% {
    transform: scale(0.92) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.feed-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-post-options-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.feed-options-btn {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-options-btn:hover,
.feed-options-btn.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.06);
}

.feed-options-btn svg {
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-options-btn:hover svg {
  transform: scale(1.1);
}

.feed-options-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 230px;
  background: rgba(13, 13, 17, 0.92);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 8px;
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-8px) scale(0.92);
  filter: blur(4px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              filter 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.32s;
}

.feed-options-dropdown.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
  visibility: visible;
}

.feed-option-item {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
  text-align: left;
  padding: 8px 12px;
  color: var(--silver);
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-option-item svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.feed-option-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  transform: translateX(3px);
}

.feed-option-item:hover svg {
  opacity: 1;
  transform: scale(1.14);
}

.feed-option-item.danger {
  color: #f87171;
}

.feed-option-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.feed-options-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 6px;
}

.hashtag-link {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: text-decoration-color 0.15s ease, opacity 0.15s ease;
}

.hashtag-link:hover {
  text-decoration-color: var(--white);
  opacity: 0.85;
}

.foryou-search-line {
  transition: border-color 0.15s ease;
}

.foryou-search-line:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
}

.post-reaction-btn {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  color: var(--silver);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.post-reaction-btn .reaction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.post-reaction-btn .reaction-count {
  font-weight: 700;
  color: var(--white);
  font-size: 0.8rem;
}

.post-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.post-reaction-btn:hover .reaction-icon {
  transform: scale(1.15);
}

.post-reaction-btn.active-like,
.post-reaction-btn.active-dislike,
.post-reaction-btn.active-save {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  font-weight: 600;
}

.conduct-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.conduct-pill.score-good {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.conduct-pill.score-warn {
  background: rgba(241, 196, 15, 0.1);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.25);
}

.conduct-pill.score-bad {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.25);
}

.moderation-comment-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dark);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.moderation-comment-card .comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.moderation-comment-card .comment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}


