[hidden] { display: none !important; }

/* ---------- Centro del escritorio: apps + carpetas ---------- */
.desktop-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-height: calc(100vh - var(--menubar-h) - var(--dock-h) - 24px);
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: none;
}
.desktop-center::-webkit-scrollbar { display: none; }

.apps-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px 30px;
  padding: 4px;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 130px;
  padding: 6px 4px;
  background: none;
  border: 0;
}
.app-icon-img {
  width: 73px;
  height: 73px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.28));
  transition: transform 0.18s cubic-bezier(.3,.7,.4,1.4);
}
.app-icon-label { overflow-wrap: normal; }
.app-icon-img svg { width: 100%; height: 100%; display: block; }
.app-icon:hover .app-icon-img { transform: translateY(-3px) scale(1.06); }
.app-icon:active .app-icon-img { transform: scale(0.94); }
.app-icon.launching .app-icon-img { animation: app-bounce 0.55s ease; }
@keyframes app-bounce {
  0%, 100% { transform: none; }
  35% { transform: translateY(-12px); }
  65% { transform: translateY(0); }
  82% { transform: translateY(-4px); }
}

.photos-widget { transition: transform 0.18s ease; }
.photos-widget:hover { transform: scale(1.02); }

/* ---------- Ventanas ---------- */
.windows-layer {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}

.win {
  position: absolute;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.3), 0 28px 70px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.15);
  /* crece desde el punto del clic (transform-origin lo pone apps.js) */
  animation: win-open 0.3s cubic-bezier(.16, 1, .3, 1);
  transform-origin: center 70%;
}
.win.is-parked { visibility: hidden; pointer-events: none; animation: none !important; }
.win:not(.focused) { box-shadow: 0 0 0 0.5px rgba(0,0,0,0.22), 0 16px 40px rgba(0,0,0,0.22); }
.win.closing { animation: win-close 0.18s ease-in forwards; pointer-events: none; }
.win.minimizing { animation: win-min 0.34s cubic-bezier(.5, 0, .75, 0) forwards; pointer-events: none; }
.win.maximized {
  left: 0 !important;
  top: var(--menubar-h) !important;
  width: 100vw !important;
  height: calc(100vh - var(--menubar-h) - var(--dock-h) - 22px) !important;
  border-radius: 0 0 12px 12px;
}
.win.zooming { transition: left 0.28s cubic-bezier(.2, .8, .2, 1), top 0.28s cubic-bezier(.2, .8, .2, 1), width 0.28s cubic-bezier(.2, .8, .2, 1), height 0.28s cubic-bezier(.2, .8, .2, 1), border-radius 0.28s; }

@keyframes win-open { from { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes win-close { to { opacity: 0; transform: scale(0.94); } }
@keyframes win-min { to { opacity: 0; transform: scale(0.06); } }
@keyframes fade-zoom { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .win, .win.closing, .win.minimizing, .photos-viewer.open, .app-icon.launching .app-icon-img { animation-duration: 1ms !important; }
  .win.zooming, .dock-icon, .app-icon-img, .ga-slide, .photo-slide { transition: none !important; }
}

.win-titlebar {
  position: relative;
  flex-shrink: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: #f6f6f6;
  border-bottom: 1px solid rgba(0,0,0,0.09);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.win-toolbar {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.win-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
  pointer-events: none;
}
.win:not(.focused) .win-title { opacity: 0.55; }
.win-title-left { font-size: 13px; font-weight: 600; color: #1d1d1f; }

.win-body {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.traffic-lights { display: flex; gap: 8px; flex-shrink: 0; }
.tl {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.18);
}
.tl svg { width: 8px; height: 8px; opacity: 0; fill: none; stroke: rgba(0,0,0,0.55); stroke-width: 1.3; stroke-linecap: round; }
.tl-max svg { fill: rgba(0,0,0,0.55); stroke: none; }
.tl-close { background: #ff5f57; }
.tl-min { background: #febc2e; }
.tl-max { background: #28c840; }
.traffic-lights:hover .tl svg { opacity: 1; }
.win:not(.focused) .traffic-lights:not(:hover) .tl { background: #d6d6d6; }

.nav-arrows { display: flex; gap: 2px; color: #6e6e73; }
.nav-arrows button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-arrows button:disabled { opacity: 0.4; }

/* Sidebar compartida (Fotos, Finder) */
.side {
  background: #efeef2;
  border-right: 1px solid rgba(0,0,0,0.08);
  padding: 10px;
  overflow: auto;
  font-size: 13px;
}
.side-label { font-size: 11px; font-weight: 600; color: #8a8a8e; margin: 12px 8px 4px; }
.side-label:first-child { margin-top: 2px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #1d1d1f;
}
.side-item svg { color: #0a84ff; flex-shrink: 0; }
.side-item.active { background: rgba(0,0,0,0.08); }

/* ---------- Google Analytics ---------- */
.win-analytics .win-titlebar { background: #fff; border-bottom-color: #dadce0; }
.win-analytics .win-body { background: #f1f3f4; }
.ga-brand { display: flex; align-items: center; gap: 8px; font-size: 17px; color: #5f6368; white-space: nowrap; }
.ga-brand svg { width: 26px; height: 26px; }
.ga-crumb {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid #dadce0;
  line-height: 1.25;
  white-space: nowrap;
}
.ga-crumb small { font-size: 11px; color: #5f6368; }
.ga-crumb strong { font-size: 13px; font-weight: 500; color: #202124; overflow: hidden; text-overflow: ellipsis; }

.ga-stage {
  flex: 1;
  min-height: 0;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.ga-frame {
  position: relative;
  width: min(100cqw, 100cqh * 16 / 9);
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60,64,67,0.3), 0 2px 8px rgba(60,64,67,0.15);
}
.ga-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ga-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7% 8%;
  background: #fff;
  color: #202124;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ga-slide.active { opacity: 1; }
.ga-image { padding: 0; background: #000; }
.ga-image img { width: 100%; height: 100%; object-fit: contain; }

.ga-cover { border-top: 1.2cqw solid #f9ab00; }
.ga-cover-mark svg { width: 7cqw; height: 7cqw; margin-bottom: 2.5cqw; }
.ga-cover h2 { margin: 0; font-size: 5.6cqw; font-weight: 500; letter-spacing: -0.02em; }
.ga-cover p { margin: 1.4cqw 0 0; font-size: 2.1cqw; color: #5f6368; }

/* Informe de resultados (diapositivas 16:9, medidas en cqw del marco) */
.rp-cover h2 { font-size: 4.6cqw; line-height: 1.12; }
.rp-cover .rp-real {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  font-size: 8.2cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #202124;
}
.rp-cover .rp-real svg { width: 7cqw; height: 7cqw; flex-shrink: 0; color: #1e8e3e; }
.rp-cover .rp-cover-title { margin-top: 2.4cqw; font-size: 2.8cqw; font-weight: 500; color: #3c4043; }
.rp-cover .rp-cover-title + p { margin-top: 0.8cqw; font-size: 1.7cqw; }
.rp-cover .ga-cover-mark svg { width: 5cqw; height: 5cqw; margin-bottom: 2cqw; }
.rp-cover-tags { display: flex; flex-wrap: wrap; gap: 1cqw; margin-top: 3.2cqw; }
.rp-cover-tags span {
  padding: 0.7cqw 1.6cqw;
  border-radius: 99px;
  background: #f1f3f4;
  color: #3c4043;
  font-size: 1.35cqw;
  font-weight: 500;
}

.ga-slide.rp { justify-content: flex-start; gap: 2.6cqw; padding: 4.4cqw 6cqw; }
.rp-head { display: flex; flex-direction: column; gap: 0.6cqw; margin-bottom: auto; }
.ga-slide.rp > :last-child { margin-bottom: auto; }
.rp-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  font-size: 1.2cqw;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e37400;
}
.rp-eyebrow svg { width: 1.8cqw; height: 1.8cqw; }
.rp-head h3 { margin: 0; font-size: 3cqw; font-weight: 500; letter-spacing: -0.01em; color: #202124; }

.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; }
.rp-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
  padding: 3cqw 2cqw;
  border: 1px solid #dadce0;
  border-top: 0.5cqw solid #1a73e8;
  border-radius: 1cqw;
}
.rp-kpi small { font-size: 1.35cqw; color: #5f6368; }
.rp-kpi strong { font-size: 4cqw; font-weight: 500; color: #202124; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rp-kpi span { font-size: 1.15cqw; color: #80868b; }
.rp-kpi.is-orange { border-top-color: #f9ab00; }
.rp-kpi.is-green { border-top-color: #1e8e3e; }
.rp-kpi.is-purple { border-top-color: #9334e6; }
.rp-kpi.is-blue strong { font-size: 2.9cqw; line-height: 4cqw; }

.rp-growth-row { display: flex; flex-wrap: wrap; gap: 1.2cqw; }
.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0.8cqw 1.6cqw;
  border-radius: 99px;
  background: #e6f4ea;
  color: #137333;
  font-size: 1.4cqw;
  font-weight: 500;
}
.rp-chip svg { width: 1.1cqw; height: 1.1cqw; }
.rp-chip.is-neutral { background: #e8f0fe; color: #1967d2; }

.rp-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3cqw; align-items: center; }
.rp-hero {
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
  padding: 3cqw 2.6cqw;
  border-radius: 1.4cqw;
  background: linear-gradient(135deg, #fef7e0, #fce8b2);
}
.rp-hero small { font-size: 1.35cqw; color: #b06000; font-weight: 500; }
.rp-hero strong { font-size: 4.2cqw; font-weight: 500; color: #202124; letter-spacing: -0.02em; }
.rp-hero span { font-size: 1.3cqw; color: #5f6368; }

.rp-table { width: 100%; border-collapse: collapse; font-size: 1.45cqw; color: #202124; font-variant-numeric: tabular-nums; }
.rp-table th {
  padding: 0 1.2cqw 1cqw;
  border-bottom: 1px solid #dadce0;
  text-align: left;
  font-size: 1.15cqw;
  font-weight: 500;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rp-table td { padding: 1.15cqw 1.2cqw; border-bottom: 1px solid #f1f3f4; }
.rp-table th:first-child, .rp-table td:first-child { padding-left: 0; }
.rp-table .num { text-align: right; white-space: nowrap; }
.rp-split .rp-table td.num { font-weight: 500; }
.rp-table tfoot td { border-top: 1px solid #dadce0; border-bottom: 0; font-weight: 600; }
.rp-table sup { font-size: 0.7em; color: #5f6368; }
.rp-table td:has(> .rp-bar) { width: 34%; }

.rp-bar { display: block; height: 1cqw; border-radius: 99px; background: #f1f3f4; overflow: hidden; }
.rp-bar i { display: block; height: 100%; border-radius: inherit; background: #1a73e8; }
.rp-bar.is-orange i { background: #f9ab00; }
.rp-bar.is-green i { background: #1e8e3e; }
.rp-bar.is-purple i { background: #9334e6; }
.rp-bar.is-gray i { background: #5f6368; }

.rp-note { margin: 0; font-size: 1.1cqw; color: #80868b; }
.rp-callout {
  padding: 1.6cqw 2cqw;
  border-left: 0.5cqw solid #1a73e8;
  border-radius: 0 1cqw 1cqw 0;
  background: #e8f0fe;
  font-size: 1.6cqw;
  color: #202124;
}

.rp-growth { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.rp-growth-card {
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  padding: 2.6cqw;
  border: 1px solid #dadce0;
  border-radius: 1.4cqw;
}
.rp-growth-card strong {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  font-size: 5.4cqw;
  font-weight: 500;
  color: #137333;
  letter-spacing: -0.03em;
}
.rp-growth-card strong svg { width: 2.4cqw; height: 2.4cqw; }
.rp-growth-card span { font-size: 1.9cqw; font-weight: 500; color: #202124; }
.rp-growth-card small { font-size: 1.3cqw; color: #5f6368; }

.rp-points { margin: 0; padding: 0; list-style: none; counter-reset: rp; display: flex; flex-direction: column; gap: 2cqw; }
.rp-points li {
  counter-increment: rp;
  position: relative;
  padding-left: 5cqw;
  font-size: 1.75cqw;
  line-height: 1.45;
  color: #3c4043;
}
.rp-points li::before {
  content: counter(rp);
  position: absolute;
  left: 0;
  top: -0.2cqw;
  width: 3.2cqw;
  height: 3.2cqw;
  border-radius: 50%;
  background: #fef7e0;
  color: #e37400;
  font-size: 1.6cqw;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rp-points strong { color: #202124; }

.ga-stage:fullscreen { background: #202124; padding: 0; }
.ga-stage:fullscreen .ga-frame { border-radius: 0; box-shadow: none; }

.ga-bar {
  position: relative;
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #fff;
  border-top: 1px solid #dadce0;
  color: #3c4043;
  font-size: 13px;
}
.ga-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ga-btn:hover { background: #f1f3f4; }
.ga-btn:disabled { opacity: 0.35; }
.ga-count { min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; }
.ga-present {
  position: absolute;
  right: 16px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ga-present:hover { background: #1765cc; box-shadow: 0 1px 3px rgba(60,64,67,0.3); }

/* ---------- Word ---------- */
.win-word .win-titlebar { background: #2b579a; border-bottom: 0; }
.win-word .win-title { color: #fff; }
.word-tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  background: #2b579a;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.word-tabs span { padding: 7px 12px; border-radius: 6px 6px 0 0; white-space: nowrap; }
.word-tabs span.active { background: #f3f3f3; color: #2b579a; font-weight: 600; }
.word-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #f3f3f3;
  border-bottom: 1px solid #dcdcdc;
  font-size: 12px;
  color: #333;
  overflow: hidden;
  flex-shrink: 0;
}
.word-group { display: flex; align-items: center; gap: 4px; padding-right: 12px; border-right: 1px solid #dcdcdc; }
.word-select { padding: 4px 8px; min-width: 34px; background: #fff; border: 1px solid #cfcfcf; border-radius: 4px; }
.word-select.wide { min-width: 90px; }
.word-tool {
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 13px;
}
.word-tool:hover { background: #e3e3e3; }
.word-style { padding: 4px 10px; background: #fff; border: 1px solid #d6d6d6; font-size: 11px; white-space: nowrap; }
.word-style.h1 { color: #2b579a; font-size: 13px; }
.word-style.h2 { color: #2b579a; }
.word-download {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #2b579a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.word-canvas {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px;
  background: #e8e8e8;
}
/* Hoja del CV (convertida del PDF) */
.word-page {
  flex-shrink: 0;
  width: min(100%, 680px);
  min-height: calc(min(100%, 680px) * 1.294);
  padding: 44px 48px 40px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 6px 18px rgba(0,0,0,0.08);
  color: #1f1f1f;
  font-family: "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  container-type: inline-size;
}
.word-page a { color: inherit; text-decoration: none; }
.word-page a:hover { color: #2b579a; text-decoration: underline; }
.word-page ul { margin: 0; padding-left: 18px; }
.word-page li { margin: 1px 0; }

.cv-head { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: center; margin-bottom: 22px; }
.cv-avatar { width: 100%; height: auto; }
.cv-name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: 0.01em; }
.cv-role { margin: 4px 0 12px; font-size: 14px; letter-spacing: 0.22em; color: #333; }
.cv-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  list-style: none;
  padding: 14px 0 0 !important;
  border-top: 2px solid #1f1f1f;
  font-size: 11.5px;
}
.cv-contact a, .cv-contact span { display: inline-flex; align-items: center; gap: 8px; }
.cv-contact svg { width: 14px; height: 14px; flex-shrink: 0; }

.cv-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #1f1f1f;
}
.cv-row:last-child { border-bottom: 1px solid #1f1f1f; }
.cv-row h2 {
  margin: 0;
  align-self: center;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.cv-content { min-width: 0; }
.cv-item + .cv-item { margin-top: 10px; }
.cv-item h3 { margin: 0 0 2px; font-size: 12px; font-weight: 700; }
.cv-date { margin: 0 0 2px 22px; color: #333; }
.cv-item small { margin-left: 6px; font-size: 9px; color: #555; }
.cv-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.cv-cols-3 { grid-template-columns: repeat(3, 1fr); }

@container (max-width: 560px) {
  .cv-head, .cv-row { grid-template-columns: 1fr; gap: 10px; }
  .cv-avatar { width: 90px; }
  .cv-contact, .cv-cols, .cv-cols-3 { grid-template-columns: 1fr; }
  .cv-row h2 { align-self: start; }
}
.word-status {
  flex-shrink: 0;
  display: flex;
  gap: 18px;
  padding: 5px 14px;
  background: #f3f3f3;
  border-top: 1px solid #dcdcdc;
  color: #555;
  font-size: 11px;
}
.word-zoom { margin-left: auto; }

/* ---------- Fotos ---------- */
.win-photos .win-titlebar { background: #f6f5f8; }
.tb-heading { display: flex; flex-direction: column; line-height: 1.2; }
.tb-heading strong { font-size: 13px; color: #1d1d1f; }
.tb-heading small { font-size: 11px; color: #8a8a8e; }
.seg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  padding: 2px;
  border-radius: 7px;
  background: rgba(0,0,0,0.06);
  font-size: 12px;
}
.seg span { padding: 3px 12px; border-radius: 5px; color: #333; white-space: nowrap; }
.seg span.active { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.15); font-weight: 500; }

.photos-app { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px 1fr; grid-template-rows: minmax(0, 1fr); }
.photos-main, .photos-viewer { grid-column: 2; grid-row: 1; }
.photos-main { overflow: auto; background: #fff; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 3px; padding: 3px; }
.photos-grid button {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background-size: cover;
  background-position: center;
  transition: filter 0.15s ease;
}
.photos-grid button:hover { filter: brightness(0.9); }
.photos-grid img { width: 100%; height: 100%; object-fit: cover; display: block; background: #f0f0f2; }
button.side-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; }
button.side-item:not(.active):hover { background: rgba(0,0,0,0.04); }

.photos-viewer {
  position: relative;
  display: none;
  background: #161617;
}
.photos-viewer.open { display: block; animation: fade-zoom 0.2s ease-out; }
.pv-img {
  position: absolute;
  top: 56px;
  left: 64px;
  width: calc(100% - 128px);
  height: calc(100% - 100px);
  object-fit: contain;
}
.pv-back {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px 5px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 13px;
}
.pv-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-back:hover, .pv-btn:hover { background: rgba(255,255,255,0.22); }
.pv-prev { left: 14px; }
.pv-next { right: 14px; }
.pv-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.6); font-size: 12px; }

/* ---------- Safari ---------- */
.win-safari .win-titlebar { background: #f6f6f6; }
.saf-address {
  flex: 1;
  max-width: 460px;
  min-width: 0;
  height: 30px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  background: rgba(0,0,0,0.06);
  color: #6e6e73;
  font-size: 13px;
}
.saf-address span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saf-actions { display: flex; gap: 14px; color: #6e6e73; }
.saf-page {
  flex: 1;
  overflow: auto;
  padding: 34px clamp(18px, 6%, 64px) 40px;
  background: linear-gradient(180deg, #f7f7f9, #eceef3);
}
.saf-h { margin: 0 0 16px; font-size: 19px; font-weight: 700; color: #1d1d1f; }
.saf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.saf-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.saf-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 10px 24px rgba(0,0,0,0.1); }
.saf-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background-color: #eceef2;
  background-size: cover;
  background-position: top center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.saf-thumb.is-loading {
  background-image: linear-gradient(100deg, #eceef2 30%, #f7f8fa 50%, #eceef2 70%);
  background-size: 200% 100%;
  animation: saf-shimmer 1.4s linear infinite;
}
.saf-thumb.is-failed { background-image: linear-gradient(135deg, #e9ecf2, #dfe3ea); }
@keyframes saf-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.saf-card-body { display: block; padding: 12px 14px 14px; }
.saf-card-body strong { display: block; font-size: 14px; }
.saf-card-body p { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: #6e6e73; }
.saf-domain { display: block; margin-top: 8px; font-size: 11px; color: #0a66ff; }
.saf-card.pending .saf-domain { color: #a1a1a6; }

/* ---------- Instagram ---------- */
.win-instagram .win-titlebar { background: #fff; border-bottom-color: #dbdbdb; }
.ig-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #000; letter-spacing: -0.01em; }
.ig-brand svg { width: 24px; height: 24px; }
.ig-sub { margin-left: auto; font-size: 12px; color: #737373; }
.ig-page { flex: 1; overflow: auto; padding: 28px clamp(16px, 4%, 40px) 36px; background: #fafafa; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; align-items: start; }
.ig-card {
  overflow: hidden;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  background: #fff;
}
.ig-card-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #efefef; }
.ig-ring {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
}
.ig-ring span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #efefef;
  color: #262626;
  font-size: 14px;
  font-weight: 600;
}
.ig-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ig-names strong { font-size: 14px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-names small { font-size: 12px; color: #737373; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-open {
  margin-left: auto;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: #0095f6;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.ig-open:hover { background: #1877f2; }
.ig-frame { container-type: inline-size; background: linear-gradient(100deg, #f2f2f2 30%, #fafafa 50%, #f2f2f2 70%) 0 0 / 200% 100%; animation: saf-shimmer 1.4s linear infinite; }
.ig-frame iframe {
  display: block;
  width: 100%;
  height: calc(132px + 66.7cqw);
  border: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ig-frame { position: relative; }
.ig-frame.is-loaded { animation: none; background: #fff; }
.ig-frame.is-loaded iframe { opacity: 1; }
.ig-fallback { display: none; }
.ig-frame.is-failed { animation: none; background: #fff; }
.ig-frame.is-failed iframe { display: none; }
.ig-frame.is-failed .ig-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: calc(132px + 66.7cqw);
  padding: 24px 22px;
  text-align: center;
}
.ig-fallback-icon svg { width: 52px; height: 52px; margin-bottom: 4px; filter: drop-shadow(0 4px 8px rgba(214,41,118,0.25)); }
.ig-fallback strong { font-size: 15px; color: #000; }
.ig-fallback p { margin: 0 0 8px; max-width: 240px; font-size: 13px; line-height: 1.4; color: #737373; }
.ig-open-lg { margin-left: 0; padding: 9px 16px; font-size: 13px; }

/* ---------- Claude ---------- */
.win-claude .win-titlebar { background: #f0eee6; border-bottom-color: #e3e0d6; }
.win-claude .win-title { color: #3d3929; }
.cl-app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 210px 1fr;
  background: #faf9f5;
  color: #3d3929;
}
.cl-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  overflow: auto;
  background: #f0eee6;
  border-right: 1px solid #e3e0d6;
  font-size: 13px;
}
.cl-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 10px; font-family: var(--serif); font-size: 19px; }
.cl-side-label { margin: 10px 8px 4px; font-size: 11px; font-weight: 600; color: #8a8577; }
.cl-item {
  padding: 6px 8px;
  border-radius: 8px;
  color: #3d3929;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-item:hover { background: rgba(61,57,41,0.07); }
.cl-main { overflow: auto; }
.cl-center { max-width: 660px; margin: 0 auto; padding: 44px 28px 36px; }
.cl-hero { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
.cl-hero h1 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -0.01em; }
.cl-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 12px 12px 12px 18px;
  background: #fff;
  border: 1px solid #e3e0d6;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(61,57,41,0.06);
}
.cl-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: #3d3929; }
.cl-send {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #d97757;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cl-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e8e5dc;
  border-radius: 14px;
  background: #fff;
  color: #3d3929;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cl-card:hover { border-color: #d97757; transform: translateY(-2px); }
.cl-card strong { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.cl-card p { flex: 1; margin: 0; font-size: 12.5px; line-height: 1.45; color: #77705f; }
.cl-card span { font-size: 12px; font-weight: 600; color: #c15f3c; }
.cl-card.pending span { color: #a8a293; }
.cl-empty { display: none; padding: 20px; text-align: center; font-size: 13px; color: #8a8577; }

/* ---------- Finder ---------- */
.finder-app { flex: 1; min-height: 0; display: grid; grid-template-columns: 180px 1fr; }
.finder-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  background: #fff;
  color: #8a8a8e;
  font-size: 13px;
  text-align: center;
}
.finder-empty-icon { width: 96px; height: 80px; opacity: 0.6; margin-bottom: 6px; }
.finder-main strong { color: #1d1d1f; font-size: 15px; }
.finder-content { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.finder-content .finder-main { flex: 1; min-height: 0; overflow-y: auto; }
.finder-files {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  padding: 22px;
}
.finder-file {
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #1d1d1f;
}
.finder-file-icon { display: block; width: 58px; height: 72px; padding: 3px; border-radius: 6px; }
.finder-file-icon svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.finder-file-name { font-size: 12px; line-height: 1.3; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; text-align: center; }
.finder-file.selected .finder-file-icon { background: rgba(0,0,0,0.08); }
.finder-file.selected .finder-file-name { background: #0a66ff; color: #fff; }
.finder-status {
  flex-shrink: 0;
  padding: 5px 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #f6f6f6;
  color: #6e6e73;
  font-size: 11px;
  text-align: center;
}

.finder-file-icon.is-thumb {
  width: 84px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.finder-file-icon.is-thumb img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.25), 0 2px 5px rgba(0,0,0,0.18);
}
.finder-file { width: 124px; }
.finder-file-icon.is-app { width: 84px; height: 84px; padding: 0; }
.finder-file-icon.is-app svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)) drop-shadow(0 1px 1px rgba(0,0,0,0.12)); }
.finder-file-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.finder-file.selected .finder-file-name { -webkit-line-clamp: unset; }

/* ---------- Vista Previa (certificados) ---------- */
.win-preview .win-titlebar { background: #f3f3f3; }
.pv-heading { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pv-heading strong { font-size: 13px; color: #1d1d1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-heading small { font-size: 11px; color: #8a8a8e; }
.pv-tools { margin-left: auto; display: flex; gap: 4px; }
.pv-tool {
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #5b5b60;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pv-tool:hover { background: rgba(0,0,0,0.07); }
.pv-app { flex: 1; min-height: 0; display: flex; }
.pv-app:not(.has-thumbs) .pv-thumbs { display: none; }
.pv-thumbs {
  width: 150px;
  flex-shrink: 0;
  overflow: auto;
  padding: 14px 18px;
  background: #ececee;
  border-right: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pv-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: #6e6e73;
  font-size: 11px;
}
.pv-thumb img { width: 100%; display: block; border: 3px solid transparent; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.pv-thumb.active img { border-color: #0a84ff; }
.pv-thumb.active span { color: #0a84ff; font-weight: 600; }
.pv-main { flex: 1; min-width: 0; overflow: auto; padding: 24px; background: #dcdcdf; }
.pv-pages { width: calc(100% * var(--zoom, 1)); margin: 0 auto; }

.word-canvas .doc { width: 100%; }
.word-loading { margin: auto; color: #6e6e73; font-size: 13px; }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 700px) {
  .win.maximized { border-radius: 0; }
  .photos-app, .finder-app, .cl-app { grid-template-columns: 1fr; }
  .photos-main, .photos-viewer { grid-column: 1; }
  .side, .cl-side, .word-styles, .seg { display: none; }
  .word-ribbon .word-group:not(:first-child) { display: none; }
  .word-canvas { padding: 16px; }
  .pv-app .pv-thumbs, .pv-side-toggle { display: none !important; }
  .pv-main { padding: 12px; }
  .finder-file { width: 100px; }
  .word-page { padding: 28px 24px; }
  .ga-bar { justify-content: flex-start; padding: 0 12px; }
  .ga-present { position: static; margin-left: auto; }
  .ga-crumb small { display: none; }
}
