/* ==========================================================================
   Portfolio · Mac interactivo
   ========================================================================== */

:root {
  --bg: #E8E5DF;
  --ink: #17171B;
  --muted: #7A766E;
  --accent: #FF5B2E;
  --select: #2F6FED;

  --w: 1000px;           /* ancho del portátil (JS) */
  --insp: 0px;           /* ancho del inspector abierto (JS) */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --soft-spring: cubic-bezier(.3, 1.3, .5, 1);
  --out: cubic-bezier(.22, 1, .36, 1);

  /* Texturas (SVG procedural) */
  --tex-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .14 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --tex-grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .22 -.05'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --tex-paper: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='5' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23fff' surfaceScale='1.4'><feDistantLight azimuth='45' elevation='62'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  --tex-concrete: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='.012 .016' numOctaves='6' seed='4' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23fff' surfaceScale='3'><feDistantLight azimuth='225' elevation='50'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>");
  --tex-brushed: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='80'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='.0015 .95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23b)'/></svg>");
  --tex-felt: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='f'><feTurbulence type='turbulence' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .35 -.08'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");

  /* Material clay satinado (referencia: carpeta azul-violeta) */
  --clay-hi: #93B6FF;
  --clay: #4F7BE2;
  --clay-mid: #3F68CC;
  --clay-deep: #2B4AA6;
  --clay-darker: #1A2A66;
  --tex-satin: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='.55 .55'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");

  /* Escena de estudio */
  --studio: #F5F5F7;
  --studio-ink: #1A1A1D;
  --studio-muted: rgba(26,26,29,.5);

  /* Estado inicial: Mac cerrado, girado y lejos */
  --lid: -90deg;
  --tilt: -40deg;
  --ry: 34deg;
  --scale: .56;
  --tx: 0px;
  --ty: calc(var(--w) * -.4);
  --px: 0deg;  /* parallax ratón */
  --py: 0deg;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--studio);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
svg { display: block; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fondo liso (foto de producto) ---------- */
.page-bg { position: fixed; inset: 0; overflow: hidden; background: #F5F5F7; transition: background .6s; }
.slight, .floor-line, .bg-word { display: none; }

/* ---------- Esquinas ---------- */
.corner {
  position: fixed; z-index: 5;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 12px; letter-spacing: .01em; color: var(--studio-muted);
}
.corner strong { color: var(--studio-ink); font-weight: 600; font-size: 13px; }
.corner--tl { top: 22px; left: 26px; }
.corner--tr { top: 22px; right: calc(26px + var(--insp)); text-align: right; transition: right .5s var(--out); }
.corner--bl { bottom: 22px; left: 26px; }
.corner--br { bottom: 18px; right: calc(22px + var(--insp)); transition: right .5s var(--out); }

.replay {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 500; color: var(--studio-ink);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .5s, transform .5s var(--spring), background .2s;
}
.replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--spring); }
.replay:hover { background: #fff; }
.replay:hover svg { transform: rotate(-200deg); }
body.ready .replay { opacity: 1; transform: none; pointer-events: auto; }

/* ==========================================================================
   Escena 3D
   ========================================================================== */
.stage {
  position: fixed; inset: 0 var(--insp) 0 0;
  display: grid; place-items: center;
  perspective: calc(var(--w) * 14 * var(--scale));
  perspective-origin: 50% 35%;
  transition: right .5s var(--out);
}
/* ==========================================================================
   Cámara (variables animables)
   ========================================================================== */
@property --tilt { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --px { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --py { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --scale { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --ty { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  --tilt: -9deg;
  --scale: calc(var(--scale-hero, .5) * .96);
  --ty: var(--ty-hero, 0px);
  transition: --px 1.4s var(--out), --py 1.4s var(--out);
}
body { transition: --tilt 1.8s var(--out), --scale 1.8s var(--out), --ty 1.8s var(--out); }
body.ready { transition-duration: 1.1s; }
/* Encendido: de frente */
body.cam-near { --tilt: -6deg; --scale: var(--scale-hero, .5); --ty: var(--ty-hero, 0px); }
/* Trabajando con ventanas: la pantalla llena la vista */
body.cam-near.focus { --tilt: -2deg; --scale: var(--scale-focus, 1); --ty: var(--ty-focus, 0px); }

.stage { opacity: 0; transition: right .5s var(--out), opacity 1.2s ease; }
body.built .stage { opacity: 1; }

.float {
  transform-style: preserve-3d;
  transform-origin: 50% calc(var(--ty) + var(--w) * .6 * var(--scale));
  transform: rotateX(var(--py)) rotateY(var(--px));
  pointer-events: none;
  will-change: transform;
}
.rig {
  position: relative;
  width: var(--w);
  height: calc(var(--w) * .7);
  transform-style: preserve-3d;
  transform-origin: 50% 0;
  transform: translateY(var(--ty)) scale(var(--scale)) rotateX(var(--tilt));
  pointer-events: none;
  /* Aluminio plata y blanco */
  --alu1: #F7F8FA; --alu2: #E4E6EA; --alu3: #C2C6CD;
  --wh1: #FFFFFF; --wh2: #F2F3F5; --wh3: #D6D9DE;
  --desk1: #FBFAF8; --desk2: #EFEDE9; --desk3: #D9D6D0;
}

/* ---------- Piezas 3D ---------- */
.bx, .flat, #standSlot, .set { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.bx > .fc { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--br, 0); }
.fc-top   { background: linear-gradient(170deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 .5px rgba(0,0,0,.06); }
.fc-front { background: linear-gradient(180deg, var(--c2), var(--c3)); }
.fc-left  { background: linear-gradient(180deg, var(--c2), var(--c3)); }
.fc-right { background: linear-gradient(180deg, var(--c3), color-mix(in srgb, var(--c3) 85%, #000)); }
.fc-back  { background: var(--c3); }
.flat > i { position: absolute; display: block; }

/* Pie: cuello ancho y bajo, en sombra bajo la barbilla */
.neck > .fc-front {
  background:
    linear-gradient(90deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 3%, rgba(255,255,255,0) 97%, rgba(0,0,0,.06) 100%),
    linear-gradient(180deg, #BFC2C7 0%, #D3D5D9 18%, #E4E5E8 55%, #DCDEE1 100%);
}
.foot > .fc-front { background: linear-gradient(180deg, #FFFFFF 0%, #E9EAEC 35%, #C9CCD1 100%); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.foot > .fc-top { background: linear-gradient(180deg, #D8DADD, #F1F2F4); }

/* Sombras de contacto sutiles */
.shadow { border-radius: 50%; }
.shadow.contact { background: radial-gradient(closest-side, rgba(0,0,0,.16), rgba(0,0,0,.05) 60%, rgba(0,0,0,0)); }
.shadow.soft { background: radial-gradient(closest-side, rgba(0,0,0,.12), rgba(0,0,0,.04) 60%, rgba(0,0,0,0)); }

/* Magic Keyboard */
.keyboard-body > .fc-top { background: linear-gradient(180deg, #DADCDF, #E8E9EB); }
.keyboard-body > .fc-front { background: linear-gradient(180deg, #FAFAFB 0%, #E3E4E7 45%, #C4C7CC 100%); }
.kbd-keys { position: absolute; inset: 4% 2.2%; display: flex; flex-direction: column; gap: 2.2%; }
.kb-row { flex: 1; display: flex; gap: .7%; }
.kb-row.fn { flex: .55; }
.kb-key {
  flex: 1; display: grid; place-items: center; overflow: hidden;
  border-radius: calc(var(--w) * .002);
  background: linear-gradient(180deg, #FFFFFF, #F6F6F8);
  box-shadow: 0 calc(var(--w) * .001) 0 #C6C8CD;
  font-size: calc(var(--w) * .006); line-height: 1; color: #A2A5AB;
  transition: transform .1s, box-shadow .1s;
}
.kb-key.hit { transform: translateY(18%); box-shadow: 0 0 0 #C6C8CD; }

/* Magic Mouse de perfil */
.mouse-profile {
  border-radius: 50% 50% 46% 46% / 100% 100% 16% 16%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 78%, #D2D4D8 80%, #B9BCC1 100%),
    radial-gradient(80% 140% at 38% 10%, #FFFFFF 0%, #F6F7F8 45%, #DADCE0 100%);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

/* ==========================================================================
   Monitor (iMac plata)
   ========================================================================== */
.mon-group { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--w) * .96); transform-style: preserve-3d; }
.monitor { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--w) * .7); transform-style: preserve-3d; }
.mon-face { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mon-front {
  inset: 0; pointer-events: auto;
  border-radius: calc(var(--w) * .016);
  background:
    linear-gradient(180deg, #E9EAEC 0%, #E6E7E9 84%, #E1E2E5 96%, #D6D8DC 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.08),
    inset 0 0 0 2px rgba(255,255,255,.6),
    0 calc(var(--w) * .004) calc(var(--w) * .012) rgba(0,0,0,.06);
}
.mon-front::after { /* reflejo del cristal sobre toda la pantalla */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--w) * .58); z-index: 95; pointer-events: none;
  border-radius: calc(var(--w) * .016) calc(var(--w) * .016) 0 0;
  background:
    linear-gradient(118deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 30%, rgba(255,255,255,0) 30.4%);
}
/* Cristal de la pantalla: borde negro, viñeta y reflejo suave (encima del contenido, sin bloquear clics) */
.screen::after {
  content: ""; position: absolute; inset: 0; z-index: 96; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(140% 100% at 50% -10%, rgba(255,255,255,.06), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,0) 85%, rgba(0,0,0,.08));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 0 calc(var(--w) * .008) rgba(0,0,0,.12);
}
.mon-back {
  inset: 0; display: grid; place-items: center;
  transform: translateZ(calc(var(--w) * -.012)) rotateY(180deg);
  border-radius: calc(var(--w) * .016);
  background: linear-gradient(180deg, #E8EAED, #CDD1D6);
}
.mon-logo { font-family: var(--serif); font-style: italic; font-size: calc(var(--w) * .04); color: rgba(0,0,0,.18); }
.mon-side { background: linear-gradient(180deg, #E6E8EB, #B4B8BF); }
.mon-side.l { left: 0; top: calc(var(--w) * .016); bottom: calc(var(--w) * .016); width: calc(var(--w) * .012); transform-origin: 0 50%; transform: rotateY(90deg); }
.mon-side.r { right: 0; top: calc(var(--w) * .016); bottom: calc(var(--w) * .016); width: calc(var(--w) * .012); transform-origin: 100% 50%; transform: rotateY(-90deg); }
.mon-side.t { top: 0; left: calc(var(--w) * .016); right: calc(var(--w) * .016); height: calc(var(--w) * .012); transform-origin: 50% 0; transform: rotateX(-90deg); background: #F4F5F7; }
.mon-side.b { bottom: 0; left: calc(var(--w) * .016); right: calc(var(--w) * .016); height: calc(var(--w) * .012); transform-origin: 50% 100%; transform: rotateX(90deg); }
.bezel {
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--w) * .58);
  padding: calc(var(--w) * .02);
  border-radius: calc(var(--w) * .016) calc(var(--w) * .016) 0 0;
  background: #F7F7F8;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 1px 0 rgba(0,0,0,.08);
}
.bezel .cam { position: absolute; left: 50%; top: calc(var(--w) * .0075); width: calc(var(--w) * .0055); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #4A5063, #0E1016 70%); }
.chin { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--w) * .12); border-radius: 0 0 calc(var(--w) * .016) calc(var(--w) * .016); background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 18%, rgba(0,0,0,0) 85%, rgba(0,0,0,.035)); }
.chin::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(0,0,0,.08); }
.screen {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; overflow: clip; isolation: isolate;
  background: #050507;
  border-radius: calc(var(--w) * .002);
  box-shadow: 0 0 0 calc(var(--w) * .0018) #1A1B1F;
  container-type: size;
  user-select: none;
}
.glare { display: none; }
.crt { display: none; }
.power-hit {
  position: absolute; left: calc(var(--w) * .02); right: calc(var(--w) * .02); top: calc(var(--w) * .02); height: calc(var(--w) * .54);
  display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .5s;
}
.power-hit span {
  font-size: calc(var(--w) * .014); font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.75);
  padding: .7em 1.4em; border-radius: 99px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
body.built:not(.lid-open):not(.busy) .power-hit { pointer-events: auto; opacity: 1; cursor: pointer; }

/* Puntos de referencia para proyectar el ratón sobre la pantalla */
.pin { position: absolute; width: 0; height: 0; pointer-events: none; }
.pin[data-c="0"] { left: 0; top: 0; }
.pin[data-c="1"] { left: 100%; top: 0; }
.pin[data-c="2"] { left: 100%; top: 100%; }
.pin[data-c="3"] { left: 0; top: 100%; }

.stage-hint {
  position: fixed; left: calc(50% - var(--insp) / 2); bottom: 26px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--studio-muted);
  display: flex; align-items: center; gap: 10px;
  transition: opacity .6s;
}
.stage-hint::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
body.explored .stage-hint { opacity: 0; }

/* Destellos al abrir */
.sparkles { position: fixed; inset: 0 var(--insp) 0 0; pointer-events: none; z-index: 4; }
.spark {
  position: absolute; width: 22px; height: 22px; margin: -11px;
  color: var(--c, var(--accent));
  animation: spark 1.1s var(--out) forwards;
}
.spark svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes spark {
  0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(var(--s, 1)) rotate(160deg); opacity: 0; }
}

/* ==========================================================================
   Pantalla: arranque y escritorio
   ========================================================================== */
.boot {
  position: absolute; inset: 0; z-index: 80;
  display: grid; place-content: center; justify-items: center; gap: 5cqh;
  background: #000; opacity: 0; pointer-events: none;
  transition: opacity .5s;
}
body.booting .boot { opacity: 1; }
.boot-logo { font-family: var(--serif); font-style: italic; color: #fff; font-size: 11cqh; line-height: 1; }
body.booting .boot-logo { animation: bootIn 1s var(--spring) .25s both; }
.boot-bar { width: 18cqw; height: .7cqh; min-height: 3px; border-radius: 9px; background: #333; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
body.booting .boot-bar i { animation: load 1.4s cubic-bezier(.6,.1,.3,1) .4s forwards; }
@keyframes load { to { width: 100%; } }
@keyframes bootIn { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }

.desktop {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.05);
  transition: opacity .8s, transform 1.3s var(--out);
  font-size: clamp(9px, 1.2cqw, 14px);
}
body.desk .desktop { opacity: 1; transform: none; }
body:not(.desk) .desktop { pointer-events: none; }

/* ---------- Fondos de pantalla ---------- */
.wallpaper { position: absolute; inset: 0; overflow: hidden; }
.wp-layer { position: absolute; inset: -4%; pointer-events: none; }
.wp-base { background: #EEF2FA; }
.wp-texture { background: var(--tex-paper), var(--tex-grain); mix-blend-mode: multiply; opacity: .5; }
.blob {
  position: absolute; border-radius: 50%;
  opacity: .85; will-change: transform;
  animation: drift 18s ease-in-out infinite alternate;
  translate: var(--mx, 0) var(--my, 0);
  transition: translate 1.2s var(--out), background .8s;
}
.b1 { width: 62cqw; height: 62cqw; left: -16cqw; top: 34cqh; background: radial-gradient(closest-side, rgba(95,140,245,1), rgba(60,105,225,.7) 40%, rgba(60,105,225,.25) 70%, rgba(60,105,225,0)); }
.b2 { width: 56cqw; height: 56cqw; right: -14cqw; top: -22cqh; background: radial-gradient(closest-side, rgba(170,200,255,1), rgba(140,175,255,.65) 40%, rgba(140,175,255,.2) 70%, rgba(140,175,255,0)); animation-duration: 22s; animation-delay: -6s; }
.b3 { width: 48cqw; height: 48cqw; left: 34cqw; bottom: -32cqh; background: radial-gradient(closest-side, rgba(45,65,150,1), rgba(40,58,135,.6) 40%, rgba(40,58,135,.2) 70%, rgba(40,58,135,0)); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  50% { transform: translate(4cqw, -3cqh) scale(1.08); }
  100% { transform: translate(-3cqw, 2cqh) scale(.95); }
}
.grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 6cqw 6cqw;
  mask-image: radial-gradient(80% 80% at 30% 50%, #000, transparent);
}

/* iMac: cintas verticales en lavanda y azul */
.ribbons { position: absolute; inset: 0; display: none; overflow: hidden; }
.wallpaper[data-wp="imac"] .wp-base { background: linear-gradient(180deg, #E4E4F2, #D9DAEE); }
.wallpaper[data-wp="imac"] .blob, .wallpaper[data-wp="imac"] .grid-lines { display: none; }
.wallpaper[data-wp="imac"] .ribbons { display: block; }
.wallpaper[data-wp="imac"] .wp-texture { opacity: .12; }
.ribbons i {
  position: absolute; width: 17cqw; height: 190cqh; border-radius: 99cqw;
  background: linear-gradient(90deg, #F4F4FB 0%, #D9DAF1 30%, #A9ADE0 62%, #8E93D4 78%, #CFD1EE 100%);
  box-shadow: -1.4cqw 0 3cqw rgba(70,70,150,.28), inset .4cqw 0 .8cqw rgba(255,255,255,.7);
  transform: rotate(9deg);
}
.ribbons i:nth-child(1) { left: -6cqw;  top: 14cqh; }
.ribbons i:nth-child(2) { left: 10cqw;  top: -58cqh; }
.ribbons i:nth-child(3) { left: 26cqw;  top: 6cqh; }
.ribbons i:nth-child(4) { left: 42cqw;  top: -70cqh; }
.ribbons i:nth-child(5) { left: 58cqw;  top: 22cqh; }
.ribbons i:nth-child(6) { left: 74cqw;  top: -48cqh; }
.ribbons i:nth-child(7) { left: 90cqw;  top: 30cqh; }
.ribbons i:nth-child(even) { background: linear-gradient(90deg, #EDEEF9 0%, #C8CBEC 35%, #9CA2DC 65%, #BFC3EA 88%, #E8E9F7 100%); }

/* Fieltro */
.wallpaper[data-wp="fieltro"] .wp-base { background: radial-gradient(120% 90% at 30% 30%, #3E7A67, #1F4A3D 70%, #173A30); }
.wallpaper[data-wp="fieltro"] .wp-texture { background: var(--tex-felt), var(--tex-grain); mix-blend-mode: overlay; opacity: .8; }
.wallpaper[data-wp="fieltro"] .blob { opacity: .35; }
.wallpaper[data-wp="fieltro"] .b1 { background: radial-gradient(circle, #F4B860, transparent 65%); }
.wallpaper[data-wp="fieltro"] .b2 { background: radial-gradient(circle, #9AD1B9, transparent 65%); }
.wallpaper[data-wp="fieltro"] .b3 { background: radial-gradient(circle, #F08A5D, transparent 65%); }
.wallpaper[data-wp="fieltro"] .grid-lines { display: none; }
.wallpaper[data-wp="fieltro"] .wp-pattern { background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.45)); }

/* Riso */
.wallpaper[data-wp="riso"] .wp-base { background: #F6EBDD; }
.wallpaper[data-wp="riso"] .blob { filter: none; opacity: 1; mix-blend-mode: multiply; }
.wallpaper[data-wp="riso"] .b1 { background: radial-gradient(circle, #FF6F91 0 1.1cqw, transparent 1.2cqw) 0 0 / 1.6cqw 1.6cqw; mask-image: radial-gradient(circle, #000 35%, transparent 70%); }
.wallpaper[data-wp="riso"] .b2 { background: radial-gradient(circle, #3D6BFF 0 .8cqw, transparent .9cqw) 0 0 / 1.3cqw 1.3cqw; mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
.wallpaper[data-wp="riso"] .b3 { background: radial-gradient(circle, #FFC933 0 1cqw, transparent 1.1cqw) 0 0 / 1.5cqw 1.5cqw; mask-image: radial-gradient(circle, #000 35%, transparent 70%); }
.wallpaper[data-wp="riso"] .wp-texture { background: var(--tex-paper), var(--tex-grain), var(--tex-grain); opacity: .65; }
.wallpaper[data-wp="riso"] .grid-lines { display: none; }

/* Hormigón */
.wallpaper[data-wp="hormigon"] .wp-base { background: linear-gradient(160deg, #CFCBC4, #A9A59E); }
.wallpaper[data-wp="hormigon"] .wp-texture { background: var(--tex-concrete), var(--tex-grain); mix-blend-mode: multiply; opacity: .75; }
.wallpaper[data-wp="hormigon"] .blob { opacity: .28; }
.wallpaper[data-wp="hormigon"] .b1 { background: radial-gradient(circle, #FF5B2E, transparent 65%); }
.wallpaper[data-wp="hormigon"] .grid-lines { opacity: .3; }

/* Holográfico */
.wallpaper[data-wp="holo"] .wp-base {
  background: conic-gradient(from 0deg at 60% 40%, #FFD6E8, #C9E4FF, #D8FFE9, #FFF3C4, #E7D4FF, #FFD6E8);
  animation: holo 16s linear infinite;
}
@keyframes holo { to { filter: hue-rotate(360deg); } }
.wallpaper[data-wp="holo"] .blob { opacity: .6; mix-blend-mode: soft-light; }
.wallpaper[data-wp="holo"] .wp-texture { background: var(--tex-grain), var(--tex-grain); opacity: .6; }
.wallpaper[data-wp="holo"] .wp-pattern { background: repeating-linear-gradient(115deg, rgba(255,255,255,.0) 0 3cqw, rgba(255,255,255,.35) 3.5cqw, rgba(255,255,255,0) 4cqw 8cqw); mix-blend-mode: overlay; }
.wallpaper[data-wp="holo"] .grid-lines { display: none; }

/* Noche */
.wallpaper[data-wp="noche"] .wp-base { background: radial-gradient(100% 80% at 30% 20%, #1D2146, #0B0C18 70%); }
.wallpaper[data-wp="noche"] .b1 { background: radial-gradient(circle, #FF5B2E, transparent 65%); opacity: .55; }
.wallpaper[data-wp="noche"] .b2 { background: radial-gradient(circle, #7C6CFF, transparent 65%); opacity: .7; }
.wallpaper[data-wp="noche"] .b3 { background: radial-gradient(circle, #29B6F6, transparent 65%); opacity: .45; }
.wallpaper[data-wp="noche"] .wp-pattern {
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent),
    radial-gradient(1px 1px at 10% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent);
  background-size: 22cqw 22cqh; opacity: .7; animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .25; } }
.wallpaper[data-wp="noche"] .wp-texture { background: var(--tex-grain-light); mix-blend-mode: normal; opacity: .35; }
.wallpaper[data-wp="noche"] .grid-lines { background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); }

/* Tono oscuro del escritorio (fieltro/noche) */
.desktop.tone-dark .hero-kicker, .desktop.tone-dark .hero-sub { color: rgba(255,255,255,.75); }
.desktop.tone-dark .hero-title { color: #fff; }
.desktop.tone-dark .icon-label { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.desktop.tone-dark .menubar { background: rgba(20,20,26,.35); color: #fff; }

/* ---------- Menú superior ---------- */
.menubar {
  position: absolute; z-index: 50; top: 0; left: 0; right: 0;
  height: max(18px, 3.5cqh);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 1cqw;
  font-size: clamp(8px, 1.1cqw, 13px);
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: .2cqw; white-space: nowrap; height: 100%; }
.mb-btn {
  height: 80%; display: inline-flex; align-items: center; gap: .4em;
  padding: 0 .65em; border-radius: .35em;
}
.mb-btn:hover, .mb-btn.open { background: rgba(0,0,0,.1); }
.desktop.tone-dark .mb-btn:hover, .desktop.tone-dark .mb-btn.open { background: rgba(255,255,255,.18); }
.mb-btn.app { font-weight: 700; }
.mb-logo { font-family: var(--serif); font-style: italic; font-size: 1.25em; line-height: 1; }
.mb-btn svg { width: 1.3em; height: 1.3em; }
.mb-batt { width: 1.8em !important; }
.mb-edit {
  font-weight: 700; color: #fff; background: var(--accent) !important;
  padding: 0 .7em; height: 72%; border-radius: 99px;
}
.mb-clock { font-variant-numeric: tabular-nums; }

/* ---------- Menús desplegables / contextuales ---------- */
.menu-layer { position: absolute; inset: 0; z-index: 95; pointer-events: none; }
.menu {
  position: absolute; pointer-events: auto;
  min-width: 15em; padding: .35em;
  font-size: clamp(10px, 1.1cqw, 13px);
  color: #1c1c20;
  background: var(--tex-grain), rgba(246,245,243,.82);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: .7em;
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.25), 0 1.2cqw 3cqw -.6cqw rgba(0,0,0,.35);
  transform-origin: top left;
  animation: menuIn .22s var(--spring);
}
@keyframes menuIn { from { opacity: 0; transform: scale(.92) translateY(-4px); } }
.mi {
  width: 100%; display: flex; align-items: center; gap: .6em;
  padding: .38em .7em; border-radius: .38em; text-align: left; white-space: nowrap;
}
.mi .ico { width: 1.15em; height: 1.15em; opacity: .75; flex: none; }
.mi kbd { margin-left: auto; padding-left: 2em; font-family: inherit; opacity: .45; }
.mi .sub-arrow { margin-left: auto; opacity: .5; }
.mi:hover:not(:disabled), .mi.hot { background: var(--select); color: #fff; }
.mi:hover .ico { opacity: 1; }
.mi:disabled { opacity: .35; cursor: default; }
.mi.danger:hover { background: #E5484D; }
.mi .check { width: 1em; margin-left: -.2em; text-align: center; }
.menu hr { border: 0; height: 1px; background: rgba(0,0,0,.1); margin: .35em .5em; }
.menu-head { padding: .3em .7em .2em; font-size: .8em; font-weight: 700; opacity: .5; }
.swatches { display: flex; gap: .45em; padding: .45em .7em; }
.swatches button { width: 1.3em; height: 1.3em; border-radius: 50%; background: hsl(var(--h) 85% 62%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .2s var(--spring); }
.swatches button:hover { transform: scale(1.25); }

/* ---------- Texto de bienvenida del fondo ---------- */
.hero {
  position: absolute; left: 6cqw; top: 15cqh; width: 54cqw;
  pointer-events: none;
}
.hero-kicker {
  font-size: clamp(8px, 1.05cqw, 13px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(23,23,27,.55); margin-bottom: 2.2cqh;
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 6.4cqw; line-height: .95; letter-spacing: -.015em;
}
.hero-title em { color: var(--accent); }
.hero-title .w { display: inline-block; }
body.desk .hero-title .w { animation: wordIn .9s var(--spring) both; animation-delay: calc(.2s + var(--i) * .06s); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.6em) rotate(6deg) scale(.8); } }
.hero-sub { margin-top: 2.6cqh; max-width: 36cqw; font-size: clamp(9px, 1.3cqw, 16px); line-height: 1.45; color: rgba(23,23,27,.7); }
.status {
  display: inline-flex; align-items: center; gap: .7em; margin-top: 3cqh;
  padding: .55em 1em .55em .8em; border-radius: 99px;
  font-size: clamp(8px, 1.05cqw, 13px); font-weight: 600; color: var(--ink);
  background: var(--tex-grain), rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.2);
}
.status i { width: .7em; height: .7em; border-radius: 50%; background: #2FBF71; animation: pulse 2s infinite; }
.status.off i { background: #F0A030; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,191,113,.5); }
  70% { box-shadow: 0 0 0 .7em rgba(47,191,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); }
}
body.desk .hero > :not(.hero-title) { animation: rise .9s var(--out) both; }
body.desk .hero > :nth-child(3) { animation-delay: .5s; }
body.desk .hero > :nth-child(4) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(3cqh); } }

/* ==========================================================================
   Iconos del escritorio
   ========================================================================== */
.icons { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.icon {
  position: absolute; pointer-events: auto;
  width: 10cqw; padding: .6cqw .3cqw;
  display: flex; flex-direction: column; align-items: center; gap: .7cqh;
  border-radius: .8cqw; touch-action: none;
  transition: left .5s var(--out), top .5s var(--out);
}
.icon.dragging { transition: none; z-index: 10; }
.icon.dragging .icon-img { transform: scale(1.1) rotate(-4deg); }
body.desk .icons:not(.settled) .icon .icon-pop { animation: pop .8s var(--spring) both; animation-delay: calc(.6s + var(--i) * .07s); }
.icon-pop { display: flex; flex-direction: column; align-items: center; gap: .7cqh; }
@keyframes pop { from { opacity: 0; transform: translateY(3cqh) scale(.3) rotate(-14deg); } }
.icon-img {
  position: relative; width: 6.2cqw; aspect-ratio: 1.22;
  display: grid; place-items: end center;
  perspective: 20cqw;
  transition: transform .45s var(--spring);
}
.icon-img::after { /* sombra en el suelo */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -8%; height: 16%;
  background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent);
  z-index: -1; transition: transform .45s var(--spring), opacity .45s;
}
.icon:hover .icon-img { transform: translateY(-.6cqw); animation: wobble .7s ease-in-out; }
.icon:hover .icon-img::after { transform: translateY(.6cqw) scale(.75); opacity: .6; }
.icon:active .icon-img { transform: scale(.94, .86); transition-duration: .1s; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 25% { rotate: -5deg; } 50% { rotate: 4deg; } 75% { rotate: -2deg; } }
.icon-label {
  max-width: 100%;
  font-size: clamp(8px, 1.05cqw, 13px); font-weight: 600; line-height: 1.2; text-align: center;
  padding: .15em .5em; border-radius: .35em;
  color: #1c1c20; text-shadow: 0 1px 0 rgba(255,255,255,.6);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon.selected .icon-label { background: var(--select); color: #fff; text-shadow: none; }
.icon.selected .icon-img { filter: brightness(.93); }
.icon:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }
.icon-label input {
  width: 100%; font: inherit; text-align: center; color: var(--ink);
  border: 0; outline: 2px solid var(--select); border-radius: .3em; padding: 0 .2em; background: #fff;
}

/* ---------- Carpeta 3D ---------- */
.fold {
  --h: 214;
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(8deg);
}
.fold > i { position: absolute; display: block; }
.f-back {
  inset: 12% 0 0 0;
  border-radius: 9% / 11%;
  background-image: var(--tex-satin), radial-gradient(120% 120% at 30% 0%, hsl(var(--h) 85% 58%), hsl(var(--h) 78% 40%) 60%, hsl(var(--h) 75% 28%));
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px hsl(var(--h) 100% 85% / .5), inset 0 -.5cqw .8cqw rgba(8,4,40,.3);
}
.f-back::before { /* pestaña */
  content: ""; position: absolute; left: 6%; top: -13%; width: 40%; height: 18%;
  border-radius: .6cqw .8cqw 0 0;
  background-image: var(--tex-satin), linear-gradient(hsl(var(--h) 88% 64%), hsl(var(--h) 85% 58%));
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 1px 0 hsl(var(--h) 100% 88% / .7);
}
.f-paper {
  left: 9%; right: 9%; top: 17%; height: 62%;
  border-radius: 5%;
  background: var(--tex-satin), linear-gradient(165deg, #FFFFFF, hsl(var(--h) 90% 90%));
  background-blend-mode: soft-light, normal;
  box-shadow: 0 .1cqw .3cqw rgba(8,4,40,.25);
  transform: translateZ(1px) rotate(-3deg);
  transition: transform .55s var(--spring);
}
.f-paper.p2 { left: 13%; right: 5%; top: 20%; background: var(--tex-satin), linear-gradient(165deg, hsl(var(--h) 90% 94%), hsl(var(--h) 80% 80%)); background-blend-mode: soft-light, normal; transform: translateZ(.5px) rotate(3deg); }
.f-front {
  left: -2%; right: -2%; top: 31%; bottom: 0;
  border-radius: 9% 9% 10% 10% / 13% 13% 13% 13%;
  background-image: var(--tex-satin), radial-gradient(130% 120% at 20% 8%, hsl(var(--h) 95% 74%), hsl(var(--h) 85% 57%) 45%, hsl(var(--h) 75% 38%));
  background-blend-mode: soft-light, normal;
  transform-origin: 50% 100%;
  transform: translateZ(2px) rotateX(-12deg);
  transition: transform .6s var(--spring);
  box-shadow:
    inset 0 0 0 1px hsl(var(--h) 100% 86% / .6),
    inset .15cqw .15cqw .4cqw hsl(var(--h) 100% 88% / .5),
    inset -.15cqw -.15cqw .5cqw rgba(120,215,255,.4),
    0 .2cqw 0 hsl(var(--h) 70% 28%),
    0 .5cqw 1cqw -.2cqw rgba(8,4,40,.55);
  display: grid; place-items: center;
}
.f-front .ico {
  width: 30%; height: auto; aspect-ratio: 1;
  stroke: hsl(var(--h) 100% 92%); stroke-width: 2.2; opacity: .55;
  filter: drop-shadow(0 -1px 0 hsl(var(--h) 70% 30% / .6));
}
.icon:hover .f-front, .icon.drop-target .f-front { transform: translateZ(2px) rotateX(-38deg); }
.icon:hover .f-paper { transform: translateZ(1px) translateY(-24%) rotate(-7deg); }
.icon:hover .f-paper.p2 { transform: translateZ(.5px) translateY(-14%) rotate(7deg); }

/* ---------- Documento / nota ---------- */
.docico {
  position: relative; width: 74%; height: 100%;
  transform-style: preserve-3d; transition: transform .5s var(--spring);
}
.docico .page {
  position: absolute; inset: 0;
  background: var(--tex-paper), #FDFCF9;
  background-blend-mode: multiply;
  clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%);
  border-radius: 6%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.docico .corner-fold {
  position: absolute; right: 0; top: 0; width: 30%; height: 24%;
  background: linear-gradient(225deg, transparent 50%, #E4DFD5 50%, #F4F1EA 100%);
  border-radius: 0 0 0 20%;
  filter: drop-shadow(-1px 1px 1px rgba(0,0,0,.15));
}
.docico .lines {
  position: absolute; left: 16%; right: 16%; top: 30%; height: 38%;
  background: repeating-linear-gradient(rgba(0,0,0,.14) 0 8%, transparent 8% 22%);
}
.docico .tag {
  position: absolute; left: 12%; bottom: 10%;
  padding: 3% 8%; border-radius: .3cqw;
  font-size: .8cqw; font-weight: 800; color: #fff; background: var(--accent);
  letter-spacing: .02em;
}
.docico .tag.txt { background: #8E8A82; }
.docico .page::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.7), transparent 40%);
}
.docico-shadow { position: absolute; inset: 4% -2% -3% 4%; background: rgba(0,0,0,.18); border-radius: 8%; transform: translateZ(-1px); }
.icon:hover .docico { transform: rotateY(-18deg) rotateZ(-4deg); }

/* ---------- Enlace (tile) ---------- */
.tileico {
  --h: 222;
  width: 72%; aspect-ratio: 1; margin-bottom: 4%;
  border-radius: 24%;
  display: grid; place-items: center; position: relative;
  background-image: var(--tex-satin), radial-gradient(130% 120% at 22% 10%, hsl(var(--h) 95% 74%), hsl(var(--h) 85% 57%) 45%, hsl(var(--h) 75% 38%)); background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px hsl(var(--h) 100% 86% / .6), inset .15cqw .15cqw .4cqw hsl(var(--h) 100% 88% / .5), inset -.15cqw -.15cqw .5cqw rgba(120,215,255,.4), 0 .2cqw 0 hsl(var(--h) 70% 28%), 0 .5cqw 1cqw -.2cqw rgba(8,4,40,.5);
  transition: transform .5s var(--spring);
}
.tileico .ico { width: 50%; height: 50%; stroke: #fff; stroke-width: 1.8; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.tileico .badge {
  position: absolute; right: -8%; bottom: -8%; width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.tileico .badge .ico { width: 60%; height: 60%; stroke: #333; filter: none; stroke-width: 2.6; }
.icon:hover .tileico { transform: rotate(-8deg) scale(1.05); }

/* ---------- Foto (polaroid) ---------- */
.polaroid {
  width: 78%; aspect-ratio: .9; padding: 7% 7% 22%; margin-bottom: 2%;
  background: var(--tex-paper), #FDFCF9; background-blend-mode: multiply;
  box-shadow: 0 .4cqw .8cqw -.2cqw rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.05);
  transform: rotate(-4deg); transition: transform .5s var(--spring);
}
.polaroid img, .polaroid .ph { width: 100%; height: 100%; object-fit: cover; display: block; background: #ddd; }
.icon:hover .polaroid { transform: rotate(5deg) scale(1.05); }

/* ---------- Mini iconos (barra lateral, títulos) ---------- */
.mini {
  --h: 214; flex: none;
  width: 1.45em; height: 1.1em; position: relative; display: inline-block;
}
.mini.folder::before { content: ""; position: absolute; left: 0; top: 0; width: 45%; height: 30%; border-radius: 2px 3px 0 0; background: hsl(var(--h) 70% 56%); }
.mini.folder::after { content: ""; position: absolute; inset: 18% 0 0; border-radius: 2px; background: linear-gradient(hsl(var(--h) 96% 74%), hsl(var(--h) 82% 58%)); box-shadow: 0 1px 0 hsl(var(--h) 60% 42%); }
.mini.doc { width: .95em; height: 1.2em; background: #fff; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.mini.doc::after { content: ""; position: absolute; left: 20%; right: 20%; top: 30%; height: 40%; background: repeating-linear-gradient(rgba(0,0,0,.25) 0 1px, transparent 1px 3px); }
.mini.link { width: 1.2em; height: 1.2em; border-radius: 30%; background: linear-gradient(160deg, hsl(var(--h) 90% 66%), hsl(var(--h) 75% 45%)); }
.mini.trash { width: 1.1em; height: 1.2em; border-radius: 1px 1px 3px 3px; background: linear-gradient(#e8e9ec, #b9bcc2); }

/* ==========================================================================
   Dock
   ========================================================================== */
.dock {
  position: absolute; z-index: 40; left: 50%; bottom: 1.2cqh;
  transform: translateX(-50%);
  height: calc(4.6cqw + 1.2cqw);
  display: flex; align-items: flex-end; gap: .7cqw;
  padding: .6cqw .7cqw;
  border-radius: 1.8cqw;
  background-image: var(--tex-satin), linear-gradient(rgba(255,255,255,.4), rgba(214,200,255,.22));
  background-blend-mode: soft-light, normal;
  border: 1px solid rgba(214,200,255,.6);
  backdrop-filter: blur(24px) saturate(1.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: 0 1.2cqw 3cqw -1cqw rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.7);
  opacity: 0;
}
body.desk .dock { animation: dockUp .9s var(--spring) .5s both; }
@keyframes dockUp { from { opacity: 0; transform: translate(-50%, 150%); } to { opacity: 1; transform: translate(-50%, 0); } }
.dock-item {
  position: relative; flex: none;
  width: 4.6cqw; height: 4.6cqw;
  transition: width .28s var(--out), height .28s var(--out);
}
.dock-item:hover { width: 6.8cqw; height: 6.8cqw; }
.dock-item:hover + .dock-item, .dock-item:has(+ .dock-item:hover) { width: 5.7cqw; height: 5.7cqw; }
.dock-item:hover + .dock-item + .dock-item, .dock-item:has(+ .dock-item + .dock-item:hover) { width: 5cqw; height: 5cqw; }
.dock-item:active .dock-tile { transform: scale(.88); }
.dock-item.bounce .dock-tile { animation: dockBounce .8s var(--out); }
@keyframes dockBounce { 30% { transform: translateY(-60%) scale(.95, 1.08); } 55% { transform: translateY(0) scale(1.08, .92); } 75% { transform: translateY(-20%); } }
.dock-tile {
  --h: 214;
  width: 100%; height: 100%; border-radius: 23%;
  display: grid; place-items: center; position: relative; overflow: hidden;
  background-image: var(--tex-satin), radial-gradient(130% 120% at 22% 10%, hsl(var(--h) 95% 74%), hsl(var(--h) 85% 57%) 45%, hsl(var(--h) 75% 38%)); background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px hsl(var(--h) 100% 86% / .55), inset 2px 2px 4px hsl(var(--h) 100% 88% / .45), inset -2px -2px 5px rgba(120,215,255,.35), 0 .4cqw .8cqw -.2cqw rgba(8,4,40,.45);
  transition: transform .2s;
}
.dock-tile .ico { width: 52%; height: 52%; stroke: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.dock-tile.mono { background-image: var(--tex-satin), radial-gradient(130% 120% at 22% 10%, var(--clay-hi), var(--clay) 45%, var(--clay-deep)); background-blend-mode: soft-light, normal; font-family: var(--serif); font-style: italic; color: #fff; font-size: 2.2cqw; }
.dock-tile.gear { --h: 230; }
.dock-tile.gear .ico { animation: spin 12s linear infinite; }
.dock-tile.search { --h: 280; }
@keyframes spin { to { transform: rotate(360deg); } }
.dock-tile.trash { background-image: var(--tex-satin), linear-gradient(160deg, #F4F1FF, #C9C2F2); }
.dock-tile.trash .ico { stroke: #4A3AF0; filter: none; }
.dock-tile.trash.full::after { content: ""; position: absolute; left: 30%; right: 30%; top: 18%; height: 22%; background: repeating-linear-gradient(90deg, #f4f1ea 0 3px, #d9d3c7 3px 5px); border-radius: 2px; transform: rotate(-8deg); }
.dock-sep { width: 1px; align-self: stretch; margin: .4cqw .2cqw; background: rgba(0,0,0,.15); }
.dock-item::after {
  content: ""; position: absolute; left: 50%; bottom: -.55cqw; width: .38cqw; height: .38cqw; min-width: 3px; min-height: 3px;
  border-radius: 50%; background: rgba(0,0,0,.6); transform: translateX(-50%) scale(0); transition: transform .3s var(--spring);
}
.dock-item.running::after { transform: translateX(-50%) scale(1); }
.dock-tip {
  position: absolute; left: 50%; bottom: calc(100% + .9cqw);
  transform: translate(-50%, 4px); opacity: 0; pointer-events: none;
  white-space: nowrap; font-size: clamp(8px, 1cqw, 12px); font-weight: 500;
  padding: .3em .8em; border-radius: .5em;
  background: rgba(40,40,44,.85); color: #fff;
  transition: opacity .15s, transform .15s;
}
.dock-item:hover .dock-tip { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Notificación ---------- */
.toast {
  position: absolute; z-index: 70; top: calc(max(18px, 3.5cqh) + 1.2cqh); right: 1.2cqw;
  width: max(220px, 27cqw);
  display: grid; grid-template-columns: auto 1fr; gap: .9em; align-items: center;
  padding: .9em 1.1em; border-radius: 1.2em;
  font-size: clamp(9px, 1.1cqw, 13px);
  background: var(--tex-grain), rgba(250,250,250,.75);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 1cqw 3cqw -1cqw rgba(0,0,0,.35);
  transform: translateX(130%) rotate(4deg); transition: transform .7s var(--spring);
  cursor: pointer;
}
.toast.show { transform: none; }
.toast-ico { width: 2.8em; height: 2.8em; }
.toast-ico .dock-tile { font-size: 1.5em; }
.toast b { display: block; font-weight: 700; margin-bottom: .15em; }
.toast p { color: rgba(0,0,0,.65); line-height: 1.35; }

/* ---------- Spotlight ---------- */
.spotlight { position: absolute; inset: 0; z-index: 92; display: grid; justify-items: center; align-items: start; padding-top: 16cqh; background: rgba(0,0,0,.08); }
.spotlight[hidden] { display: none; }
.spot-box {
  width: min(48cqw, 640px); min-width: 260px;
  font-size: clamp(11px, 1.3cqw, 15px);
  background: var(--tex-grain), rgba(246,245,243,.85);
  border: 1px solid rgba(255,255,255,.7); border-radius: 1em;
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 2cqw 5cqw -1cqw rgba(0,0,0,.45);
  overflow: hidden; animation: spotIn .35s var(--spring);
}
@keyframes spotIn { from { opacity: 0; transform: scale(.9) translateY(-10px); } }
.spot-input { display: flex; align-items: center; gap: .8em; padding: .9em 1.1em; }
.spot-input svg { width: 1.4em; height: 1.4em; fill: none; stroke: #555; stroke-width: 2; stroke-linecap: round; flex: none; }
.spot-input input { flex: 1; font: inherit; font-size: 1.3em; border: 0; outline: 0; background: transparent; color: var(--ink); }
.spot-results { max-height: 40cqh; overflow: auto; border-top: 1px solid rgba(0,0,0,.08); }
.spot-results:empty { display: none; }
.spot-r { width: 100%; display: flex; align-items: center; gap: .8em; padding: .6em 1.1em; text-align: left; }
.spot-r.active { background: var(--select); color: #fff; }
.spot-r small { display: block; opacity: .6; font-size: .8em; margin-top: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30em; }
.spot-r .kind { margin-left: auto; font-size: .75em; opacity: .5; }
.spot-empty { padding: 1em 1.1em; opacity: .6; }

/* ==========================================================================
   Ventanas
   ========================================================================== */
.windows { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.win {
  --w-bg: rgba(250,249,247,.92);
  --w-ink: #17171B;
  --w-muted: #7A766E;
  --w-side: rgba(236,234,230,.72);
  --w-line: rgba(0,0,0,.08);
  --w-card: #fff;
  --w-bar: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.2));
  position: absolute; pointer-events: auto;
  display: flex; flex-direction: column;
  min-width: 260px; min-height: 180px;
  border-radius: 12px; overflow: hidden;
  font-size: clamp(11px, 1.22cqw, 15px);
  color: var(--w-ink);
  background: var(--w-bg);
  backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.8),
    0 2.4cqw 5cqw -1cqw rgba(0,0,0,.38),
    0 .6cqw 1.4cqw -.4cqw rgba(0,0,0,.2);
  user-select: text;
}
.win::before { /* grano del cristal */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--tex-satin); opacity: .35; mix-blend-mode: soft-light;
}
.win > * { position: relative; z-index: 1; }
.dark-ui .win, .win.win--preview, .win.win--image {
  --w-bg: rgba(30,30,34,.94);
  --w-ink: #EDEDF0;
  --w-muted: #9A9AA2;
  --w-side: rgba(44,44,50,.7);
  --w-line: rgba(255,255,255,.08);
  --w-card: rgba(255,255,255,.06);
  --w-bar: linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.dark-ui .win::before, .win--preview::before, .win--image::before { mix-blend-mode: screen; background: var(--tex-grain-light); opacity: .25; }
.win.inactive { box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 1.4cqw 3cqw -1cqw rgba(0,0,0,.25); }
.win.inactive .light { background: #C9C7C3 !important; border-color: rgba(0,0,0,.08); }
.win.animating-max { transition: left .45s var(--out), top .45s var(--out), width .45s var(--out), height .45s var(--out); }
.win.minimized { display: none; }

.win-bar {
  position: relative; flex: none;
  height: max(30px, 3.4em); display: flex; align-items: center; gap: .8em;
  padding: 0 1em;
  border-bottom: 1px solid var(--w-line);
  background: var(--w-bar);
  cursor: grab; user-select: none; touch-action: none;
}
.win-bar:active { cursor: grabbing; }
.lights { display: flex; gap: .55em; position: relative; z-index: 2; }
.light {
  width: max(11px, 1em); height: max(11px, 1em); border-radius: 50%;
  display: grid; place-items: center;
  border: .5px solid rgba(0,0,0,.14);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.45);
  transition: transform .25s var(--spring);
}
.light:hover { transform: scale(1.2); }
.light svg { width: 70%; height: 70%; stroke: rgba(0,0,0,.55); stroke-width: 3; fill: none; stroke-linecap: round; opacity: 0; transition: opacity .1s; }
.lights:hover .light svg { opacity: 1; }
.light.close { background: #FF5F57; }
.light.min { background: #FEBC2E; }
.light.max { background: #28C840; }
.win-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: .5em; max-width: 50%;
  font-weight: 600; font-size: .95em; white-space: nowrap;
  pointer-events: none;
}
.win-title span { overflow: hidden; text-overflow: ellipsis; }
.win-tools { margin-left: auto; display: flex; align-items: center; gap: .3em; position: relative; z-index: 2; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-width: 2.2em; height: 2em; padding: 0 .5em; border-radius: .5em;
  color: var(--w-muted); font-size: .9em; font-weight: 600; text-decoration: none;
}
.tool-btn:hover { background: rgba(127,127,127,.14); color: var(--w-ink); }
.tool-btn .ico { width: 1.2em; height: 1.2em; }
.tool-btn.on { background: var(--accent); color: #fff; }

.win-body { flex: 1; display: flex; min-height: 0; }
.win-side {
  flex: none; width: max(130px, 13.5em);
  padding: 1em .7em; overflow: auto;
  background: var(--w-side);
  border-right: 1px solid var(--w-line);
}
.side-title { font-size: .75em; font-weight: 700; color: var(--w-muted); padding: 0 .7em .5em; }
.side-item {
  width: 100%; display: flex; align-items: center; gap: .6em;
  padding: .42em .7em; border-radius: .5em; text-align: left;
  font-size: .95em; font-weight: 500;
}
.side-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item:hover { background: rgba(127,127,127,.12); }
.side-item.active { background: rgba(127,127,127,.2); font-weight: 600; }
.side-sep { height: 1em; }

.win-main {
  flex: 1; min-width: 0; overflow: auto; overflow-x: hidden;
  padding: 2em 2.4em 2.6em;
  overscroll-behavior: contain;
}
.win-main::-webkit-scrollbar { width: 10px; }
.win-main::-webkit-scrollbar-thumb { background: rgba(127,127,127,.35); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.win-resize {
  position: absolute; right: 0; bottom: 0; z-index: 5; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 55%, rgba(127,127,127,.45) 55% 62%, transparent 62% 72%, rgba(127,127,127,.45) 72% 79%, transparent 79%);
}

/* ==========================================================================
   Bloques de contenido
   ========================================================================== */
.blocks > .blk { animation: fadeUp .5s var(--out) both; animation-delay: calc(var(--bi, 0) * .05s); }
.blocks > .blk + .blk { margin-top: 1.9em; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

.eyebrow { font-size: .75em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--w-muted, var(--muted)); }
.b-title { margin-bottom: .9em; }
.h-serif { font-family: var(--serif); font-weight: 400; font-size: 2.9em; line-height: 1; letter-spacing: -.01em; }
.h-serif em { color: var(--accent); }
.b-heading .eyebrow { margin-bottom: .45em; }
.b-heading.size-xl .h-serif { font-size: 4.4em; }
.b-heading.size-m .h-serif { font-size: 2em; }
.lead { font-size: 1.1em; line-height: 1.6; }
.b-text p + p, .lead p + p { margin-top: .9em; }
.b-text a, .lead a { color: var(--accent); }
.b-text em, .lead em { font-family: var(--serif); font-size: 1.12em; }
.chips { display: flex; flex-wrap: wrap; gap: .45em; }
.chip {
  padding: .4em .85em; border-radius: 99px; font-size: .88em; font-weight: 500;
  background: var(--w-card); border: 1px solid var(--w-line);
}
.chip.dark { background: var(--w-ink); color: var(--w-bg); border-color: transparent; }
.b-empty {
  padding: 1.6em; border-radius: .9em; text-align: center; font-weight: 500; color: var(--w-muted);
  border: 2px dashed var(--w-line); background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(127,127,127,.05) 10px 20px);
}

/* Perfil */
.b-profile { display: flex; align-items: center; gap: 1.6em; flex-wrap: wrap; }
.avatar {
  flex: none; width: 6.5em; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--tex-grain), conic-gradient(from 200deg, #FF8A5B, #C3B6FF, #8FDCCF, #FFD166, #FF8A5B);
  font-family: var(--serif); font-style: italic; color: #fff;
  box-shadow: 0 0 0 4px var(--w-card, #fff), 0 10px 24px -8px rgba(0,0,0,.3);
  animation: spinHue 12s linear infinite;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-size: 2.6em; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.avatar:has(img) { animation: none; }
@keyframes spinHue { to { filter: hue-rotate(360deg); } }
.b-profile .eyebrow { margin-bottom: .4em; }

/* Datos */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); gap: .7em; }
.fact {
  padding: 1em 1.1em; border-radius: .9em; background: var(--w-card);
  border: 1px solid var(--w-line);
  box-shadow: 0 6px 16px -12px rgba(0,0,0,.3);
  transition: transform .4s var(--spring);
}
.fact:hover { transform: translateY(-3px) rotate(-1deg); }
.fact small { display: block; font-size: .78em; color: var(--w-muted); font-weight: 600; }
.fact strong { display: block; margin-top: .25em; font-size: 1.5em; font-weight: 700; letter-spacing: -.02em; }

/* Botones */
.b-buttons { display: flex; flex-wrap: wrap; gap: .6em; }
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 99px; font-weight: 600; font-size: .92em; text-decoration: none;
  background: var(--w-ink, var(--ink)); color: var(--w-bg, #fff);
  transition: transform .35s var(--spring), background .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: scale(.94); }
.btn.ghost { background: var(--w-card, #fff); color: var(--w-ink, var(--ink)); border: 1px solid var(--w-line, rgba(0,0,0,.12)); }
.btn .ico { width: 1.1em; height: 1.1em; }

/* Imagen, galería, vídeo */
.b-image { margin: 0; }
.b-image.fit-medium { max-width: 70%; }
.b-image.fit-small { max-width: 42%; }
.zoomable { display: block; width: 100%; border-radius: .8em; overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 1px var(--w-line), 0 14px 30px -18px rgba(0,0,0,.5); }
.zoomable img { width: 100%; display: block; transition: transform .8s var(--out); }
.zoomable:hover img { transform: scale(1.03); }
figcaption { margin-top: .6em; font-size: .88em; color: var(--w-muted); }
.b-gallery { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: .7em; }
.b-gallery .zoomable { aspect-ratio: 1; }
.b-gallery img { height: 100%; object-fit: cover; }
.b-video { margin: 0; }
.b-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: .8em; overflow: hidden; background: #000; }
.b-video-frame iframe, .b-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cita */
.b-quote { padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--accent); }
.b-quote p { font-family: var(--serif); font-size: 1.9em; line-height: 1.15; }
.b-quote cite { display: block; margin-top: .6em; font-style: normal; color: var(--w-muted); font-size: .9em; }
.b-divider { border: 0; height: 1px; background: var(--w-line); }

/* Archivo */
.b-file {
  display: flex; align-items: center; gap: 1em; padding: 1em 1.2em; border-radius: .9em; text-decoration: none;
  background: var(--w-card); border: 1px solid var(--w-line); transition: transform .35s var(--spring);
}
.b-file:hover { transform: translateY(-2px); }
.b-file > .ico { width: 1.8em; height: 1.8em; color: var(--accent); }
.b-file span { flex: 1; display: grid; }
.b-file small { color: var(--w-muted); }

/* Proyectos */
.filters { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: 1.3em; }
.filter {
  padding: .45em .9em; border-radius: 99px; font-size: .85em; font-weight: 600;
  border: 1px solid var(--w-line); background: var(--w-card);
  transition: background .2s, color .2s, transform .3s var(--spring);
}
.filter:hover { transform: translateY(-2px) rotate(-2deg); }
.filter.active { background: var(--w-ink); color: var(--w-bg); border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); gap: 1.4em 1.2em; }
.card { text-align: left; display: block; width: 100%; }
.card.hide { display: none; }
/* Proyecto destacado: ocupa dos columnas y lleva distintivo */
.card.featured { grid-column: 1 / -1; }
.card.featured .card-meta b { font-size: 1.25em; }
.card.featured .thumb { box-shadow: 0 0 0 2px var(--accent), 0 18px 36px -18px rgba(0,0,0,.55); }
.feat-badge {
  position: absolute; z-index: 3; top: .8em; left: .8em;
  padding: .4em .85em; border-radius: 99px;
  font-size: .8em; font-weight: 700; letter-spacing: .01em;
  color: #fff; background: var(--accent);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.45);
}
.feat-badge.static { position: static; display: inline-block; margin-bottom: 1em; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: .9em; overflow: hidden;
  background: #ddd;
  box-shadow: 0 0 0 1px var(--w-line), 0 10px 22px -14px rgba(0,0,0,.45);
  transition: transform .5s var(--spring), box-shadow .4s;
}
.thumb > svg, .thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--out); }
.thumb:has(img)::before, .pv-art:has(img)::before { display: none; }
.thumb::before { /* textura de impresión */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--tex-paper), var(--tex-grain); mix-blend-mode: multiply; opacity: .35;
}
.card:hover .thumb { transform: translateY(-5px) rotate(-1.2deg); box-shadow: 0 0 0 1px var(--w-line), 0 22px 30px -16px rgba(0,0,0,.5); }
.card:hover .thumb > svg, .card:hover .thumb > img { transform: scale(1.06); }
.thumb::after {
  content: "Ver proyecto"; position: absolute; left: .8em; bottom: .8em; z-index: 2;
  padding: .35em .8em; border-radius: 99px; font-size: .78em; font-weight: 600;
  background: rgba(255,255,255,.92); color: #17171B;
  opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .25s, transform .35s var(--spring);
}
.card:hover .thumb::after { opacity: 1; transform: none; }
.card-meta { margin-top: .75em; display: flex; justify-content: space-between; gap: .5em; }
.card-meta b { font-weight: 700; }
.card-meta span { color: var(--w-muted); font-size: .88em; white-space: nowrap; }

/* Vista previa de proyecto */
.win--preview .win-main, .win--image .win-main { padding: 0; display: flex; }
.pv { flex: 1; display: flex; min-height: 100%; }
.pv-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1em; padding: 1.6em; justify-content: center; }
.pv-art {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: .6em; overflow: hidden;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.8);
}
.pv-art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--tex-paper); mix-blend-mode: multiply; opacity: .3; }
.pv-art > svg, .pv-art > img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumbs { display: flex; gap: .5em; flex-wrap: wrap; }
.pv-thumbs button { width: 4.6em; aspect-ratio: 16/9; border-radius: .4em; overflow: hidden; opacity: .5; transition: opacity .2s, transform .3s var(--spring); }
.pv-thumbs button:hover { opacity: .85; transform: translateY(-2px); }
.pv-thumbs button.active { opacity: 1; outline: 2px solid #fff; }
.pv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pv-info { flex: none; width: 34%; min-width: 14em; padding: 2em 1.8em; border-left: 1px solid var(--w-line); overflow: auto; }
.pv-info .h-serif { margin: .35em 0 .6em; }
.pv-info p { line-height: 1.55; color: #C9C9CF; }
.pv-info dl { margin: 1.6em 0; display: grid; grid-template-columns: auto 1fr; gap: .5em 1.2em; font-size: .92em; }
.pv-info dt { color: var(--w-muted); }
.pv-pdf { margin-top: 1.6em; background: #fff; color: #17171B; }
.pv-count { font-size: .8em; color: var(--w-muted); font-variant-numeric: tabular-nums; }
.imgview { flex: 1; display: grid; place-items: center; padding: 1.2em; background: #111; }
.imgview img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: .3em; box-shadow: 0 20px 40px -18px rgba(0,0,0,.8); }

/* Línea de tiempo */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 8.8em; top: .6em; bottom: .6em; width: 1px; background: var(--w-line); }
.tl-item { position: relative; display: grid; grid-template-columns: 8em 1fr; gap: 2em; padding-bottom: 1.8em; }
.tl-item::before {
  content: ""; position: absolute; left: 8.8em; top: .45em; width: .75em; height: .75em; margin-left: -.37em;
  border-radius: 50%; background: var(--w-card); border: 2px solid var(--accent);
}
.tl-item:first-child::before { background: var(--accent); box-shadow: 0 0 0 .35em color-mix(in srgb, var(--accent) 20%, transparent); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 .6em color-mix(in srgb, var(--accent) 0%, transparent); } }
.tl-period { font-size: .85em; font-weight: 600; color: var(--w-muted); padding-top: .15em; font-variant-numeric: tabular-nums; }
.tl-role { font-size: 1.15em; font-weight: 700; letter-spacing: -.01em; }
.tl-company { color: var(--w-muted); margin: .15em 0 .6em; font-weight: 500; }
.tl-item p { line-height: 1.55; opacity: .85; }
.tl-item ul { margin-top: .6em; padding-left: 1.1em; display: grid; gap: .25em; opacity: .85; }
.tl-item li::marker { color: var(--accent); }

/* Lista con fechas */
.b-list { display: grid; gap: .5em; }
.b-list > div { display: flex; justify-content: space-between; gap: 1em; padding: .9em 1.1em; border-radius: .8em; background: var(--w-card); border: 1px solid var(--w-line); }
.b-list span { color: var(--w-muted); font-size: .9em; white-space: nowrap; }
.b-list b { font-weight: 600; }

/* Herramientas */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(12em, 1fr)); gap: .8em; }
.tool {
  display: grid; grid-template-columns: auto 1fr; gap: .4em .9em; align-items: center;
  padding: 1em; border-radius: .9em; background: var(--w-card); border: 1px solid var(--w-line);
  box-shadow: 0 6px 16px -12px rgba(0,0,0,.3);
  transition: transform .4s var(--spring);
}
.tool:hover { transform: translateY(-3px) rotate(-1deg); }
.tool-badge {
  grid-row: span 2; width: 2.8em; height: 2.8em; border-radius: .7em;
  display: grid; place-items: center; font-weight: 800; font-size: 1em;
  color: var(--c); background: var(--tex-grain-light), color-mix(in srgb, var(--c) 14%, #1a1a22);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent), 0 .2em 0 color-mix(in srgb, var(--c) 30%, #000);
}
.tool b { font-weight: 700; font-size: .95em; display: flex; justify-content: space-between; }
.tool b span { color: var(--w-muted); font-weight: 600; font-size: .9em; }
.meter { height: .45em; border-radius: 9px; background: rgba(127,127,127,.15); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 1.4s var(--out); }
.services { list-style: none; counter-reset: s; }
.services li {
  counter-increment: s; display: flex; gap: 1em; align-items: baseline;
  padding: .7em 0; border-bottom: 1px solid var(--w-line); font-weight: 600;
}
.services li::before { content: counter(s, decimal-leading-zero); font-size: .75em; color: var(--accent); font-weight: 700; }

/* Contacto */
.mail-row { display: flex; flex-wrap: wrap; gap: .6em; align-items: center; margin-top: 1.2em; }
.mail-link {
  font-size: 1.4em; font-weight: 700; letter-spacing: -.02em; text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--out);
}
.mail-link:hover { background-size: 100% 2px; }
.socials .social {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9em .2em; border-bottom: 1px solid var(--w-line); text-decoration: none;
  transition: padding .3s var(--out);
}
.social:hover { padding-left: .8em; }
.social b { font-weight: 700; }
.social span { color: var(--w-muted); display: flex; align-items: center; gap: .5em; }
.social .ico { width: 1em; height: 1em; transition: transform .3s var(--spring); }
.social:hover .ico { transform: translate(2px, -2px); color: var(--accent); }
.form { display: grid; gap: .7em; margin-top: 1.4em; max-width: 34em; }
.form input, .form textarea {
  width: 100%; font: inherit; padding: .8em 1em; border-radius: .7em; color: var(--w-ink);
  border: 1px solid var(--w-line); background: var(--w-card); outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { border-color: var(--select); box-shadow: 0 0 0 3px rgba(47,111,237,.18); }
.form .btn { justify-self: start; }

/* Nota (TextEdit) */
.win--note .win-main { background: var(--tex-paper), #FFFEFB; background-blend-mode: multiply; padding: 2.4em 3em; color: #2A2A2E; }
.dark-ui .win--note .win-main { background: var(--tex-paper), #26262A; background-blend-mode: soft-light; color: #E8E8EA; }
.note-text { font-family: var(--serif); font-size: 1.35em; line-height: 1.5; max-width: 34em; outline: none; min-height: 60%; }
.note-text h1, .note-text h2 { font-weight: 400; font-size: 1.8em; margin-bottom: .4em; line-height: 1.1; }
.note-text p + p, .note-text ul, .note-text ol { margin-top: .6em; }
.note-text ul, .note-text ol { padding-left: 1.2em; }
.note-text a { color: var(--accent); }
.note-text[contenteditable="true"] { caret-color: var(--accent); }
.note-tools { display: flex; gap: .2em; }
.note-tools button { min-width: 2em; height: 1.9em; border-radius: .4em; font-weight: 700; color: var(--w-muted); }
.note-tools button:hover { background: rgba(127,127,127,.15); color: var(--w-ink); }

/* Documento (Vista previa) */
.win--doc .win-main { background: var(--tex-concrete), #8E8E93; background-blend-mode: soft-light; padding: 2em; display: grid; justify-items: center; align-content: start; }
.doc-page {
  width: 100%; max-width: 42em; padding: 3.2em 3.4em;
  background: var(--tex-paper), #fff; background-blend-mode: multiply;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.6);
  --w-card: #F7F5F0; --w-ink: #17171B; --w-muted: #7A766E; --w-line: rgba(0,0,0,.08); --w-bg: #fff;
  color: #17171B;
}

/* Acerca de / Ajustes / Papelera */
.win--about .win-main { display: grid; justify-items: center; text-align: center; padding: 1.6em 2em 2em; }
.spec-avatar { width: 6em; margin-bottom: 1em; }
.specs { margin-top: 1.2em; display: grid; gap: .35em; font-size: .9em; text-align: left; }
.specs div { display: grid; grid-template-columns: 9em 1fr; gap: 1em; }
.specs span { color: var(--w-muted); text-align: right; }

.set-sec + .set-sec { margin-top: 2em; }
.set-sec h4 { font-size: .8em; letter-spacing: .12em; text-transform: uppercase; color: var(--w-muted); margin-bottom: .9em; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5em, 1fr)); gap: .9em; }
.wp-opt { display: grid; gap: .45em; text-align: center; font-size: .9em; font-weight: 600; }
.wp-thumb {
  aspect-ratio: 16 / 10; border-radius: .7em; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px var(--w-line), 0 8px 18px -10px rgba(0,0,0,.4);
  transition: transform .4s var(--spring), box-shadow .2s;
}
.wp-thumb .wallpaper { container-type: size; }
.wp-opt:hover .wp-thumb { transform: translateY(-3px) rotate(-1.5deg); }
.wp-opt.active .wp-thumb { box-shadow: 0 0 0 3px var(--select), 0 8px 18px -10px rgba(0,0,0,.4); }
.acc-row { display: flex; gap: .7em; flex-wrap: wrap; }
.acc-row button { width: 2em; height: 2em; border-radius: 50%; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.acc-row button:hover { transform: scale(1.15); }
.acc-row button.active { box-shadow: 0 0 0 3px var(--w-bg), 0 0 0 5px var(--c); }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: .8em 1em; border-radius: .8em; background: var(--w-card); border: 1px solid var(--w-line); }
.switch { position: relative; width: 2.6em; height: 1.5em; border-radius: 99px; background: rgba(127,127,127,.35); transition: background .25s; }
.switch::after { content: ""; position: absolute; left: .15em; top: .15em; width: 1.2em; height: 1.2em; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .35s var(--spring); }
.switch.on { background: #34C759; }
.switch.on::after { transform: translateX(1.1em); }

.trash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); gap: 1em; margin-top: 1.2em; }
.trash-item { display: grid; justify-items: center; gap: .5em; padding: 1em .5em; border-radius: .8em; background: var(--w-card); border: 1px solid var(--w-line); text-align: center; font-weight: 600; font-size: .9em; }
.trash-empty { display: grid; justify-items: center; gap: .8em; padding: 3em 1em; text-align: center; color: var(--w-muted); }
.trash-empty .ico { width: 3.4em; height: 3.4em; opacity: .5; }

/* ==========================================================================
   Móvil
   ========================================================================== */
.mobile-layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.mobile-layer::before {
  content: ""; position: absolute; inset: 0; background: rgba(20,18,16,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s;
}
.mobile-layer.has-win::before { opacity: 1; pointer-events: auto; }
.mobile-layer .win {
  position: fixed !important;
  left: 10px !important; right: 10px !important; top: max(14px, env(safe-area-inset-top)) !important; bottom: 10px !important;
  width: auto !important; height: auto !important;
  font-size: 14px; border-radius: 18px;
}
.mobile-layer .win-side, .mobile-layer .win-resize { display: none; }
.mobile-layer .win-main { padding: 1.6em 1.3em 2.4em; }
.mobile-layer .light { width: 14px; height: 14px; }
.mobile-layer .light.min, .mobile-layer .light.max { display: none; }
.mobile-layer .pv { flex-direction: column; }
.mobile-layer .pv-info { width: auto; border-left: 0; border-top: 1px solid var(--w-line); }
.mobile-layer .timeline::before, .mobile-layer .tl-item::before { display: none; }
.mobile-layer .tl-item { grid-template-columns: 1fr; gap: .3em; }
.mobile-layer .b-heading.size-xl .h-serif { font-size: 3em; }
.mobile-layer .b-image.fit-medium, .mobile-layer .b-image.fit-small { max-width: 100%; }
.mobile-layer .b-gallery { grid-template-columns: repeat(2, 1fr); }
.mobile-layer .doc-page { padding: 2em 1.4em; }

@media (max-width: 719px) {
  .props { display: none; }
  .marquee { top: 24%; }
  .mq-track span { font-size: 28vw; }
  .bg-word { font-size: 40vw; }
  .corner { font-size: 11px; }
  .corner--tr span:first-child { display: none; }
  .replay span { display: none; }
  .replay { padding: 10px; gap: 0; }
  .replay svg { width: 16px; height: 16px; }
  .stage-hint { bottom: 22%; }

  .hero { display: none; }
  .icon { width: 22cqw; }
  .icon-img { width: 12.5cqw; }
  .icon-label { font-size: 7.5px; }
  .docico .tag { font-size: 1.4cqw; }
  .dock { height: calc(7cqw + 2cqw); padding: 1cqw; gap: 1cqw; border-radius: 3cqw; }
  .dock-item, .dock-item:hover, .dock-item:hover + .dock-item, .dock-item:has(+ .dock-item:hover),
  .dock-item:hover + .dock-item + .dock-item, .dock-item:has(+ .dock-item + .dock-item:hover) { width: 7cqw; height: 7cqw; }
  .dock-tip { display: none; }
  .dock-tile.mono { font-size: 4cqw; }
  .toast { width: 60cqw; font-size: 7px; }
  .menubar .mb-menu { display: none; }
  .menu { font-size: 11px; }
  .spot-box { font-size: 11px; width: 80cqw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   Fondo animado detrás del ordenador (solo transformaciones: ligero)
   ========================================================================== */
.aura { position: absolute; left: 50%; top: 42%; width: 0; height: 0; }
.aura i {
  position: absolute; border-radius: 50%;
  will-change: transform; opacity: .95;
}
.aura .a1 {
  width: 62vmin; height: 62vmin; margin: -31vmin;
  background: radial-gradient(closest-side, rgba(170,168,238,.55), rgba(170,168,238,.18) 55%, rgba(170,168,238,0));
  animation: orbit1 22s ease-in-out infinite;
}
.aura .a2 {
  width: 54vmin; height: 54vmin; margin: -27vmin;
  background: radial-gradient(closest-side, rgba(140,175,245,.5), rgba(140,175,245,.15) 55%, rgba(140,175,245,0));
  animation: orbit2 26s ease-in-out infinite;
}
.aura .a3 {
  width: 40vmin; height: 40vmin; margin: -20vmin;
  background: radial-gradient(closest-side, rgba(235,200,240,.45), rgba(235,200,240,.12) 55%, rgba(235,200,240,0));
  animation: orbit3 30s ease-in-out infinite;
}
@keyframes orbit1 { 0%, 100% { transform: translate(-22vmin, -6vmin) scale(1); } 50% { transform: translate(18vmin, 4vmin) scale(1.12); } }
@keyframes orbit2 { 0%, 100% { transform: translate(20vmin, -10vmin) scale(1.05); } 50% { transform: translate(-16vmin, 8vmin) scale(.92); } }
@keyframes orbit3 { 0%, 100% { transform: translate(0, 14vmin) scale(.9); } 50% { transform: translate(6vmin, -16vmin) scale(1.1); } }

/* Rótulo en contorno que se desplaza lentamente detrás del monitor */
.marquee { position: absolute; left: 0; right: 0; top: 30%; overflow: hidden; white-space: nowrap; pointer-events: none; }
.mq-track { display: inline-flex; will-change: transform; animation: marquee 80s linear infinite; }
.mq-track span {
  font-family: var(--serif); font-style: italic; font-size: 17vw; line-height: 1.1; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(20,20,30,.1); padding-right: .35em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Retícula de puntos muy sutil que se desvanece hacia los bordes */
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20,20,30,.1) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(60% 55% at 50% 45%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000, transparent 75%);
  animation: dotsDrift 40s linear infinite;
}
@keyframes dotsDrift { to { background-position: 26px 26px; } }

/* ==========================================================================
   Selector de tema claro / oscuro
   ========================================================================== */
.theme-toggle {
  position: relative; align-self: flex-end; margin-bottom: 8px;
  display: inline-flex; padding: 3px; border-radius: 99px;
  background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.07);
}
.theme-toggle button {
  position: relative; z-index: 1; width: 32px; height: 26px; border-radius: 99px;
  display: grid; place-items: center; color: var(--studio-muted); transition: color .3s;
}
.theme-toggle button[aria-pressed="true"] { color: var(--studio-ink); }
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tt-knob {
  position: absolute; top: 3px; left: 3px; width: 32px; height: 26px; border-radius: 99px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .5s var(--spring), background .4s;
}

/* Transición circular al cambiar de tema */
::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeReveal .85s cubic-bezier(.65, 0, .35, 1); mix-blend-mode: normal; }
@keyframes themeReveal {
  from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 5%)); }
  to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 5%)); }
}

/* ==========================================================================
   TEMA OSCURO (solo el exterior: fondo, ordenador, teclado y ratón)
   ========================================================================== */
body.theme-dark { --studio: #0B0B0D; --studio-ink: #F2F2F4; --studio-muted: rgba(242,242,244,.5); }
body.theme-dark .page-bg { background: #0B0B0D; }
body.theme-dark .aura i { opacity: 1; }
body.theme-dark .aura .a1 { background: radial-gradient(closest-side, rgba(110,100,230,.55), rgba(110,100,230,.15) 55%, rgba(110,100,230,0)); }
body.theme-dark .aura .a2 { background: radial-gradient(closest-side, rgba(60,110,240,.5), rgba(60,110,240,.12) 55%, rgba(60,110,240,0)); }
body.theme-dark .aura .a3 { background: radial-gradient(closest-side, rgba(190,110,220,.35), rgba(190,110,220,.1) 55%, rgba(190,110,220,0)); }
body.theme-dark .mq-track span { -webkit-text-stroke-color: rgba(255,255,255,.09); }
body.theme-dark .dots { background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); }
body.theme-dark .theme-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
body.theme-dark .tt-knob { transform: translateX(32px); background: #2C2D31; box-shadow: 0 1px 3px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
body.theme-dark .replay { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); box-shadow: none; }
body.theme-dark .replay:hover { background: rgba(255,255,255,.14); }

/* Monitor en grafito */
body.theme-dark .mon-front {
  background: linear-gradient(180deg, #2F3034 0%, #2A2B2F 84%, #252629 96%, #1B1C1F 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.09),
    inset 0 0 0 2px rgba(0,0,0,.35),
    0 calc(var(--w) * .004) calc(var(--w) * .012) rgba(0,0,0,.5),
    0 0 calc(var(--w) * .12) rgba(110,120,255,.1);
}
body.theme-dark .bezel { background: #0A0A0B; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.07); }
body.theme-dark .screen { box-shadow: 0 0 0 calc(var(--w) * .0018) #000; }
body.theme-dark .chin { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 18%, rgba(0,0,0,0) 85%, rgba(0,0,0,.25)); }
body.theme-dark .chin::before { background: rgba(255,255,255,.06); }
body.theme-dark .mon-side { background: linear-gradient(180deg, #3B3C41, #18191B); }
body.theme-dark .mon-side.t { background: #3E3F44; }
body.theme-dark .mon-back { background: linear-gradient(180deg, #2C2D31, #17181A); }
body.theme-dark .mon-logo { color: rgba(255,255,255,.14); }
/* Pie */
body.theme-dark .neck > .fc-front {
  background:
    linear-gradient(90deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 3%, rgba(255,255,255,0) 97%, rgba(0,0,0,.3) 100%),
    linear-gradient(180deg, #0E0F11 0%, #1C1D20 18%, #2D2E32 55%, #25262A 100%);
}
body.theme-dark .foot > .fc-front { background: linear-gradient(180deg, #4A4B50 0%, #2A2B2F 35%, #121315 100%); box-shadow: none; }
body.theme-dark .foot > .fc-top { background: linear-gradient(180deg, #1B1C1F, #333438); }
/* Teclado y ratón negros */
body.theme-dark .keyboard-body > .fc-top { background: linear-gradient(180deg, #2B2C30, #222326); }
body.theme-dark .keyboard-body > .fc-front { background: linear-gradient(180deg, #3D3E43 0%, #26272B 45%, #0F1012 100%); }
body.theme-dark .kb-key { background: linear-gradient(180deg, #1E1F22, #161719); box-shadow: 0 calc(var(--w) * .001) 0 #050506; color: #7E8189; }
body.theme-dark .kb-key.hit { box-shadow: 0 0 0 #050506; }
body.theme-dark .mouse-profile {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 78%, #2A2B2F 80%, #0F1012 100%),
    radial-gradient(80% 140% at 38% 10%, #505157 0%, #2A2B2F 45%, #141517 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.05);
}
/* Sombras sobre fondo oscuro */
body.theme-dark .shadow.contact { background: radial-gradient(closest-side, rgba(0,0,0,.7), rgba(0,0,0,.25) 60%, rgba(0,0,0,0)); }
body.theme-dark .shadow.soft { background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,.2) 60%, rgba(0,0,0,0)); }

/* ==========================================================================
   ESCRITORIO A PANTALLA COMPLETA (index.html · body.desk-full)
   Solo el interior de la pantalla, ocupando toda la ventana y sin animaciones
   de encendido. mac.html conserva la versión con el iMac en 3D.
   ========================================================================== */
body.desk-full { background: #000; }
body.desk-full .page-bg, body.desk-full .corner, body.desk-full .stage-hint, body.desk-full .sparkles { display: none !important; }
body.desk-full .stage { opacity: 1 !important; perspective: none; display: block; transition: none; }
body.desk-full .float { width: 100%; height: 100%; transform: none !important; will-change: auto; transform-style: flat; }
body.desk-full .rig { width: 100%; height: 100%; transform: none !important; transform-style: flat; }
body.desk-full .mon-group, body.desk-full .monitor { width: 100%; height: 100%; transform-style: flat; }
body.desk-full .mon-front { inset: 0; border-radius: 0; background: #000; box-shadow: none; }
body.desk-full .mon-front::after, body.desk-full .mon-back, body.desk-full .mon-side, body.desk-full .chin,
body.desk-full .bezel .cam, body.desk-full #standSlot, body.desk-full .set { display: none !important; }
body.desk-full .bezel { inset: 0; height: auto; padding: 0; border-radius: 0; background: #000; box-shadow: none; }
body.desk-full .screen { border-radius: 0; box-shadow: none; }
body.desk-full .screen::after { display: none; }
body.desk-full .power-hit { inset: 0; left: 0; right: 0; top: 0; height: auto; }
body.desk-full .power-hit span { font-size: 15px; }
/* Sin animaciones de pantalla: el escritorio aparece tal cual */
body.desk-full .desktop { transition: none; transform: none; }
body.desk-full .boot { display: none; }
body.desk-full .icon .icon-pop, body.desk-full .hero > *, body.desk-full .hero-title .w, body.desk-full .dock { animation: none !important; opacity: 1; }

/* ==========================================================================
   ICONOS ESTILO macOS
   ========================================================================== */
/* Escritorio: iconos planos como en el Finder, sin rebotes */
.icon-img { width: 5.4cqw; aspect-ratio: 1; perspective: none; display: block; border-radius: .7cqw; padding: .25cqw; }
.icon-img::after { display: none; }
.icon:hover .icon-img { transform: none; animation: none; }
.icon:active .icon-img { transform: none; }
.mac-ico, .mac-ico svg { display: block; width: 100%; height: 100%; }
.icon.selected .icon-img { background: rgba(0,0,0,.14); filter: none; }
.desktop.tone-dark .icon.selected .icon-img { background: rgba(255,255,255,.2); }
.icon-label { font-weight: 500; }
.icon.selected .icon-label { background: #0A64D8; border-radius: 4px; }
.trash-item .icon-img { width: 4.5em; }

/* Dock: iconos de app a tamaño completo */
.dock-tile.app { background: none !important; box-shadow: none !important; border-radius: 0; overflow: visible; }
.dock-tile.app svg { width: 100%; height: 100%; filter: none; stroke: none; }
.dock-item { width: 4.8cqw; height: 4.8cqw; }
.dock-item:hover { width: 6.6cqw; height: 6.6cqw; }
.dock-item::after { background: rgba(0,0,0,.55); }
.dock-tip { font-family: var(--font); background: rgba(236,236,238,.92); color: #1D1D1F; box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 4px 12px -4px rgba(0,0,0,.3); }

/* Barra lateral, títulos y menús: símbolos azules de línea */
.mini-sym { display: inline-grid; place-items: center; flex: none; width: 1.35em; height: 1.35em; }
.mini-sym .sym { width: 100%; height: 100%; fill: none; stroke: #0A84FF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.win-title .mini-sym { width: 1.25em; height: 1.25em; }
.mi .mini-sym { width: 1.1em; height: 1.1em; }

/* Notificación con icono de app */
.toast-ico { width: 2.6em; height: 2.6em; }
.toast-ico svg { width: 100%; height: 100%; }

@media (max-width: 719px) {
  .icon-img { width: 11cqw; }
  .dock-item, .dock-item:hover, .dock-item:hover + .dock-item, .dock-item:has(+ .dock-item:hover),
  .dock-item:hover + .dock-item + .dock-item, .dock-item:has(+ .dock-item + .dock-item:hover) { width: 8cqw; height: 8cqw; }
}

/* Webs: distintivos de estado y aviso de demo */
.feat-badge.live { background: #1F9D55; }
.feat-badge.demo { background: rgba(23,23,27,.82); }
.pv-demo { margin-top: 1.4em; padding: .9em 1em; border-radius: .7em; font-size: .82em; line-height: 1.45; color: var(--w-muted); background: rgba(127,127,127,.12); border: 1px solid var(--w-line); }
.pv-info .btn + .btn { margin-left: .4em; }
.pv-art > img { object-fit: contain; background: #0E0E10; }
