/* The approved Inicio palette and controls, shared by the six sections. */
:root {
  /* Ultra-sutil 85/15 brand system (145° · Idea E: breathing peripheral tail + right-to-left specular glint · 4.50s). */
  --ui-grad-green: #33fe94;
  --ui-grad-highlight: #3dfaa0;
  --ui-grad-cyan: #22e6f0;
  --ui-grad-blue: #4c82ff;
  --ui-grad-violet: #9655ff;
  --ui-neon-highlight: #52f7a4;
  --ui-brand-glint: linear-gradient(105deg,transparent 36%,rgba(255,255,255,.56) 50%,transparent 64%);
  --ui-brand-gradient: linear-gradient(145deg,#33fe94 0%,#3dfaa0 52%,#22e6f0 83%,#4c82ff 92%,#9655ff 100%);
  --ui-neon-gradient: linear-gradient(145deg,#33fe94 0%,#58fdaa 54%,#22e6f0 86%,#729eff 95%,#9c82ff 100%);
  --ui-neon-duration: 4.5s;
  --ui-ink: #eef2f5;
  --ui-body: #c3ccd3;
  --ui-muted: #98a6b0;
  --ui-bg: #0c0e11;
  --ui-surface-top: #1b1e23d6;
  --ui-surface-bottom: #111317d0;
  --ui-green: #22e584;
  --ui-teal-green: #2cd9a2;
  --ui-cyan: #16cfe0;
  --ui-blue: #4685f5;
  --ui-violet: #9456f2;
  --ui-violet-text: #a36bfa;
}
body, body::before { background: var(--ui-bg); }
.site-shell .world, .site-shell[data-view] .world {
  background-color: var(--ui-bg);
  filter: grayscale(.68) brightness(.84);
}
.world::before {
  background: linear-gradient(180deg,#0a0c0f24 0,#0a0c0f38 26%,#0a0c0fde 75%,#0a0c0ff0);
}
.ambient-light {
  background: radial-gradient(ellipse at 18% 60%,#ffffff07,transparent 44%),radial-gradient(ellipse at 82% 22%,#c8d4e00c,transparent 40%);
}
.site-header::before {
  background: linear-gradient(#0b0d10cc,#0b0d106e 70%,transparent);
}
#dial-art .gauge-back { fill: #0e1013eb; }
#dial-art .gauge-arc { stroke: #b8c0c8; filter: drop-shadow(0 0 5px #ffffff1f); }
#dial-art .minor-tick { stroke: #7d8590; }
#dial-art .major-tick { stroke: #dfe4ea; }
#dial-art .gauge-dot:not(.active) { fill: #c7cdd4; stroke: #6e7580; }
#dial-art #gauge-face stop:nth-child(1) { stop-color: #23262b; }
#dial-art #gauge-face stop:nth-child(2) { stop-color: #131519; }
#dial-art #gauge-face stop:nth-child(3) { stop-color: #0b0d10cc; }
#dial-art #gauge-rim stop:nth-child(1) { stop-color: #b4bbc4; }
#dial-art #gauge-rim stop:nth-child(2) { stop-color: #383d45; }
#dial-art #gauge-rim stop:nth-child(3) { stop-color: #191c21; }
#dial-art #gauge-rim stop:nth-child(4) { stop-color: #6e7580; }
#dial-art > circle[r="138"] { stroke: #4c525c; }
#dial-art > circle[r="129"] { stroke: #ffffff24; }
#dial-art > circle[r="112"] { stroke: #ffffff14; }
.dial-footer::before {
  background: linear-gradient(to top, #0c0e11 0, #0c0e11c8 35%, #0c0e1155 68%, transparent 100%);
}
#inicio { --home-neon-gradient: var(--ui-neon-gradient); }
#site .view .section-rail { --text-scale: 1; opacity: 0.85; }
#site .view .section-rail > b { color: var(--ui-teal-green); border-bottom-color: #49f2ba77; }
#site .view .section-rail > span { color: #b7c2ca; }
#site .view .ui-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 48px; padding: 12px 18px; width: auto; max-width: 100%;
  border: 0; border-radius: 11px; clip-path: none;
  font: 600 14px/1.4 var(--font); letter-spacing: normal; text-transform: none;
  background: var(--ui-neon-gradient); background-size: 145% 100%;
  color: #062116; -webkit-text-fill-color: currentColor; text-decoration: none;
  animation: ced-breathe-btn var(--ui-neon-duration) ease-in-out infinite;
  box-shadow: 0 7px 26px #22e58438;
  transition: background .2s, box-shadow .2s, color .2s, transform .2s;
}
#site .view .ui-primary::before { content: none; }
#site .view .ui-primary::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(108deg,transparent 32%,rgba(255,255,255,.42) 50%,transparent 68%);
  transform: translateX(130%);
  animation: ced-btn-glint var(--ui-neon-duration) ease-in-out infinite;
}
#site .view .ui-primary svg { width: 19px; height: 19px; flex-shrink: 0; color: inherit; }
#site .view .ui-primary:focus-visible {
  outline: 2px solid var(--ui-green); outline-offset: 5px;
  box-shadow: 0 0 22px #33fe9488,0 8px 42px #33fe9459; transform: translateY(-2px);
}
#site .view .ui-glass {
  position: relative; isolation: isolate; min-width: 0;
  border: 0; border-radius: 18px; clip-path: none;
  background: linear-gradient(135deg,var(--ui-surface-top),var(--ui-surface-bottom));
  box-shadow: inset 0 1px #ffffff1f,inset 0 -1px #ffffff08,0 10px 26px #00000034;
  backdrop-filter: blur(18px) saturate(110%); -webkit-backdrop-filter: blur(18px) saturate(110%);
  transition: box-shadow .3s ease,background .3s ease;
}
#site .view .ui-glass::before {
  content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none;
  clip-path: none; border: 0; opacity: 1;
  background: radial-gradient(ellipse at var(--lx,10%) var(--ly,0%),#ffffff0a,transparent 72%);
}
#site .view .ui-glass::after { content: none; }
#site .view .ui-glass:focus-within {
  box-shadow: inset 0 1px #afffd366,0 0 26px #4dfd9a4d,0 12px 34px #00000040;
}
#site .view .ui-kicker {
  margin: 0 0 12px; font: 500 10px/1.6 var(--mono); letter-spacing: 1.5px; color: #a4b3bc; opacity: 0.9;
}
#site .view .ui-accent {
  color: var(--ui-green);
  background-image: var(--ui-brand-glint), var(--ui-brand-gradient);
  background-size: 260% 100%, 135% 100%;
  background-repeat: no-repeat;
  background-position: 145% 0, 0% 50%;
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: ced-breathe-glint var(--ui-neon-duration) ease-in-out infinite; font-style: normal; text-shadow: none;
}
#site .view .ui-text-link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  padding: 6px 0; border: 0; background: none; box-shadow: none; color: #dcebe6;
  font: 600 14px/1.4 var(--font); text-decoration: none;
  transition: color .2s;
}
#site .view .ui-text-link:hover { color: var(--ui-green); }
#site .view :is(.ui-text-link,.ui-glass):focus-visible { outline: 2px solid var(--ui-green); outline-offset: 5px; }
@media (hover:hover) and (pointer:fine) {
  #site .view .ui-primary:hover {
    box-shadow: 0 0 22px #33fe9488,0 8px 42px #33fe9459; transform: translateY(-2px);
  }
  #site .view .ui-glass:hover {
    box-shadow: inset 0 1px #afffd366,0 0 26px #4dfd9a4d,0 12px 34px #4dfd9a26;
  }
  #site .view [data-depth] { overflow: hidden; }
  #site .view [data-depth] > img:not(.cover-layer),
  #site .view [data-depth] > .depth-media {
    transform: translate3d(calc(var(--px,0px)*.35),calc((var(--py,0px) + var(--sy,0px))*.08),0) scale(1.04);
    transition: transform .35s ease-out;
  }
}
@media (min-width:960px) {
  #site .view .ui-glass { background: linear-gradient(135deg,#1c1f24db,#111317d2); }
}
@media (prefers-reduced-motion:reduce) {
  #site .view :is(.ui-primary,.ui-primary::after,.ui-accent) { animation: none; }
  #site .view .ui-primary::after { display: none; }
  #site .view :is(.ui-primary,.ui-glass,.ui-text-link) { transition: none; }
  #site .view .ui-primary, #site .view .ui-primary:hover, #site .view .ui-primary:focus-visible { transform: none; }
  #site .view [data-depth] > img:not(.cover-layer),#site .view [data-depth] > .depth-media { transform: none; transition: none; }
}
.paused #site .view :is(.ui-primary,.ui-primary::after,.ui-accent),.tab-inactive #site .view :is(.ui-primary,.ui-primary::after,.ui-accent) { animation-play-state: paused; }
.paused #site .view [data-depth] > img:not(.cover-layer),.paused #site .view [data-depth] > .depth-media { transform: none; }
/* Shared full-viewport dark-blur overlay for Menú and Ambiente sonoro. */
#menu,
#music-dialog {
  --text-scale: 1;
  position: fixed; inset: 0;
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0; border-radius: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.78) 0%, rgba(8, 10, 13, 0.86) 100%);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  box-shadow: none;
  color: var(--ui-ink, #eef7f3);
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
}
#menu[open],
#music-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: overlay-in .22s ease-out both;
}
#menu::backdrop,
#music-dialog::backdrop {
  background: rgba(3, 8, 12, 0.32);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.site-overlay .overlay-topbar {
  position: sticky; top: 0; z-index: 2; flex-shrink: 0;
  width: 100%; max-width: 1180px; margin: 0 auto;
  min-height: calc(var(--header-height) + var(--safe-top));
  padding: calc(20px + var(--safe-top)) clamp(16px, 4vw, 40px) 20px;
  display: flex; align-items: center; justify-content: flex-end;
}
.site-overlay .overlay-close {
  position: static; inset: auto;
  display: grid; place-items: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #c4dce8;
  transition: color .2s, filter .2s, transform .2s;
}
.site-overlay .overlay-close svg { width: 22px; height: 22px; }
.site-overlay .overlay-close:focus-visible { outline: 2px solid var(--ui-green); outline-offset: 4px; }
.site-overlay .overlay-body {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
  padding: clamp(8px, 3vh, 28px) clamp(22px, 5vw, 48px) clamp(44px, 8vh, 84px);
}

/* Editorial full-bleed menu composition (Option A). */
#menu .menu-stage { width: min(680px, 100%); margin: auto 0; }
#menu h2 {
  width: fit-content; max-width: 100%;
  margin: 0 0 clamp(22px, 4vh, 38px);
  font: 700 clamp(30px, 4.8vw, 44px)/1.05 var(--display);
  letter-spacing: -.025em;
}
#menu nav {
  display: flex; flex-direction: column;
  border-top: 1px solid #ffffff16;
}
#menu nav a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: baseline; gap: clamp(14px, 2.5vw, 28px);
  min-height: 58px; padding: clamp(14px, 2.3vh, 21px) 6px;
  border: 0; border-bottom: 1px solid #ffffff16; border-radius: 0;
  background: transparent;
  transition: background .22s ease, border-color .22s ease;
}
#menu nav a .menu-index {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--mono); letter-spacing: .1em;
  color: var(--ui-teal-green, #49f2ba);
  transition: color .2s;
}
#menu nav a > b {
  display: block;
  font: 600 clamp(26px, 4.2vw, 40px)/1.12 var(--display);
  letter-spacing: -.025em;
  color: #dce9eecc;
  transition: color .22s ease, transform .22s ease;
}
#menu nav a .menu-arrow {
  font: 400 clamp(18px, 2.4vw, 24px)/1 var(--font);
  color: #8da6ae73;
  transition: color .22s ease, transform .22s ease;
}
#menu nav a[aria-current="page"] .menu-index { color: var(--ui-green); }
#menu nav a[aria-current="page"] .menu-index::after {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ui-green); box-shadow: 0 0 8px var(--ui-green);
}
#menu nav a[aria-current="page"] > b {
  color: #ffffff;
  text-shadow: 0 0 22px #4dfd9a29;
}
#menu nav a[aria-current="page"] .menu-arrow { color: var(--ui-green); }
#menu nav a:focus-visible { outline: 2px solid var(--ui-green); outline-offset: 4px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) {
  .site-overlay .overlay-close:hover {
    color: var(--ui-green);
    filter: drop-shadow(0 0 8px #4dfd9a75);
  }
  #menu nav a:hover {
    background: linear-gradient(90deg, #4dfd9a0f, transparent 78%);
    border-bottom-color: #4dfd9a44;
  }
  #menu nav a:hover .menu-index,
  #menu nav a:hover .menu-arrow { color: var(--ui-green); }
  #menu nav a:hover > b { color: #ffffff; transform: translateX(8px); }
  #menu nav a:hover .menu-arrow { transform: translateX(5px); }
}
@media (max-width: 600px) {
  .site-overlay .overlay-topbar { padding-inline: 16px; }
  #menu nav a { grid-template-columns: 44px minmax(0, 1fr) auto; padding-block: 14px; }
  #menu nav a > b { font-size: clamp(23px, 6.8vw, 30px); }
}
@media (max-height: 620px) {
  #menu h2 { margin-bottom: 16px; font-size: clamp(26px, 4vw, 34px); }
  #menu nav a { min-height: 48px; padding-block: 11px; }
  #menu nav a > b { font-size: clamp(22px, 3.6vw, 30px); }
}
@media (prefers-reduced-motion: reduce) {
  #menu[open], #music-dialog[open], #menu h2 { animation: none; }
  #menu nav a, #menu nav a > b, #menu nav a .menu-arrow, .site-overlay .overlay-close { transition: none; transform: none; }
}

/* CED Point brand lockup: prominent vector symbol (+15%) paired with refined CED POINT wordmark (-30%). */
@keyframes ced-breathe-glint {
  0%   { background-position: 145% 0, 0% 50%; }
  50%  { background-position: -45% 0, 100% 50%; }
  100% { background-position: -45% 0, 0% 50%; }
}
@keyframes ced-breathe-btn {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes ced-btn-glint {
  0%   { transform: translateX(130%); }
  55%  { transform: translateX(-130%); }
  100% { transform: translateX(-130%); }
}
@keyframes ced-iso-glow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(34,229,132,0)); }
  35%      { filter: drop-shadow(0 0 7px rgba(34,229,132,0.42)); }
  65%      { filter: drop-shadow(0 0 6px rgba(22,207,224,0.34)); }
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.site-header .brand img {
  display: block;
  width: auto;
  height: 17px;
  aspect-ratio: 404 / 127;
  flex-shrink: 0;
  animation: ced-iso-glow var(--ui-neon-duration) ease-in-out infinite;
  transition: filter .2s ease;
}
.site-header .brand > .brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  padding-left: 10px;
  border-left: 1px solid #bfd2e455;
  font: 700 0.75rem/1 var(--display);
  letter-spacing: 0.14em;
  color: #f2f7f5;
  white-space: nowrap;
  font-size-adjust: cap-height from-font;
}
.site-header .brand > .brand-wordmark .brand-point {
  font-weight: 600;
  color: var(--ui-green);
  background-image: var(--ui-brand-glint), var(--ui-brand-gradient);
  background-size: 260% 100%, 135% 100%;
  background-repeat: no-repeat;
  background-position: 145% 0, 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ced-breathe-glint var(--ui-neon-duration) ease-in-out infinite;
  transition: filter .2s ease;
}
#home-title,
#profile-title,
#work-title,
#measure-title,
#experiments-title,
#contact-title {
  font-size-adjust: from-font;
  text-wrap: balance;
}
@media (hover: hover) and (pointer: fine) {
  .site-header .brand:hover img { filter: drop-shadow(0 0 8px #22e58466); }
  .site-header .brand:hover .brand-point { filter: drop-shadow(0 0 10px #22e58466); }
}
@media (min-width: 960px) {
  .site-header .brand { gap: 11px; }
  /* Symbol +15% (20px) paired with CED POINT wordmark -30% (14px / 0.875rem) */
  .site-header .brand img { height: 20px; }
  .site-header .brand > .brand-wordmark {
    padding-left: 11px;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
  }
}
@media (max-width: 600px) {
  .site-header .brand { gap: 0; }
  .site-header .brand img { width: auto; height: 25px; }
  .site-header .brand > .brand-wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .brand img,
  .site-header .brand > .brand-wordmark .brand-point { transition: none; animation: none; }
}
.paused .site-header .brand img,
.tab-inactive .site-header .brand img,
.paused .site-header .brand > .brand-wordmark .brand-point,
.tab-inactive .site-header .brand > .brand-wordmark .brand-point { animation-play-state: paused; }
