/* =====================================================================
   Escena Adentro — sistema de diseño
   Paleta cálida "tierra y telón" con modo oscuro. Todo color sale de los
   tokens de :root; el modo oscuro solo redefine tokens.
   ===================================================================== */

/* ====== Tokens ====== */
:root {
  --bg: #f6f1e6;
  --bg-soft: #ede3d1;
  --surface: #fffdf9;
  --surface-2: #f3ecdf;
  --ink: #1b1714;
  --ink-soft: #5c5347;
  --muted: #6b6154;
  --primary: #c1462d;
  --primary-text: #a93b24; /* terracota para texto chico: contraste ≥ 4.5:1 sobre los cremas */
  --primary-btn: #c1462d; /* fondo de botones con texto blanco (5:1) */
  --primary-hover: #a53a24;
  --primary-soft: rgba(193, 70, 45, 0.1);
  --accent: #e2a33d;
  --border: rgba(27, 23, 20, 0.1);
  --border-strong: rgba(27, 23, 20, 0.22);
  --dark: #17130f;
  --on-primary: #fff;

  --success: #276a3f;
  --success-soft: rgba(47, 122, 74, 0.12);
  --warning: #a8670f;
  --warning-soft: rgba(226, 163, 61, 0.18);
  --danger: #b3261e;
  --danger-soft: rgba(179, 38, 30, 0.1);
  --info: #2d5f8a;
  --info-soft: rgba(45, 95, 138, 0.1);

  --header-bg: rgba(246, 241, 230, 0.78);
  --overlay: rgba(23, 19, 15, 0.55);

  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(27, 23, 20, 0.06);
  --shadow: 0 18px 40px -12px rgba(27, 23, 20, 0.18);
  --shadow-lg: 0 30px 60px -18px rgba(27, 23, 20, 0.3);
  --ring: 0 0 0 3px rgba(193, 70, 45, 0.25);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --container-w: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110e;
    --bg-soft: #1c1814;
    --surface: #1f1b17;
    --surface-2: #29231d;
    --ink: #f3ebdf;
    --ink-soft: #c2b6a6;
    --muted: #a39886;
    --primary: #e2674b;
    --primary-text: #ec7a5f;
    --primary-btn: #c4492f;
    --primary-hover: #ec7c62;
    --primary-soft: rgba(226, 103, 75, 0.14);
    --border: rgba(255, 244, 230, 0.1);
    --border-strong: rgba(255, 244, 230, 0.22);
    --dark: #0d0b09;
    --success: #5cb87c;
    --success-soft: rgba(92, 184, 124, 0.14);
    --warning: #e8b35a;
    --warning-soft: rgba(232, 179, 90, 0.14);
    --danger: #f07167;
    --danger-soft: rgba(240, 113, 103, 0.14);
    --info: #7fb2de;
    --info-soft: rgba(127, 178, 222, 0.14);
    --header-bg: rgba(20, 17, 14, 0.75);
    --overlay: rgba(0, 0, 0, 0.65);
    --shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110e;
  --bg-soft: #1c1814;
  --surface: #1f1b17;
  --surface-2: #29231d;
  --ink: #f3ebdf;
  --ink-soft: #c2b6a6;
  --muted: #a39886;
  --primary: #e2674b;
  --primary-text: #ec7a5f;
  --primary-btn: #c4492f;
  --primary-hover: #ec7c62;
  --primary-soft: rgba(226, 103, 75, 0.14);
  --border: rgba(255, 244, 230, 0.1);
  --border-strong: rgba(255, 244, 230, 0.22);
  --dark: #0d0b09;
  --success: #5cb87c;
  --success-soft: rgba(92, 184, 124, 0.14);
  --warning: #e8b35a;
  --warning-soft: rgba(232, 179, 90, 0.14);
  --danger: #f07167;
  --danger-soft: rgba(240, 113, 103, 0.14);
  --info: #7fb2de;
  --info-soft: rgba(127, 178, 222, 0.14);
  --header-bg: rgba(20, 17, 14, 0.75);
  --overlay: rgba(0, 0, 0, 0.65);
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ====== Base ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p { margin: 0 0 1em; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
[hidden] { display: none !important; }

.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 24px; height: 24px; }

/* Transición entre páginas */
.page-fade { position: fixed; inset: 0; z-index: 9999; background: var(--bg); pointer-events: none; transition: opacity 0.22s ease; }
.page-fade.is-hidden { opacity: 0; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ====== Botones ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn.is-loading { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary-btn); color: var(--on-primary); box-shadow: 0 8px 20px -8px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 12px 24px -8px var(--primary); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--primary-btn); color: var(--on-primary); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.08); }
.btn-soft-danger { background: var(--danger-soft); color: var(--danger); }
.btn-soft-danger:hover { background: var(--danger); color: #fff; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); color: var(--ink);
  cursor: pointer; flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(0.94); }

/* ====== Pequeñas piezas tipográficas ====== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 700; color: var(--primary-text);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.eyebrow.no-line::before { display: none; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; }
.muted { color: var(--muted); }
.italic-caption { font-family: var(--font-display); font-style: italic; font-weight: 500; line-height: 1.3; }
.tag-list { display: flex; flex-direction: column; gap: 5px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); }
.tag-list.row { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.tag-list .dash { color: var(--primary-text); }
.tag-list.on-dark { color: rgba(255, 255, 255, 0.75); }
.kbd { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid transparent; border-radius: 999px;
  padding: 6px 13px; font-size: 0.82rem; font-weight: 600;
}
.chip-btn, .chip-link { cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.chip-btn:hover, .chip-link:hover { border-color: var(--primary-text); color: var(--primary-text); }

/* Píldora de estado (borrador / en revisión / publicado / con observaciones) */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink-soft);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-success { background: var(--success-soft); color: var(--success); }
.status-warning { background: var(--warning-soft); color: var(--warning); }
.status-danger { background: var(--danger-soft); color: var(--danger); }
.status-info { background: var(--info-soft); color: var(--info); }
.status-warning::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ====== Header ====== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  min-height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -16px rgba(0, 0, 0, 0.35); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

/* Logotipo (kit de marca): símbolo + "Escena Adentro", con "Adentro" en itálica
   del mismo color. El símbolo no se deforma ni lleva sombras ni brillos. */
.logo-block { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.logo-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.logo { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.logo em { font-style: italic; color: inherit; }
.logo-simbolo { flex: none; height: 40px; width: auto; }
.logo-arco { fill: #C1462D; }
.logo-interior { fill: #F6F1E7; }
.logo-luz { fill: #E8A33D; }
.logo-piso { fill: #E8A33D; opacity: 0.45; }
/* Animación de entrada del símbolo en el inicio (la misma del video): el arco
   se dibuja en tres franjas, como un arcoíris, que se funden en el terracota;
   después la bola de luz cae, rebota hasta su lugar y se enciende.
   Sin animación (reducir movimiento) el símbolo se ve quieto, completo. */
.logo-simbolo.is-animado { overflow: visible; }
.logo-halo { fill: #E8A33D; opacity: 0; transform-box: fill-box; transform-origin: center; }
.logo-franjas { opacity: 0; }
.logo-bola { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .is-animado .logo-franjas { opacity: 1; animation: logoFundir 0.45s ease 1.55s both; }
  .is-animado .logo-franjas path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: logoTrazo 1.1s cubic-bezier(0.65, 0, 0.35, 1) both; }
  .is-animado .logo-franjas path:nth-child(1) { animation-delay: 0.2s; }
  .is-animado .logo-franjas path:nth-child(2) { animation-delay: 0.35s; }
  .is-animado .logo-franjas path:nth-child(3) { animation-delay: 0.5s; }
  .is-animado .logo-arco { animation: logoAparece 0.45s ease 1.55s both; }
  .is-animado .logo-interior { animation: logoAparece 0.5s ease 1.3s both; }
  .is-animado .logo-bola { animation: logoRebote 1.3s linear 1.75s both; }
  .is-animado .logo-halo { animation: logoHalo 0.65s ease-out 3.05s forwards; }
  .is-animado .logo-piso { animation: logoPiso 0.45s ease 3.05s both; }
}
@keyframes logoTrazo { to { stroke-dashoffset: 0; } }
@keyframes logoFundir { to { opacity: 0; } }
@keyframes logoAparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes logoPiso { from { opacity: 0; } to { opacity: 0.45; } }
@keyframes logoHalo { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
/* Caída con rebotes (easeOutBounce): la bola entra desde arriba y queda en su lugar. */
@keyframes logoRebote {
  0% { transform: translateY(-65px); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  36.4% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  54.5% { transform: translateY(-16px); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  72.7% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  81.8% { transform: translateY(-4px); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  90.9% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  95.5% { transform: translateY(-1px); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  100% { transform: translateY(0); }
}
.logo-pie { display: inline-flex; align-items: center; gap: 10px; }
.logo-pie .logo-simbolo { height: 36px; }
.logo-tag { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Animación "soldadura" del logo (solo en inicio) */
.weld-word { position: relative; display: inline-block; }
.weld-letter { display: inline-block; }
.weld-spark, .weld-particle { position: absolute; top: 55%; border-radius: 50%; pointer-events: none; opacity: 0; }
.weld-spark { left: 0; width: 9px; height: 9px; background: radial-gradient(circle, #fff 0%, #ffd27a 40%, rgba(255, 138, 0, 0.65) 68%, transparent 76%); transform: translate(-50%, -50%); }
.weld-particle { left: 0; width: 3px; height: 3px; background: #ffd27a; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: no-preference) {
  .weld-letter { color: transparent; animation: weldReveal 0.4s ease forwards; animation-delay: calc(var(--i) * 0.1s + 0.15s); }
  .weld-spark { animation: weldTravel 0.85s linear forwards; animation-delay: 0.15s; }
  .weld-particle { animation: weldSpark 0.42s ease-out forwards; animation-delay: calc(var(--pi) * 0.2s + 0.22s); }
}
@keyframes weldReveal {
  0% { color: transparent; text-shadow: none; }
  25% { color: #fff8e8; text-shadow: 0 0 8px #fff, 0 0 16px #ffd27a, 0 0 26px #ff8a00; }
  75% { color: var(--ink); text-shadow: 0 0 8px rgba(193, 70, 45, 0.5); }
  100% { color: var(--ink); text-shadow: none; }
}
@keyframes weldTravel { 0% { left: 0%; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes weldSpark {
  0% { left: calc(var(--pi) * 24% + 4%); top: 55%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { left: calc(var(--pi) * 24% + 8%); top: 15%; opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}

.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.site-nav > ul > li > a,
.site-nav .dropdown-toggle {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; color: var(--ink-soft);
  background: none; border: 0; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav > ul > li > a:hover, .site-nav .dropdown-toggle:hover { color: var(--ink); background: var(--surface-2); }
.site-nav > ul > li > a.active, .site-nav .dropdown-toggle.active { color: var(--primary-text); }
.site-nav > ul > li > a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary); transform: translateX(-50%);
}
.nav-mobile-extra { display: none; }

.has-dropdown { position: relative; }
.dropdown-toggle .icon { transition: transform 0.25s var(--ease); }
.has-dropdown.open .dropdown-toggle .icon { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 250px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
}
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a, .dropdown-soon {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 500;
}
.dropdown a:hover { background: var(--primary-soft); color: var(--primary-text); }
.dropdown-soon { color: var(--muted); cursor: default; }
.dropdown-label { padding: 8px 12px 4px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-text); }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 8px; }
.mini-tag { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 2px 7px; border-radius: 999px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.auth-slot { display: flex; align-items: center; gap: 6px; min-width: 120px; justify-content: flex-end; }
.auth-skeleton { width: 120px; height: 36px; border-radius: 999px; background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }

/* Tema: muestra la luna o el sol según corresponda */
#themeToggle .icon-sun { display: none; }
:root[data-theme="dark"] #themeToggle .icon-sun { display: block; }
:root[data-theme="dark"] #themeToggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeToggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) #themeToggle .icon-moon { display: none; }
}

/* Menú de usuario */
.user-menu { position: relative; }
.avatar-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  font-weight: 600; font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.avatar-btn:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.avatar-btn.has-dot::after { content: ""; position: absolute; top: 2px; left: 28px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; flex-shrink: 0;
}
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; z-index: 70;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px;
  animation: menuIn 0.22s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.menu-head { display: flex; flex-direction: column; padding: 8px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head span { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font-size: 0.9rem; font-weight: 500; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu #logoutBtn { color: var(--danger); }
.menu-badge { margin-left: auto; background: var(--primary-btn); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== Buscador ====== */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-box {
  width: 100%; max-width: 640px; max-height: 70vh;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(-12px) scale(0.98); transition: transform 0.3s var(--ease);
}
.search-overlay.open .search-box { transform: none; }
.search-box-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.search-box-icon { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }
.search-box-top input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 1.08rem var(--font-body); }
.search-box-top input::-webkit-search-cancel-button { display: none; }
.search-close { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search-close .icon { width: 14px; height: 14px; }
.search-results { overflow-y: auto; padding: 8px; }
.search-empty { padding: 14px 10px 18px; }
.search-hint { color: var(--muted); font-size: 0.92rem; padding: 26px 14px; text-align: center; margin: 0; }
.search-hint-sm { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 4px 10px 10px; }
.search-result { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; transition: background-color 0.15s ease; }
.search-result:hover, .search-result.is-active { background: var(--surface-2); }
.search-result img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.search-result-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search-result-name { font-weight: 700; }
.search-result-name mark { background: var(--primary-soft); color: var(--primary-text); border-radius: 3px; padding: 0 1px; }
.search-result-role { font-size: 0.84rem; color: var(--muted); }
.search-result-go { color: var(--muted); opacity: 0; transform: translateX(-4px); transition: all 0.2s var(--ease); }
.search-result:hover .search-result-go, .search-result.is-active .search-result-go { opacity: 1; transform: none; color: var(--primary-text); }

/* ====== Toasts ====== */
.toasts { position: fixed; z-index: 400; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-lg); font-weight: 500; font-size: 0.92rem;
  opacity: 0; transform: translateY(16px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast .icon { width: 18px; height: 18px; }
.toast-success .icon { color: #7ed69b; }
.toast-error .icon { color: #ff9a8f; }
.toast-warning .icon { color: var(--accent); }

/* ====== Modal ====== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: var(--overlay); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; transition: opacity 0.2s ease;
}
.modal-overlay.show { opacity: 1; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.97); transition: transform 0.3s var(--ease);
}
.modal-overlay.show .modal { transform: none; }
.modal h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal-text { color: var(--ink-soft); }
.modal textarea { margin-top: 10px; }
.modal-suggestions { margin-top: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.demo-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; color: var(--accent); border: 1px dashed rgba(226, 163, 61, 0.5); border-radius: 999px; padding: 3px 10px; }

/* ====== Secciones genéricas ====== */
section { padding: 96px 0; }
section.alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head p { color: var(--ink-soft); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head-row .section-head { margin: 0; }

/* ====== Hero ====== */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(226, 163, 61, 0.28), transparent 62%);
  filter: blur(10px);
}
.hero-glow.two { top: auto; bottom: -320px; left: -260px; right: auto; background: radial-gradient(circle, rgba(193, 70, 45, 0.18), transparent 60%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: drift 16s ease-in-out infinite alternate; }
  .hero-glow.two { animation-duration: 20s; }
}
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.08); } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 22px; }
.hero-title .accent { color: var(--primary-text); font-style: italic; }
.mq-word { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .mq-word { opacity: 0; filter: blur(4px); transform: translateY(10px); animation: marqueeLight 0.55s var(--ease) forwards; animation-delay: calc(var(--i) * 0.08s + 0.35s); }
}
@keyframes marqueeLight {
  0% { opacity: 0; filter: blur(4px); transform: translateY(10px); }
  45% { opacity: 1; filter: blur(0); transform: none; text-shadow: 0 0 22px rgba(226, 163, 61, 0.8); }
  100% { opacity: 1; filter: blur(0); transform: none; text-shadow: none; }
}
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; margin-bottom: 4px; }
.hero-stat span { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

.hero-visual { position: relative; }
.hero-arch {
  position: relative; aspect-ratio: 4 / 5; max-width: 470px; margin-left: auto;
  border-radius: 999px 999px 28px 28px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--border); outline-offset: 10px;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero-visual:hover .hero-arch img { transform: scale(1.08); }
.hero-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17, 14, 11, 0.55)); }
.hero-arch-caption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; font-size: 1.15rem; }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 0.85rem; max-width: 260px;
}
.float-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.float-card strong { display: block; font-size: 0.9rem; line-height: 1.2; }
.float-card small { color: var(--muted); }
.float-card.one { left: -34px; top: 18%; }
.float-card.two { right: -18px; bottom: 16%; }
.float-card .dot-live { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: bob 6s ease-in-out infinite; }
  .float-card.two { animation-delay: -3s; }
}
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Cinta de disciplinas que se desplaza */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--ink-soft); white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 0.9rem; color: var(--primary-text); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ====== Sobre el proyecto ====== */
.about-grid { display: grid; grid-template-columns: 300px 1fr 200px; gap: 48px; align-items: center; }
.about-photo { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 40%, rgba(0, 0, 0, 0.45)); }
.about-photo-caption { position: absolute; z-index: 1; left: 20px; right: 20px; top: 22px; color: #fff; font-size: 1.2rem; }
.about-photo-note { position: absolute; z-index: 1; left: 20px; bottom: 18px; }
.about-text p { color: var(--ink-soft); }
.about-side { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.about-side-photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); outline: 1px solid var(--border); outline-offset: 6px; }
.about-side-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ====== Categorías ====== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-card {
  position: relative; grid-column: span 2; aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden; color: #fff;
  box-shadow: var(--shadow); isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
/* Fondo de respaldo si la foto no carga (las tarjetas con tono-* tienen el suyo). */
.cat-card { background: linear-gradient(135deg, #4a3d33, #1d1814); }
.cat-card.featured { grid-column: span 3; aspect-ratio: auto; min-height: 380px; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 19, 15, 0.1) 30%, rgba(23, 19, 15, 0.9) 100%); }
.cat-card.soon img { filter: grayscale(0.6); }
.cat-card.no-img::after { background: linear-gradient(180deg, rgba(23, 19, 15, 0) 30%, rgba(23, 19, 15, 0.55) 100%); }
.cat-card.tono-tierra { background: radial-gradient(circle at 80% 15%, #d98a4e 0%, transparent 55%), linear-gradient(135deg, #a8452c, #5e2a1b); }
.cat-card.tono-tinta { background: radial-gradient(circle at 75% 20%, #4f7a73 0%, transparent 55%), linear-gradient(135deg, #24423e, #121f1d); }
.cat-card.tono-noche { background: radial-gradient(circle at 20% 15%, #6d5a8f 0%, transparent 55%), linear-gradient(135deg, #2e2747, #15121f); }
.cat-card-body { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; }
.cat-card-icon { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.6); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.08); }
.cat-card-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; }
.cat-card-soon { position: absolute; top: 22px; right: 22px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.cat-card-title { margin-top: auto; font-size: 1.35rem; margin-bottom: 6px; }
.cat-card.featured .cat-card-title { font-size: 2rem; }
.cat-card-desc { font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 16px; max-width: 40ch; }
.cat-card-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cat-card-subs span { font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); }
.cat-card-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.7); display: flex; align-items: center; justify-content: center; transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ease); }
.cat-card-arrow svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.8; }
.cat-card:hover .cat-card-arrow { background: var(--primary); border-color: var(--primary-text); transform: translateX(4px); }

/* ====== Carrusel de artistas destacados ====== */
.carousel-wrap { position: relative; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px;
  padding: 6px 24px 24px; margin: 0 -24px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; }

/* ====== Cómo funciona ====== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step {
  position: relative; padding: 30px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.step-num {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-text);
}
.step-num .icon { width: 22px; height: 22px; }
.step::after { counter-increment: step; content: "0" counter(step); position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--border-strong); opacity: 0.6; line-height: 1; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ====== CTA ====== */
.cta { position: relative; padding: 0; overflow: hidden; isolation: isolate; }
.cta-photo { position: absolute; inset: 0; z-index: -1; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(17, 14, 11, 0.94) 0%, rgba(17, 14, 11, 0.75) 50%, rgba(17, 14, 11, 0.35) 100%); }
.cta-inner { padding: 96px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; color: #fff; }
.cta-inner h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.cta-inner p { color: rgba(255, 255, 255, 0.8); margin: 0 0 26px; max-width: 44ch; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta .btn-outline:hover { background: #fff; color: #17130f; border-color: #fff; }

/* ====== Footer ====== */
.site-footer { background: var(--dark); color: #cfc5ba; padding: 64px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr auto; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; font-size: 1.5rem; }
.footer-note { font-size: 0.9rem; max-width: 34ch; color: #a99f94; margin: 10px 0 18px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-col h4, .footer-col .footer-titulo { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.footer-col a { color: #a99f94; transition: color 0.2s ease; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; color: #fff; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease); }
.footer-social a:hover { background: var(--primary); border-color: var(--primary-text); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; font-size: 0.8rem; color: #8f8579; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ====== Tarjeta de artista ====== */
.artist-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.artist-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
/* "luz de escenario" que sigue al cursor (ver initSpotlight en main.js) */
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(226, 163, 61, 0.14), transparent 45%);
  transition: opacity 0.3s ease;
}
.spotlight:hover::before { opacity: 1; }
.artist-card .photo-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.artist-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.artist-card:hover .photo-wrap img { transform: scale(1.06); }
.artist-card .photo-wrap::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.35)); }
.badge { position: absolute; z-index: 1; top: 12px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge-ejemplo { left: 12px; background: rgba(23, 19, 15, 0.7); color: #fff; }
.badge-disponible { right: 12px; background: rgba(47, 122, 74, 0.9); color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.badge-disponible::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b8f5c9; }
.badge-disponible.no { background: rgba(120, 90, 60, 0.85); }
.badge-disponible.no::before { background: #f3d3a8; }
.artist-card .info { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.artist-card h3 { font-size: 1.18rem; margin-bottom: 2px; }
.artist-card .rol { color: var(--primary-text); font-weight: 600; font-size: 0.84rem; margin-bottom: 10px; }
.artist-card .bio-corta { color: var(--ink-soft); font-size: 0.88rem; flex: 1; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.artist-card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.artist-card .card-tags span { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); padding: 3px 9px; border-radius: 999px; }
.artist-card .ver-perfil { font-weight: 700; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.artist-card .ver-perfil .icon { transition: transform 0.3s var(--ease); }
.artist-card:hover .ver-perfil { color: var(--primary-text); }
.artist-card:hover .ver-perfil .icon { transform: translateX(4px); }
.artist-card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* ====== Encabezado de páginas internas ====== */
.page-hero { position: relative; padding: 48px 0 36px; overflow: hidden; }
.page-hero .hero-glow { width: 520px; height: 520px; top: -300px; right: -120px; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--ink-soft); max-width: 62ch; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary-text); }
.breadcrumb .sep { opacity: 0.5; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-soft); font-size: 0.9rem; }
.back-link:hover { color: var(--primary-text); }
.back-link .icon { transform: rotate(180deg); }

/* ====== Listado: barra de filtros ====== */
.toolbar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px; margin-bottom: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.segmented { position: relative; display: flex; gap: 2px; padding: 4px; background: var(--surface-2); border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a, .segmented button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  transition: color 0.25s ease;
}
.segmented a:hover, .segmented button:hover { color: var(--ink); }
.segmented .is-active { color: var(--bg); }
.segmented .count { font-size: 0.72rem; font-weight: 700; opacity: 0.7; }
.segmented-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ink); transition: transform 0.4s var(--ease), width 0.4s var(--ease); }
.toolbar-search { position: relative; flex: 1; min-width: 200px; }
.toolbar-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar-search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 500 0.92rem var(--font-body); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.toolbar-search input:focus { outline: 0; border-color: var(--primary-text); box-shadow: var(--ring); }
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; font-size: 0.88rem; color: var(--muted); }
.results-meta strong { color: var(--ink); }

/* Interruptor */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); user-select: none; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--border-strong); transition: background-color 0.25s ease; flex-shrink: 0; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--ease); }
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); }
.switch-sm { margin-top: 10px; font-size: 0.8rem; }

/* Campo trampa anti-bots: fuera de la pantalla, no oculto con display:none
   (algunos bots ignoran los campos que no se renderizan). */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 24px; }

/* Esqueletos de carga */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--bg-soft) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton-card { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.skeleton-card .skeleton-img { aspect-ratio: 1; border-radius: 0; }
.skeleton-card .skeleton-lines { padding: 18px 20px 22px; display: grid; gap: 10px; }
.skeleton-line { height: 12px; }
.skeleton-line.w60 { width: 60%; height: 18px; }
.skeleton-line.w40 { width: 40%; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 64px 20px; color: var(--ink-soft); border: 1.5px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state .empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); display: flex; align-items: center; justify-content: center; }
.empty-state h3 { color: var(--ink); font-size: 1.25rem; }
.empty-state .btn { margin-top: 8px; }

/* ====== Perfil público ====== */
.perfil-cover { position: relative; height: 260px; overflow: hidden; background: var(--bg-soft); }
.perfil-cover img { width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.3); transform: scale(1.3); opacity: 0.75; }
.perfil-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg)); }
.perfil-top { position: relative; margin-top: -170px; z-index: 1; }
.perfil-hero {
  display: grid; grid-template-columns: 240px 1fr auto; gap: 36px; align-items: end;
  padding: 28px; border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.perfil-foto { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-top: -70px; background: var(--surface-2); }
.perfil-foto img { width: 100%; height: 100%; object-fit: cover; }
.perfil-info .rol { color: var(--primary-text); font-weight: 700; margin-bottom: 4px; font-size: 0.95rem; }
.perfil-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.perfil-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--ink-soft); font-size: 0.9rem; }
.perfil-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.perfil-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.86rem; font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}
.contact-links a:hover { background: var(--primary-btn); color: var(--on-primary); border-color: var(--primary-text); transform: translateY(-2px); }

.owner-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 18px; border-radius: 18px;
  background: var(--info-soft); color: var(--ink); border: 1px solid var(--border);
  font-size: 0.92rem;
}
.owner-bar > div { display: flex; align-items: center; gap: 10px; }
.owner-bar .icon { color: var(--info); }

.perfil-body { margin-top: 32px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.perfil-col { display: grid; gap: 20px; }
.perfil-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.perfil-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 16px; }
.perfil-section h2 .icon { color: var(--primary-text); }
.perfil-section p { color: var(--ink-soft); margin: 0; white-space: pre-line; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--primary); background: var(--surface); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: -12px; width: 1.5px; background: var(--border-strong); }
.ficha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ficha-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.ficha-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ficha-value { font-weight: 700; font-size: 1rem; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 20px); }

/* ====== Formularios ====== */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label, .field-label { font-size: 0.86rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field .opt { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"],
.field input[type="number"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font: 500 0.95rem var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea, textarea.input { resize: vertical; min-height: 110px; line-height: 1.55; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--primary-text); box-shadow: var(--ring); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field-hint { font-size: 0.8rem; color: var(--muted); margin: 0; }
.field-error { font-size: 0.8rem; color: var(--danger); margin: 0; display: none; }
.field.has-error .field-error { display: block; }
.char-count { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.char-count.over { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }

.input-group { position: relative; }
.input-group input { padding-right: 46px; }
.input-group .reveal-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.input-group .reveal-pass:hover { color: var(--ink); background: var(--surface-2); }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.strength span { height: 4px; border-radius: 4px; background: var(--border); transition: background-color 0.3s ease; }
.strength[data-level="1"] span:nth-child(-n + 1) { background: var(--danger); }
.strength[data-level="2"] span:nth-child(-n + 2) { background: var(--warning); }
.strength[data-level="3"] span:nth-child(-n + 3) { background: var(--success); }
.strength[data-level="4"] span { background: var(--success); }

/* Lista de ítems (habilidades, trayectoria...) tipo "tags" editables */
.tag-input { display: flex; gap: 8px; }
.tag-input input { flex: 1; }
.tag-items { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-items.stacked { flex-direction: column; flex-wrap: nowrap; }
.tag-items li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.86rem; font-weight: 500;
  animation: popIn 0.3s var(--ease);
}
.tag-items.stacked li { border-radius: 12px; justify-content: space-between; padding: 8px 8px 8px 14px; }
.tag-items li button { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tag-items li button:hover { background: var(--danger-soft); color: var(--danger); }
.tag-items li button .icon { width: 13px; height: 13px; }
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } }

/* Subida de foto */
.photo-drop {
  display: flex; align-items: center; gap: 20px;
  padding: 16px; border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-strong); background: var(--surface-2);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.photo-drop.is-drag { border-color: var(--primary-text); background: var(--primary-soft); }
.photo-drop.has-error { border-color: var(--danger); }
.photo-drop-img { position: relative; width: 104px; height: 104px; border-radius: 20px; overflow: hidden; flex-shrink: 0; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--font-display); font-size: 2rem; }
.photo-drop-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop-img.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35) center / 28px no-repeat; }
.photo-drop-img .spinner { position: absolute; z-index: 1; width: 28px; height: 28px; border: 3px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.photo-drop-text p { margin: 0 0 8px; font-size: 0.86rem; color: var(--ink-soft); }
.photo-drop-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.check-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--primary-text); }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card .icon { color: var(--muted); }
.choice-card strong { display: block; font-size: 0.92rem; }
.choice-card small { color: var(--muted); font-size: 0.78rem; }
.choice-card:has(input:checked) { border-color: var(--primary-text); background: var(--primary-soft); }
.choice-card:has(input:checked) .icon { color: var(--primary-text); }
.choice-card:has(input:focus-visible) { box-shadow: var(--ring); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 0.9rem; margin-bottom: 18px; }
.alert .icon { margin-top: 2px; }
.alert p { margin: 0; }
.alert strong { display: block; margin-bottom: 2px; }
.alert-info { background: var(--info-soft); color: var(--ink); }
.alert-info .icon { color: var(--info); }
.alert-error { background: var(--danger-soft); color: var(--ink); }
.alert-error .icon { color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--ink); }
.alert-success .icon { color: var(--success); }
.alert-warning { background: var(--warning-soft); color: var(--ink); }
.alert-warning .icon { color: var(--warning); }

/* ====== Ingresar / Crear cuenta ====== */
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-visual { position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 48px; isolation: isolate; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 14, 11, 0.15), rgba(17, 14, 11, 0.88)); }
.auth-visual h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 16ch; }
.auth-visual ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.auth-visual li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.88); }
.auth-visual li .icon { color: var(--accent); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card > p { color: var(--ink-soft); margin-bottom: 24px; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 26px; background: var(--surface-2); border-radius: 999px; }
.auth-tabs button { position: relative; z-index: 1; padding: 10px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); transition: color 0.3s ease; }
.auth-tabs button[aria-selected="true"] { color: var(--ink); }
.auth-tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease); }
.auth-tabs[data-active="registro"]::before { transform: translateX(100%); }
.auth-form { animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.auth-foot { margin-top: 18px; font-size: 0.88rem; color: var(--muted); text-align: center; }
.auth-foot button, .link-btn { background: none; border: 0; padding: 0; color: var(--primary-text); font-weight: 600; cursor: pointer; }
.auth-foot button:hover, .link-btn:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 0.8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.success-state { text-align: center; padding: 20px 0; animation: fadeUp 0.4s var(--ease); }
.success-state .big-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--success-soft); color: var(--success); }
.success-state .big-icon .icon { width: 32px; height: 32px; }

/* ====== Mi perfil (panel del usuario) ====== */
.dash { padding: 36px 0 120px; }
.dash-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 24px; }
.dash-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 4px; }
.dash-head p { color: var(--ink-soft); margin: 0; }

.status-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 24px; }
.ring { --p: 0; position: relative; width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--surface-2) 0); display: flex; align-items: center; justify-content: center; transition: --p 0.6s var(--ease); }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.status-card h2 { font-size: 1.15rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.status-card .missing { margin-top: 6px; font-size: 0.82rem; color: var(--muted); }

.stepper { display: flex; align-items: center; gap: 0; list-style: none; padding: 0; margin: 14px 0 0; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.stepper li:not(:last-child)::after { content: ""; width: 34px; height: 2px; margin: 0 10px; background: var(--border-strong); border-radius: 2px; }
.stepper .dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-size: 0.72rem; }
.stepper .dot .icon { width: 12px; height: 12px; stroke-width: 3; }
.stepper li.done { color: var(--success); }
.stepper li.done .dot { background: var(--success); color: #fff; }
.stepper li.done:not(:last-child)::after { background: var(--success); }
.stepper li.current { color: var(--ink); }
.stepper li.current .dot { background: var(--primary-btn); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }

.dash-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.dash-nav { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 2px; }
.dash-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: left;
  font-weight: 600; font-size: 0.92rem; color: var(--ink-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dash-nav button:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav button[aria-selected="true"] { background: var(--surface); color: var(--primary-text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.dash-nav .tab-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: none; align-items: center; justify-content: center; }
.dash-nav .tab-check .icon { width: 11px; height: 11px; stroke-width: 3; }
.dash-nav button.is-complete .tab-check { display: flex; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-card + .form-card { margin-top: 20px; }
.form-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.form-card > .form-desc { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 24px; }
.tab-panel { animation: fadeUp 0.35s var(--ease); }
.fieldset-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 14px; padding-top: 20px; border-top: 1px solid var(--border); }

.preview-col { position: sticky; top: calc(var(--header-h) + 20px); }
.preview-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.preview-col .artist-card { pointer-events: none; }
.preview-col .artist-card:hover { transform: none; box-shadow: none; }
.tips { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); font-size: 0.84rem; color: var(--ink-soft); }
.tips strong { color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tips ul { margin: 0; padding-left: 18px; }

.save-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(-50%); max-width: calc(100vw - 24px);
}
.save-state { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.save-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.save-state.dirty { color: var(--warning); }
.save-state.dirty::before { background: var(--warning); animation: pulse 1.4s ease-in-out infinite; }

/* ====== Panel de moderación (admin) ====== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px 22px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); cursor: pointer; text-align: left; transition: border-color 0.2s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card[aria-pressed="true"] { border-color: var(--primary-text); box-shadow: var(--ring); }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.stat-card .stat-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1.1; margin-top: 8px; }
.tone-warning .stat-icon { background: var(--warning-soft); color: var(--warning); }
.tone-success .stat-icon { background: var(--success-soft); color: var(--success); }
.tone-danger .stat-icon { background: var(--danger-soft); color: var(--danger); }
.tone-neutral .stat-icon { background: var(--surface-2); color: var(--ink-soft); }

.req-list { display: grid; gap: 12px; }
.req {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
  padding: 14px 18px 14px 14px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s ease;
  animation: fadeUp 0.35s var(--ease) both;
}
.req:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.req img, .req .req-ph { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--surface-2); }
.req-main { min-width: 0; }
.req-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; font-size: 1.02rem; }
.req-sub { font-size: 0.86rem; color: var(--ink-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 0.78rem; color: var(--muted); }
.req-meta span { display: inline-flex; align-items: center; gap: 5px; }
.req-meta .icon { width: 13px; height: 13px; }
.req-actions { display: flex; gap: 8px; }
.req.mensaje-nuevo { border-color: var(--primary-text); background: var(--primary-soft); }
.tag-update { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--info); background: var(--info-soft); border-radius: 999px; padding: 3px 8px; }
.req.is-leaving { opacity: 0; transform: translateX(30px); }

/* Panel lateral (drawer) */
.drawer-overlay { position: fixed; inset: 0; z-index: 250; background: var(--overlay); opacity: 0; transition: opacity 0.25s ease; }
.drawer-overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 260;
  width: min(640px, 100vw); display: flex; flex-direction: column;
  background: var(--bg); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-head h3 { margin: 0; font-size: 1.15rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.drawer .perfil-section { padding: 20px 22px; margin-bottom: 14px; }
.review-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.review-hero img { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; flex-shrink: 0; }
.review-hero h2 { margin: 0 0 4px; font-size: 1.5rem; }
.review-kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 0.9rem; margin: 0; }
.review-kv dt { color: var(--muted); font-weight: 600; }
.review-kv dd { margin: 0; word-break: break-word; }
.changed { background: var(--warning-soft); border-radius: 6px; padding: 0 4px; }
.changed-flag { display: inline-block; margin-left: 6px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--warning); }

/* ====== Agenda ====== */
.agenda-hoy { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 56px 0; }
.agenda-hoy h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 24px; }
.hoy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hoy-vacio { color: var(--ink-soft); font-size: 0.95rem; }
.agenda-layout { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; padding-bottom: 80px; }
.agenda-calendar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 700; font-family: var(--font-display); }
.calendar-head button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.calendar-head button:hover { background: var(--surface-2); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar-weekdays { font-size: 0.68rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 50%; font-size: 0.85rem; font-family: var(--font-body); color: var(--ink); cursor: pointer; position: relative; transition: background-color 0.15s ease; }
.cal-cell.empty { cursor: default; }
.cal-cell:not(.empty):hover { background: var(--surface-2); }
.cal-cell.has-event::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.cal-cell.is-today { border: 1.5px solid var(--primary); font-weight: 700; }
.cal-cell.is-selected { background: var(--ink); color: var(--bg); }
.cal-cell.is-selected.has-event::after { background: var(--accent); }
.calendar-reset { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--primary-text); font-weight: 600; font-size: 0.85rem; padding: 10px 2px 0; cursor: pointer; }
.agenda-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.filtro-chip { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 7px 14px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all 0.2s ease; }
.filtro-chip:hover { border-color: var(--ink); }
.filtro-chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.agenda-grupo { margin-bottom: 40px; }
.agenda-grupo-fecha { font-size: 1.2rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.agenda-grupo-eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.evento-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.evento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.evento-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.evento-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-text); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.badge-ejemplo-inline { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.evento-hora { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.evento-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.evento-lugar { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 8px; }
.evento-desc { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 14px; flex: 1; }
.evento-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.85rem; }
.evento-precio { font-weight: 700; }
.evento-link { font-weight: 700; color: var(--ink); }
.evento-link:hover { color: var(--primary-text); }

/* ====== Responsive ====== */
@media (max-width: 1180px) {
  .dash-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .preview-col { display: none; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-arch { margin: 0 auto; }
  .float-card.one { left: -8px; }
  .float-card.two { right: -8px; }
  .about-grid { grid-template-columns: 1fr 1.4fr; }
  .about-side { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card, .cat-card.featured { grid-column: span 1; aspect-ratio: 4 / 5; min-height: 0; }
  .cat-card.featured { grid-column: span 2; aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: 1fr; }
  .perfil-hero { grid-template-columns: 200px 1fr; }
  .perfil-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .perfil-body { grid-template-columns: 1fr; }
  .agenda-layout { grid-template-columns: 1fr; }
  .agenda-calendar { position: static; max-width: 380px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: flex; }
  .site-nav {
    /* El header tiene backdrop-filter, que lo vuelve el contenedor de los
       elementos "fixed": con bottom:0 el menú quedaba del alto del header
       (unos 48px). Por eso la altura se fija respecto de la pantalla. */
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--bg); padding: 16px 20px calc(32px + env(safe-area-inset-bottom)); overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav > ul > li > a, .site-nav .dropdown-toggle { font-size: 1.15rem; padding: 14px 16px; border-radius: 14px; width: 100%; justify-content: space-between; }
  .site-nav > ul > li > a.active::after { display: none; }
  .dropdown { position: static; box-shadow: none; border: 0; background: var(--surface-2); margin: 4px 0 8px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-dropdown.open .dropdown { display: flex; }
  .nav-mobile-extra { display: block; margin-top: 20px; }
  .hide-sm { display: none !important; }
  .auth-slot { min-width: 0; }
  .logo-tag { display: none; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: sticky; top: var(--header-h); z-index: 10; flex-direction: row; overflow-x: auto; padding: 8px 0; margin: 0 -24px; padding-inline: 24px; background: var(--bg); scrollbar-width: none; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav button { width: auto; white-space: nowrap; }
  .status-card { grid-template-columns: auto 1fr; }
  .status-card > .status-cta { grid-column: 1 / -1; }
  .dash-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .carousel { padding-inline: 16px; margin: 0 -16px; scroll-padding-inline: 16px; }
  .hero { padding: 32px 0 64px; }
  .hero-stats { gap: 22px; }
  .float-card { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card, .cat-card.featured { grid-column: span 1; aspect-ratio: 4 / 3; }
  .cta-inner { padding: 64px 0; }
  .grid-2, .grid-4, .choice-cards { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .perfil-cover { height: 200px; }
  .perfil-top { margin-top: -120px; }
  .perfil-hero { grid-template-columns: 1fr; padding: 20px; text-align: left; gap: 18px; }
  .perfil-foto { width: 150px; margin-top: -60px; }
  .perfil-section { padding: 22px 20px; }
  .toolbar { position: static; }
  .footer-inner, .footer-cols { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .req { grid-template-columns: 52px 1fr; }
  .req img, .req .req-ph { width: 52px; height: 52px; border-radius: 12px; }
  .req-actions { grid-column: 1 / -1; }
  .req-actions .btn { flex: 1; }
  .review-kv { grid-template-columns: 1fr; gap: 2px; }
  .review-kv dd { margin-bottom: 8px; }
  .save-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .save-bar .btn { padding: 10px 14px; }
  .save-state span { display: none; }
  .stepper li span.label { display: none; }
  .stepper li:not(:last-child)::after { width: 20px; margin: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .page-fade { display: none; }
}
.photo-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 3rem; color: var(--muted); background: linear-gradient(135deg, var(--surface-2), var(--bg-soft)); }
.perfil-top > .breadcrumb { margin-bottom: 92px; position: relative; z-index: 1; }
.modal-suggestions .chip { text-align: left; border-radius: 12px; }
@media (max-width: 640px) { .perfil-top > .breadcrumb { margin-bottom: 76px; } }
html { overflow-x: clip; }
.nav-mobile-theme { display: none; }
@media (max-width: 860px) {
  .nav-mobile-theme { display: flex; margin-top: 12px; }
  .nav-mobile-theme .btn { width: 100%; justify-content: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
  .dash-nav { margin: 0 -16px; padding-inline: 16px; }
  .logo { font-size: 1.2rem; }
  .logo-block { gap: 8px; }
  .logo-simbolo { height: 30px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 4px; }
  .header-actions #themeToggle { display: none; }
  .icon-btn { width: 38px; height: 38px; }
}

/* Disciplinas de un perfil (perfil público) */
.perfil-disciplinas { display: flex; flex-wrap: wrap; gap: 6px; }
.perfil-disciplinas a.status:hover { color: var(--primary-text); }

/* Campos con unidad (cm, años, AR) */
.input-unit { position: relative; }
.input-unit input { padding-right: 52px; }
.input-unit .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.ficha-hint { margin: -4px 0 18px; }

/* Otras disciplinas (casillas en forma de chip) */
.disc-groups { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.disc-group { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.disc-group summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.disc-group summary::-webkit-details-marker { display: none; }
.disc-group summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.disc-group[open] summary::after { transform: rotate(-135deg); }
.disc-count:not(:empty) { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--primary-btn); color: #fff; font-size: 0.7rem; letter-spacing: 0; text-align: center; }
.disc-group .chip-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px; }
.chip-check { position: relative; display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check:has(input:checked) { border-color: var(--primary-text); background: var(--primary-soft); color: var(--primary-text); }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Sugerencias para el rol */
.rol-sugerencias { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rol-sugerencias:empty { display: none; }
.rol-sugerencias button { border: 1px dashed var(--border-strong); background: none; color: var(--ink-soft); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 0.8rem; cursor: pointer; }
.rol-sugerencias button:hover { border-color: var(--primary-text); color: var(--primary-text); }

/* ====== Castings ====== */
.castings-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.castings-bar .agenda-filters { margin: 0; padding: 0; border: 0; }
.castings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.casting-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.casting-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.casting-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.casting-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.casting-organiza { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.casting-perfiles { margin: 0; font-size: 0.9rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.casting-disc { display: flex; flex-wrap: wrap; gap: 6px; }
.casting-disc .chip { font-size: 0.75rem; padding: 3px 10px; }
.casting-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.casting-cierre { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.badge-pago { font-size: 0.72rem; font-weight: 700; color: var(--success); background: var(--success-soft); padding: 3px 10px; border-radius: 999px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.casting-modal { max-width: 640px; position: relative; max-height: calc(100dvh - 40px); overflow-y: auto; }
.casting-modal h3 { margin: 10px 0 4px; font-size: 1.5rem; padding-right: 40px; }
.casting-modal .casting-disc { margin: 12px 0; }
.casting-desc { white-space: pre-line; color: var(--ink-soft); }
.casting-kv { margin: 16px 0; }
.casting-kv dd { white-space: pre-line; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.postular-form { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.casting-aviso { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }
.casting-aviso .icon { flex: none; margin-top: 2px; }

/* Panel: postulantes de una convocatoria */
.postulante { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.postulante:first-child { border-top: 0; }
.postulante img, .postulante .photo-ph { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; font-size: 1.2rem; }
.postulante-nombre { font-weight: 700; }
.postulante-msg { margin: 6px 0; font-size: 0.9rem; color: var(--ink-soft); white-space: pre-line; }
.postulante-acciones { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.postulante-acciones select { width: auto; padding: 6px 10px; font-size: 0.85rem; }
.casting-panel-sec + .casting-panel-sec { margin-top: 32px; }

/* Filtros de ficha técnica (listado) */
.filtros-btn { position: relative; }
.filtros-panel { margin: 0 0 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.filtros-titulo { margin: 0 0 12px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.filtros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.filtros-grid .field { margin: 0; }
.rango { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rango .input-unit input { padding-right: 40px; }
.rango .unit { right: 10px; }
.filtros-titulo .opt { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
/* Celulares chicos: el logotipo y el botón principal se compactan para que
   entren junto a la búsqueda y el menú. */
@media (max-width: 440px) {
  .logo { font-size: 1.02rem; }
  .logo-simbolo { height: 26px; }
  .logo-block { gap: 7px; }
  .header-actions .auth-slot .btn-primary { padding: 8px 12px; font-size: 0.78rem; }
  .header-actions .icon-btn { width: 34px; height: 34px; }
}
/* La columna de texto de un postulante no puede ensancharse más que la
   ventana: los roles o mensajes largos tienen que cortar línea. */
.postulante > div { min-width: 0; }
.postulante .req-sub { white-space: normal; overflow-wrap: anywhere; }
.postulante-msg { overflow-wrap: anywhere; }

/* Página 404: el escenario sin la luz (la luz "está en otro lado"). */
.no-encontrada { padding: 120px 0 140px; text-align: center; }
.no-encontrada .container { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.no-encontrada-simbolo { height: 120px; width: auto; margin-bottom: 12px; }
.no-encontrada h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.no-encontrada h1 em { font-style: italic; }
.no-encontrada .lead { max-width: 52ch; }
.no-encontrada .hero-actions { justify-content: center; }
/* Número de perfiles en las pestañas inactivas: color con contraste suficiente. */
.segmented a:not(.is-active) .count { opacity: 1; color: var(--muted); }
