/* =========================================================
   styles.css — maaw.wtf
   Ventana chrome retro + popup terminal newsletter
   ========================================================= */

/* ===== CURSORES CUSTOM (Fizz set by Fizzenator, rw-designer.com) ===== */
html, body {
  cursor: url("assets/cursors/default.cur"), auto;
}
a, button, [role="button"], .link-card, .cmd-btn, .cmd-close, .cmd-titlebar, .win-btn, .nav-item, .tab, .close-x, [data-action], .clickable {
  cursor: url("assets/cursors/pointer.cur"), pointer !important;
}
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="url"], input[type="tel"], input[type="number"], textarea, [contenteditable="true"] {
  cursor: url("assets/cursors/text.cur"), text !important;
}
.cmd-titlebar, .app-window .titlebar, .draggable, .move-handle {
  cursor: url("assets/cursors/fizz-move.cur"), move;
}

/* ===== VARIABLES ===== */
:root {
  /* fondo */
  --bg-deep:        #000000;
  --panel-bg:       #111418;
  --panel-bg-2:     #161a22;
  --panel-border:   #1d2230;
  --panel-border-hi:#2f3850;

  /* texto */
  --text-1:         #f3f5f8;
  --text-2:         #c0c7d2;
  --text-3:         #7a8290;
  --text-mute:      #4a5160;

  /* verde LCD brillante */
  --accent:         #7dff8a;
  --accent-bright:  #b6ffb4;
  --accent-deep:    #25a83a;
  --accent-glow:    rgba(125, 255, 138, .55);
  --accent-glow-2:  rgba(125, 255, 138, .28);

  /* chrome plateado (para marco ventana y avatar) */
  --chrome-grad: linear-gradient(145deg,
      #ffffff 0%, #f5f1fb 8%, #d4c8de 18%,
      #897e95 34%, #f4f0f9 48%, #b6a9bd 62%,
      #ffffff 78%, #6c6175 100%);

  /* danger */
  --danger:         #ff4032;
  --danger-2:       #c81e10;

  /* tipografías */
  --font-mono:      "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-pixel:     "Coral Pixels", "VT323", "JetBrains Mono", monospace;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-deep);   /* negro absoluto */
  color: var(--text-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
html { scroll-behavior: smooth; }
::selection { background: rgba(125,255,138,.4); color: #fff; }

/* ===== FONDO ===== */
.bg-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: #000;             /* fondo negro absoluto */
  overflow: hidden;
}
.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .22;                 /* más oscuro */
  filter: saturate(.85) brightness(.85);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  opacity: .6;
}
.bg-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 80vmin; height: 80vmin;
  background: radial-gradient(circle, rgba(125,255,138,.08) 0%, transparent 60%);
  filter: blur(50px);
  animation: pulse 9s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: .5; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: .9; transform: translate(-50%,-50%) scale(1.1); }
}

/* ===== VENTANA CENTRAL ===== */
.app-window {
  position: relative; z-index: 2;
  width: min(94vw, 560px);
  margin: 40px auto 36px;
  padding: 0;
  border-radius: 22px;
  background: var(--chrome-grad);
  border: 2px solid rgba(245, 240, 255, .92);
  box-shadow:
    0 0 0 2px rgba(40, 32, 50, .9),
    0 0 0 5px rgba(200, 190, 215, .55),
    0 22px 60px rgba(0,0,0,.7),
    inset 0 3px 5px rgba(255,255,255,.95),
    inset 0 -8px 13px rgba(50, 42, 60, .55),
    inset 8px 0 14px rgba(255,255,255,.45),
    inset -8px 0 15px rgba(60, 50, 75, .55);
  transform: translateZ(0);
  animation: win-in .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes win-in {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.app-window.is-minimizing {
  animation: win-min .55s cubic-bezier(.55,.05,.68,.13) forwards;
  pointer-events: none;
}
@keyframes win-min {
  0%   { transform: translateY(0)     scale(1);   opacity: 1; }
  100% { transform: translateY(120vh) scale(.15); opacity: 0; }
}
.app-window.is-restoring { animation: win-in .55s cubic-bezier(.22,1,.36,1) both; }

/* ===== TAB FLOTANTE (icono + título) ===== */
.app-window-tab {
  position: absolute;
  top: -34px; left: 22px;     /* más arriba */
  z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px;                /* más alto */
  padding: 0 18px 0 4px;
  background: linear-gradient(180deg, #0a0d0e 0%, #14191c 100%);
  border: 1px solid #2a3036;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 2px 0 rgba(255,255,255,.4),
    0 8px 18px rgba(0,0,0,.6);
  overflow: hidden;
  max-width: min(72%, 380px);
  cursor: default;
  user-select: none;
}

/* círculo cromado a la izquierda del tab (más grande) */
.app-window-tab-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--chrome-grad);
  border: 1px solid #1a1a22;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -2px 4px rgba(0,0,0,.4),
    0 0 0 1px rgba(0,0,0,.5),
    0 1px 0 rgba(255,255,255,.3);
  display: inline-grid; place-items: center;
  flex-shrink: 0;
  position: relative;
}
.tab-person {
  width: 22px; height: 22px;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.4));
}

/* texto con marquee */
.app-window-tab-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent-bright);
  text-shadow: 0 0 8px var(--accent-glow), 0 0 2px var(--accent);
}
.app-window-tab-run {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 14s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ===== BOTONES FLOTANTES (top-right, sobresalen, más grandes) ===== */
.app-window-buttons {
  position: absolute;
  top: -20px; right: 18px;
  z-index: 3;
  display: inline-flex; gap: 10px;
}
.winbtn {
  width: 35px; height: 35px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.55);
  padding: 0;
  position: relative;
  display: inline-grid; place-items: center;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  transition: filter .15s ease, transform .1s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -4px 5px rgba(0,0,0,.35),
    0 3px 6px rgba(0,0,0,.55),
    0 0 0 2px rgba(0,0,0,.4);
}
.winbtn:hover  { filter: brightness(1.12); }
.winbtn:active { transform: scale(.92); }

.winbtn--min {
  background: radial-gradient(circle at 30% 25%, #b8ffd0 0%, #29c25a 45%, #0a6a30 100%);
}
.winbtn--close {
  background: radial-gradient(circle at 30% 25%, #ffd2cd 0%, #ff4632 40%, #8e0e08 100%);
}
.winbtn-glyph {
  font-size: 19px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
  pointer-events: none;
}
.winbtn--min .winbtn-glyph { font-size: 22px; transform: translateY(-3px); }

/* ===== CUERPO INTERNO ===== */
.app-window-body {
  position: relative;
  margin: 22px 10px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0e1216 0%, #0a0c0e 60%, #060809 100%);
  border: 1px solid #1c2030;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.04),
    inset 0 -1px 0 rgba(0,0,0,.45),
    0 0 0 1px rgba(0,0,0,.6);
  padding: 30px 24px 26px;
  min-height: 240px;
  overflow: hidden;
  isolation: isolate;
}
/* glow superior sutil (solo en la parte alta del panel) */
.app-window-body::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 75%; height: 80px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
  filter: blur(2px);
  z-index: 0;
}
.app-window-body > * { position: relative; z-index: 1; }

/* ============================================================
   VISTA HOME — perfil + lista de links
   ============================================================ */
.view-home {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Avatar con marco cromado */
.profile-avatar {
  position: relative;
  width: 110px; height: 110px;
  padding: 6px;
  border-radius: 50%;
  background: var(--chrome-grad);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 0 0 1px rgba(0,0,0,.5),
    0 0 0 3px rgba(0,0,0,.3),
    0 0 22px var(--accent-glow-2),
    0 8px 18px rgba(0,0,0,.6);
  display: inline-grid; place-items: center;
  flex-shrink: 0;
}
.profile-avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #0a0d0e;
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 2px 4px rgba(0,0,0,.8);
  position: relative;
}
.profile-avatar-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.profile-avatar.no-img .profile-avatar-inner::after {
  content: "";
  width: 60%; height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #6e7686 35%, #2a2f3a 100%);
  opacity: .6;
}

/* corners verdes decorativos alrededor del avatar */
.profile-avatar::after {
  content: "";
  position: absolute;
  inset: -14px;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 14px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 14px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 1.5px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 14px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 1.5px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 14px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1.5px 14px no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

/* Tags */
.profile-tags {
  display: inline-flex; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--text-3);
  text-transform: uppercase;
}
.profile-tags .dot { color: var(--accent); text-shadow: 0 0 6px var(--accent-glow); }

/* Nombre */
.profile-name {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-align: center;
}
.profile-bio {
  margin: 0;
  max-width: 380px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}

/* Lista de cards */
.links-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  width: 100%;
  display: flex; flex-direction: column;
  gap: 10px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--panel-bg);
  /* borde transparente para que no se vea como contorno claro;
     solo aparece en hover */
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text-1);
  transition:
    transform .14s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .22s ease;
  overflow: hidden;
}
.link-card:hover {
  transform: translateY(-1px);
  background: var(--panel-bg-2);
  border-color: var(--accent);
  box-shadow:
    0 6px 18px rgba(0,0,0,.5),
    0 0 0 1px var(--accent-glow-2),
    0 0 22px var(--accent-glow-2);
}
.link-card::before, .link-card::after {
  content: ""; position: absolute;
  width: 10px; height: 10px;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  display: none;       /* totalmente ocultos hasta hover */
}
.link-card::before { top: 4px; left: 4px;   border-right: 0; border-bottom: 0; }
.link-card::after  { bottom: 4px; right: 4px; border-left: 0; border-top: 0; }
.link-card:hover::before, .link-card:hover::after { display: block; }

.link-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #1a1f2a;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.link-card-icon svg { width: 22px; height: 22px; }

.link-card-text { min-width: 0; }
.link-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
}
.link-card-sub {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card-action {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--text-2);
  text-transform: lowercase;
  white-space: nowrap;
}
.link-card-action .arrow { transition: transform .14s ease; }
.link-card:hover .link-card-action {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
}
.link-card:hover .link-card-action .arrow { transform: translateX(3px); }

/* Featured */
.link-card.is-featured {
  background: linear-gradient(180deg, #102218 0%, #0a1812 100%);
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(125,255,138,.3),
    0 0 0 1px rgba(125,255,138,.45),
    0 0 28px var(--accent-glow-2),
    0 6px 22px rgba(0,0,0,.55);
}
.link-card.is-featured::before, .link-card.is-featured::after { opacity: 1; }
.link-card.is-featured .link-card-icon {
  background: rgba(125,255,138,.12);
  box-shadow: inset 0 0 0 1px rgba(125,255,138,.35);
}
.link-card.is-featured .link-card-action {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
}

/* Footer split: email negocios | unete al equipo */
.profile-footer {
  margin-top: 14px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px dashed rgba(255,255,255,.08);
  padding-top: 16px;
}
.footer-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--text-2);
  text-transform: uppercase;
  transition: color .15s ease, text-shadow .15s ease, transform .15s ease;
  white-space: nowrap;
}
.footer-action-ico {
  width: 12px; height: 12px;
  display: inline-grid; place-items: center;
  color: currentColor;
}
.footer-action-ico svg { width: 12px; height: 12px; }
.footer-action:hover {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
  transform: translateY(-1px);
}

/* ============================================================
   VISTA RECOMENDACIONES
   ============================================================ */
.view-reco { display: flex; flex-direction: column; gap: 18px; }

.reco-toolbar {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-3);
}
.reco-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel-bg);
  color: var(--text-2);
  font-family: var(--font-mono); font-size: 11px;
  transition: all .15s ease;
}
.reco-back:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
}
.reco-breadcrumb { color: var(--text-3); }
.reco-breadcrumb b { color: var(--text-1); }

.reco-group { display: flex; flex-direction: column; gap: 10px; }
.reco-group-head {
  display: flex; align-items: center;
  padding: 12px 14px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--text-1);
  text-transform: uppercase;
}

.reco-item {
  display: grid;
  grid-template-columns: 64px 120px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  transition: border-color .15s ease, background .15s ease;
}
.reco-item:hover {
  border-color: var(--panel-border-hi);
  box-shadow: 0 0 0 1px rgba(125,255,138,.12), 0 0 18px rgba(125,255,138,.08);
}

.reco-item-meta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.reco-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid rgba(125,255,138,.4);
  background: rgba(125,255,138,.06);
}
.reco-item-icon svg { width: 22px; height: 22px; }
.reco-item-icon { color: var(--accent); }
.reco-item-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
  text-shadow: 0 0 6px var(--accent-glow-2);
}
.reco-item-price {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
}

.reco-item-image {
  width: 120px; aspect-ratio: 1;
  background: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}
.reco-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.reco-item-image.no-img {
  background: repeating-linear-gradient(45deg, #1a1f2a 0 10px, #161a22 10px 20px);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.reco-item-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.reco-item-title {
  margin: 0;
  font-size: 16px; font-weight: 700; line-height: 1.2;
}
.reco-item-short { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.reco-item-long  { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.5; }

.reco-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.reco-store {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--panel-bg-2);
  border: 1px solid var(--panel-border-hi);
  border-radius: 10px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  transition: all .14s ease;
}
.reco-store .reco-store-ico {
  display: inline-grid; place-items: center;
  width: 14px; height: 14px;
  color: var(--accent);
}
.reco-store .reco-store-ico svg { width: 14px; height: 14px; }
.reco-store .reco-store-name { display: inline-block; }
.reco-store:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
  box-shadow: 0 0 0 1px rgba(125,255,138,.3), 0 0 16px var(--accent-glow-2);
}
.reco-store:hover .reco-store-ico { color: var(--accent); filter: drop-shadow(0 0 4px var(--accent-glow)); }

/* ============================================================
   BOTÓN CHROME (retro Win98 / Ünete style)
   Outer: aro plateado · Inner: pastilla de color con texto Unispace
   ============================================================ */
.chrome-btn {
  display: inline-block;
  padding: 5px;
  background: var(--chrome-grad);
  border: 2px solid rgba(245, 240, 255, .92);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -4px 8px rgba(50, 42, 60, .55),
    0 0 0 1px rgba(40, 32, 50, .9),
    0 6px 16px rgba(0,0,0,.55);
  color: inherit;
  text-decoration: none;
  transition: transform .14s ease, filter .14s ease;
  cursor: pointer;
}
.chrome-btn:hover  { transform: translateY(-2px); filter: brightness(1.04); }
.chrome-btn:active { transform: translateY(0); filter: brightness(.95); }

.chrome-btn-inner {
  display: inline-block;
  padding: 9px 24px;
  border-radius: 6px;
  font-family: "Unispace", "Share Tech Mono", "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: lowercase;
  border: 2px solid rgba(0,0,0,.45);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
  line-height: 1;
  user-select: none;
}

/* Inner amarillo (newsletter) */
.chrome-btn--yellow .chrome-btn-inner {
  background:
    linear-gradient(180deg,
      #fff4a3 0%,
      #ffe54a 25%,
      #f6c81b 55%,
      #b88600 100%);
  color: #2a1c00;
  border-color: #8a6500;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -2px 0 rgba(140, 100, 0, .35);
}

/* Inner gris (restaurar) */
.chrome-btn--gray .chrome-btn-inner {
  background:
    linear-gradient(180deg,
      #ecedf2 0%,
      #c8c8d2 30%,
      #8b8995 65%,
      #4f4d5a 100%);
  color: #15131a;
  border-color: #2a262e;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -2px 0 rgba(40, 35, 50, .35);
}

/* Newsletter button: posicionamiento fijo en esquina */
.newsletter-btn {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 5;
}

/* ============================================================
   EASTER EGG (gato)
   ============================================================ */
.easter-cat {
  position: fixed; inset: 0; z-index: 1;
  display: grid; place-items: center;
  padding: 20px;
  pointer-events: none;
}
.easter-cat[hidden] { display: none; }
.easter-cat-card {
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: fade-in .6s ease both;
}
.easter-cat-img {
  width: min(340px, 72vw); aspect-ratio: 1;
  border-radius: 18px;
  border: 2px solid var(--panel-border-hi);
  box-shadow:
    0 20px 60px rgba(0,0,0,.7),
    0 0 0 4px rgba(255,255,255,.05),
    0 0 28px rgba(125,255,138,.18);
  background-image: url("assets/easter.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.easter-cat-caption {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--accent-bright);
  text-shadow: 0 0 8px var(--accent-glow), 0 0 2px var(--accent);
  letter-spacing: .04em;
}
/* el botón restaurar ahora usa .chrome-btn--gray (definido arri
/* ============================================================
   CARD DESHABILITADO (Merch próximamente)
   ============================================================ */
.link-card.is-disabled {
  background: #0c0e12;
  opacity: .55;
  filter: grayscale(.8);
  cursor: not-allowed;
  pointer-events: auto;  /* permite el cursor pero el JS bloquea */
}
.link-card.is-disabled:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  background: #0c0e12;
}
.link-card.is-disabled .link-card-title { color: var(--text-3); }
.link-card.is-disabled .link-card-sub { color: var(--text-mute); }
.link-card.is-disabled .link-card-icon {
  background: #11141a;
  filter: grayscale(1);
}
.link-card.is-disabled .link-card-action {
  color: var(--text-mute);
  font-size: 12px;
}
.link-card.is-disabled::before,
.link-card.is-disabled::after { display: none !important; }

/* ============================================================
   EASTER CAT — Comic Sans blanco que desentona a propósito
   ============================================================ */
.easter-cat-caption {
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive !important;
  font-size: 26px !important;
  color: #ffffff !important;
  text-shadow:
    0 2px 0 rgba(0,0,0,.65),
    1px 1px 0 rgba(0,0,0,.4) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 700;
}

/* ============================================================
   COLORES POR GRUPO EN ICONOS DE RECOMENDACIONES
   ============================================================ */
.reco-group[data-group="mi-pc"] .reco-item-icon {
  border-color: rgba(56, 130, 246, .45);
  background: rgba(56, 130, 246, .08);
  color: #3b82f6;
}
.reco-group[data-group="mi-pc"] .reco-item-cat {
  color: #3b82f6;
  text-shadow: 0 0 6px rgba(56,130,246,.3);
}

.reco-group[data-group="perifericos"] .reco-item-icon {
  border-color: rgba(125, 255, 138, .45);
  background: rgba(125, 255, 138, .08);
  color: #7dff8a;
}
.reco-group[data-group="perifericos"] .reco-item-cat {
  color: #7dff8a;
  text-shadow: 0 0 6px rgba(125,255,138,.3);
}

.reco-group[data-group="sonido"] .reco-item-icon {
  border-color: rgba(251, 146, 60, .45);
  background: rgba(251, 146, 60, .08);
  color: #fb923c;
}
.reco-group[data-group="sonido"] .reco-item-cat {
  color: #fb923c;
  text-shadow: 0 0 6px rgba(251,146,60,.3);
}

.reco-group[data-group="camaras-e-iluminacion"] .reco-item-icon {
  border-color: rgba(236, 72, 153, .45);
  background: rgba(236, 72, 153, .08);
  color: #ec4899;
}
.reco-group[data-group="camaras-e-iluminacion"] .reco-item-cat {
  color: #ec4899;
  text-shadow: 0 0 6px rgba(236,72,153,.3);
}

.reco-group[data-group="otras-cosas-que-uso"] .reco-item-icon {
  border-color: rgba(180, 188, 200, .45);
  background: rgba(180, 188, 200, .08);
  color: #b4bcc8;
}
.reco-group[data-group="otras-cosas-que-uso"] .reco-item-cat {
  color: #b4bcc8;
  text-shadow: 0 0 6px rgba(180,188,200,.3);
}

/* ============================================================
   RECO ITEM — fix overflow del title
   ============================================================ */
.reco-item {
  grid-template-columns: 78px 110px 1fr;
}
.reco-item-cat {
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
  max-width: 78px;
  display: inline-block;
}
.reco-item-meta { gap: 5px; }
.reco-item-meta .reco-item-icon { width: 38px; height: 38px; }

/* ============================================================
   ANIMACIONES DE CARGA — cascade + matrix
   ============================================================ */
.app-window-body.is-loading .view-home > * {
  opacity: 0;
  animation: cascadeUp .55s cubic-bezier(.22,1,.36,1) forwards;
}
.app-window-body.is-loading .view-home > *:nth-child(1) { animation-delay: .05s; }
.app-window-body.is-loading .view-home > *:nth-child(2) { animation-delay: .12s; }
.app-window-body.is-loading .view-home > *:nth-child(3) { animation-delay: .19s; }
.app-window-body.is-loading .view-home > *:nth-child(4) { animation-delay: .26s; }
.app-window-body.is-loading .view-home > *:nth-child(5) { animation-delay: .33s; }
.app-window-body.is-loading .view-home > *:nth-child(6) { animation-delay: .40s; }

@keyframes cascadeUp {
  from { opacity: 0; transform: translateY(10px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Cards individuales: leve stagger interno */
.app-window-body.is-loading .links-list > li {
  opacity: 0;
  animation: cascadeUp .45s cubic-bezier(.22,1,.36,1) forwards;
}
.app-window-body.is-loading .links-list > li:nth-child(1) { animation-delay: .45s; }
.app-window-body.is-loading .links-list > li:nth-child(2) { animation-delay: .50s; }
.app-window-body.is-loading .links-list > li:nth-child(3) { animation-delay: .55s; }
.app-window-body.is-loading .links-list > li:nth-child(4) { animation-delay: .60s; }
.app-window-body.is-loading .links-list > li:nth-child(5) { animation-delay: .65s; }
.app-window-body.is-loading .links-list > li:nth-child(6) { animation-delay: .70s; }
.app-window-body.is-loading .links-list > li:nth-child(7) { animation-delay: .75s; }
.app-window-body.is-loading .links-list > li:nth-child(8) { animation-delay: .80s; }
.app-window-body.is-loading .links-list > li:nth-child(9) { animation-delay: .85s; }

/* Ventana entra desde abajo más pronunciado */
@keyframes win-in {
  from { opacity: 0; transform: translateY(60px) scale(.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ============================================================
   MOBILE — fix newsletter borde exagerado
   ============================================================ */
@media (max-width: 640px) {
  .newsletter-btn { right: 10px; bottom: 10px; }
  .newsletter-btn.chrome-btn { padding: 3px; border-width: 1.5px; border-radius: 10px; }
  .newsletter-btn .chrome-btn-inner {
    padding: 6px 14px;
    font-size: 11px;
    letter-spacing: .12em;
    border-radius: 4px;
    border-width: 1.5px;
  }
  .profile-footer { gap: 8px; }
  .footer-action { font-size: 9.5px; letter-spacing: .12em; }
  .reco-item { grid-template-columns: 1fr; }
  .reco-item-cat { ma
/* ============================================================
   MOBILE: tab más corta para no rozar botones
   ============================================================ */
@media (max-width: 640px) {
  .app-window-tab {
    top: -28px; left: 12px;
    height: 36px;
    max-width: 52%;
    padding: 0 12px 0 3px;
    gap: 7px;
  }
  .app-window-tab-icon { width: 30px; height: 30px; }
  .tab-person { width: 18px; height: 18px; }
  .app-window-tab-text { font-size: 10.5px; }
  .app-window-buttons { top: -16px; right: 10px; gap: 6px; }
  .winbtn { width: 30px; height: 30px; }
  .winbtn-glyph { font-size: 16px; }
  .winbtn--min .winbtn-glyph { font-size: 18px; transform: translateY(-2px); }
}

/* ============================================================
   NEWSLETTER con icono mail
   ============================================================ */
.newsletter-btn .chrome-btn-inner {
  display: inline-flex; align-items: center; gap: 8px;
}
.newsletter-btn-ico {
  display: inline-grid; place-items: center;
  width: 14px; height: 14px;
  color: currentColor;
}
.newsletter-btn-ico svg { width: 14px; height: 14px; }

/* ============================================================
   BSOD safety: forzar visibilidad cuando se muestra
   ============================================================ */
.bsod:not([hidden]) {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ============================================================
   SR-ONLY (texto oculto para SEO / accesibilidad)
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   FORZAR tamaño del icono newsletter (defensa contra SVG sin sizing)
   ============================================================ */
.newsletter-btn-ico,
.newsletter-btn-ico svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
}

/* ============================================================
   NEWSLETTER POPUP v3 — bottom sheet mobile / side panel desktop
   Estilo CRT antiguo con VT323 + ASCII art + cursor parpadeante
   ============================================================ */
.cmd-backdrop {
  position: fixed !important;
  inset: 0;
  z-index: 9998 !important;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  animation: cmd-fade .2s ease both;
}
@keyframes cmd-fade  { from { opacity: 0 } to { opacity: 1 } }

/* === MOBILE FIRST: bottom sheet ocupando mitad inferior === */
.cmd-popup {
  position: fixed !important;
  z-index: 9999 !important;
  /* defaults mobile */
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  max-height: 60vh !important;
  border-radius: 14px 14px 0 0 !important;
  border: 1px solid #2a3036 !important;
  border-bottom: none !important;
  background: #000 !important;
  color: #d8d8d8 !important;
  font-family: "VT323", "JetBrains Mono", monospace !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow:
    0 0 0 1px rgba(125,255,138,.15),
    0 -24px 60px rgba(0,0,0,.85);
  animation: cmd-slide-up .35s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cmd-slide-up {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === DESKTOP ≥768px: panel lateral derecho === */
@media (min-width: 768px) {
  .cmd-popup {
    left: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    top: 24px !important;
    width: min(94vw, 440px) !important;
    max-height: none !important;
    border-radius: 4px !important;
    border: 1px solid #2a3036 !important;
    animation: cmd-slide-in .35s cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes cmd-slide-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}

/* === Title bar === */
.cmd-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: #0a0d0e;
  border-bottom: 1px solid #1c2030;
  font-family: "VT323", monospace;
  font-size: 17px;
  color: #d8d8d8;
  user-select: none;
  flex-shrink: 0;
  letter-spacing: 0;
}
.cmd-titlebar-prompt { color: #d8d8d8; }
.cmd-titlebar-prompt .pmt { color: var(--accent); text-shadow: 0 0 6px var(--accent-glow); }
.cmd-titlebar-prompt .path { color: #5cd0d0; }
.cmd-titlebar-cmd {
  color: var(--accent-bright);
  text-shadow: 0 0 6px var(--accent-glow);
  flex: 1;
}
.cmd-close {
  background: transparent;
  color: #d8d8d8;
  border: none;
  font-family: "VT323", monospace;
  font-size: 17px;
  padding: 0 4px;
  cursor: pointer;
  letter-spacing: 0;
}
.cmd-close:hover {
  color: #ff6b6b;
  text-shadow: 0 0 6px rgba(255,107,107,.5);
}

/* === Body === */
.cmd-body {
  flex: 1;
  padding: 14px 18px 16px;
  overflow-y: auto;
  background: #000;
  color: #d8d8d8;
  font-family: "VT323", monospace;
  font-size: 18px;
  line-height: 1.3;
}

/* ASCII art */
.cmd-ascii {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
  white-space: pre;
  text-align: center;
  margin: 0 auto 10px;
  letter-spacing: 0;
  opacity: .9;
}

/* Big pixel title */
.cmd-bigtitle {
  font-family: "Coral Pixels", "VT323", monospace;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--accent-bright);
  text-shadow:
    0 0 10px var(--accent-glow),
    0 0 22px rgba(125,255,138,.25),
    2px 2px 0 rgba(0,0,0,.6);
  margin: 0 0 10px;
  line-height: 1;
  text-align: center;
}

/* Small label */
.cmd-label {
  font-family: "VT323", monospace;
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
  margin: 0 0 6px;
  text-align: center;
}

/* Heading */
.cmd-heading {
  font-family: "VT323", monospace;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 8px;
  text-align: left;
}

/* Description */
.cmd-desc {
  font-family: "VT323", monospace;
  font-size: 17px;
  line-height: 1.25;
  color: #c8c8c8;
  margin: 0 0 14px;
}

/* Prompt line */
.cmd-prompt-text {
  font-family: "VT323", monospace;
  font-size: 16px;
  color: #d8d8d8;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-prompt-text .pmt { color: var(--accent); text-shadow: 0 0 6px var(--accent-glow); }
.cmd-prompt-text .path { color: #5cd0d0; }
.cmd-prompt-text .hi { color: #fff; }

/* Input row */
.cmd-input-row {
  display: flex; align-items: stretch; gap: 0;
  background: #000;
  border: 1px solid #2a3036;
  border-radius: 2px;
  margin-bottom: 10px;
  min-height: 38px;
}
.cmd-arrow {
  display: inline-flex; align-items: center;
  padding: 0 10px;
  color: var(--accent);
  font-family: "VT323", monospace;
  font-size: 22px;
  font-weight: 400;
  text-shadow: 0 0 6px var(--accent-glow);
  user-select: none;
}
.cmd-input-wrap {
  position: relative;
  flex: 1; min-width: 0;
  display: flex; align-items: center;
}
.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: .04em;
  padding: 6px 4px;
  text-transform: uppercase;
  caret-color: #fff;
}
.cmd-input::placeholder {
  color: rgba(255,255,255,.22);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cmd-input.is-error { color: #ff6b6b; animation: cmd-shake .35s; }
@keyframes cmd-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* Cursor parpadeante blanco que aparece cuando el input está vacío y sin foco */
.cmd-blink-cursor {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  animation: blink-cursor 1.05s steps(2,end) infinite;
}
@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
/* Ocultar cursor fake cuando el input tiene contenido o está enfocado */
.cmd-input:focus + .cmd-blink-cursor,
.cmd-input:not(:placeholder-shown) + .cmd-blink-cursor {
  display: none;
}

/* Turnstile container */
.cmd-turnstile {
  margin: 10px 0;
  min-height: 64px;
  display: flex;
  justify-content: center;
}
.cmd-turnstile:empty::before {
  content: "[ verificando que no eres un bot... ]";
  color: var(--text-3);
  font-family: "VT323", monospace;
  font-size: 14px;
}

.cmd-actions-row { display: flex; margin: 8px 0; }
.cmd-submit {
  flex: 1;
  background: linear-gradient(180deg, rgba(125,255,138,.18) 0%, rgba(125,255,138,.06) 100%);
  border: 2px solid var(--accent);
  color: var(--accent-bright);
  font-family: "VT323", monospace;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .22em;
  padding: 14px 18px;
  cursor: pointer;
  text-shadow: 0 0 10px var(--accent-glow), 0 0 2px var(--accent);
  transition: all .18s ease;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(125,255,138,.25),
    0 0 18px rgba(125,255,138,.22),
    0 4px 14px rgba(0,0,0,.45);
  position: relative;
  overflow: hidden;
}
.cmd-submit:hover {
  background: linear-gradient(180deg, rgba(125,255,138,.32) 0%, rgba(125,255,138,.14) 100%);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(125,255,138,.5),
    0 0 28px rgba(125,255,138,.45),
    0 6px 20px rgba(0,0,0,.55);
  transform: translateY(-1px);
}
.cmd-submit:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.4), 0 0 14px rgba(125,255,138,.3);
}

.cmd-success {
  margin: 10px 0;
  padding: 8px 10px;
  background: rgba(125,255,138,.06);
  border: 1px solid rgba(125,255,138,.45);
  border-radius: 2px;
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
  font-family: "VT323", monospace;
  font-size: 16px;
}

/* Terms checkbox */
.cmd-terms {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px;
  font-family: "VT323", monospace;
  font-size: 14px;
  line-height: 1.3;
  color: #888;
  cursor: pointer;
}
.cmd-terms input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  margin: 2px 0 0 0;
  background: #000;
  border: 1px solid #2a3036;
  border-radius: 2px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}
.cmd-terms input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.cmd-terms input[type="checkbox"]:checked::after {
  content: "X";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  font-family: "VT323", monospace;
  line-height: 1;
}
.cmd-terms a {
  color: var(--accent);
  text-decoration: underline;
  text-shadow: 0 0 6px var(--accent-glow);
}
.cmd-terms a:hover { color: var(--accent-bright); }

/* ajustes mobile específicos */
@media (max-width: 767px) {
  .cmd-body { padding: 12px 14px 14px; }
  .cmd-ascii { font-size: 10px; }
  .cmd-bigtitle { font-size: 32px; }
  .cmd-heading { font-size: 22px; }
  .cmd-desc { font-size: 16px; }
}
