/* Fitt — mockups de presentación (modo claro V2) (un dispositivo por interfaz)
 * Usa los tokens de marca de core/fitt.css. Los dispositivos se dibujan en CSS y se escalan con JS
 * para caber en la pantalla sin perder la interacción del prototipo que llevan dentro.
 */
:root {
  color-scheme: light;
  --negro: #00100D;
  --bg: #F1F7F6;
  --panel: #FFFFFF;
  --panel-2: #E4F1ED;
  --bosque: #03624C;
  --esmeralda: #2CC295;
  --esmeralda-txt: #03785C;
  --claro: #00DF81;
  --texto: #00100D;
  --gris: #4D6C64;
  --gris-medio: #5E7D75;
  --linea: rgba(3, 98, 76, 0.16);
  --metal-1: #2B3431;
  --metal-2: #151B19;
  --metal-3: #3A4541;
  --fd: 'Plus Jakarta Sans', 'Arial', sans-serif;
  --fb: 'Lato', 'Arial', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(44,194,149,.18), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(3,98,76,.10), transparent 45%),
    var(--bg);
  color: var(--texto);
  font-family: var(--fb);
  line-height: 1.5;
}
a { color: var(--esmeralda-txt); }
:focus-visible { outline: 3px solid var(--bosque); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--fd); font-weight: 800; margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }

/* ——— Página de una vista ——— */
/* En escritorio la página ocupa exactamente la pantalla: el dispositivo se escala a ese alto y el panel lateral hace scroll propio. */
.stage-page { height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px 24px; height: 100%; overflow: hidden; }
.side { overflow-y: auto; }
@media (max-width: 1000px) {
  .stage-page { height: auto; grid-template-columns: 1fr; }
  .stage { height: 82vh; padding: 16px; }
  .side { overflow: visible; }
}
.fit { position: relative; isolation: isolate; }
/* Sombra de contacto pegada a la base del dispositivo (escala con él). Reemplaza a .floor, que quedaba anclada al escenario. */
.fit::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: -18px; height: 36px; z-index: -1; pointer-events: none;
  border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,16,13,.30), rgba(0,16,13,.10) 45%, transparent 72%);
}
.fit > .device { position: absolute; top: 0; left: 0; transform-origin: top left; }
.floor { display: none; }

.side { border-left: 1px solid var(--linea); background: rgba(255,255,255,.78); backdrop-filter: blur(8px); padding: 28px 24px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 1000px) { .side { border-left: 0; border-top: 1px solid var(--linea); } }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gris); }
.crumbs a { text-decoration: none; font-weight: 700; }
.logo { font-family: var(--fd); font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: var(--texto); text-decoration: none; }
.logo i { font-style: normal; color: var(--esmeralda); }
.eyebrow { font-family: var(--fd); font-weight: 800; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--esmeralda-txt); }
.side h1 { font-size: 30px; margin-top: 8px; }
.lead { color: var(--gris); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--panel-2); color: var(--gris); border: 1px solid var(--linea); }
.chip.on { color: var(--negro); background: var(--esmeralda); border-color: var(--esmeralda); }
.block h2 { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gris); margin-bottom: 10px; font-family: var(--fd); }
.jumps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jump {
  min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--linea); background: var(--panel);
  color: var(--texto); font: 700 13px/1.25 var(--fb); text-align: left; cursor: pointer;
}
.jump:hover { border-color: var(--esmeralda); background: rgba(44,194,149,.12); }
.jump.wide { grid-column: 1 / -1; }
.jump.accent { background: var(--esmeralda); color: var(--negro); border-color: var(--esmeralda); }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.list li { display: flex; gap: 10px; }
.list b { font-family: var(--fd); color: var(--esmeralda-txt); min-width: 34px; }
.pager { margin-top: auto; display: flex; gap: 8px; }
.pager a {
  flex: 1; text-decoration: none; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--linea); color: var(--texto);
  background: var(--panel); font-size: 13px;
}
.pager a small { display: block; color: var(--gris); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.pager a strong { font-family: var(--fd); }
.pager a.next { text-align: right; }
.hint { font-size: 12px; color: var(--gris-medio); }

/* ——— Celular ——— */
.phone {
  width: 418px; height: 872px; padding: 14px; border-radius: 64px;
  background: linear-gradient(145deg, var(--metal-3), var(--metal-2) 40%, var(--metal-1));
  box-shadow: 0 0 0 2px #0A0F0D, inset 0 0 0 2px rgba(255,255,255,.07), 0 30px 60px -18px rgba(0,16,13,.35), 0 14px 28px -14px rgba(0,16,13,.25);
}
.phone::before, .phone::after { content: ''; position: absolute; width: 4px; border-radius: 2px; background: var(--metal-3); }
.phone::before { left: -4px; top: 180px; height: 64px; box-shadow: 0 84px 0 var(--metal-3); }
.phone::after { right: -4px; top: 230px; height: 100px; }
.phone .screen { position: relative; width: 390px; height: 844px; border-radius: 50px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.statusbar { height: 50px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font: 700 15px var(--fd); color: var(--negro); background: var(--bg); }
.statusbar.wa { background: #FFFFFF; }
.statusbar .icons { display: flex; gap: 6px; align-items: center; font-size: 12px; letter-spacing: 1px; }
.statusbar .bat { width: 25px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; }
.statusbar .bat::after { content: ''; position: absolute; inset: 1.5px; right: 5px; background: currentColor; border-radius: 1.5px; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 3; }
.phone iframe { flex: 1; width: 390px; border: 0; display: block; background: var(--bg); }
.homebar { height: 22px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.94); }
.homebar::after { content: ''; width: 134px; height: 5px; border-radius: 3px; background: rgba(0,16,13,.85); }
.homebar.wa { background: #F0F2F5; }

/* ——— Notebook ——— */
.laptop { width: 1480px; height: 930px; }
.laptop .lid {
  position: absolute; left: 70px; top: 0; width: 1340px; height: 880px; padding: 28px 30px 32px; border-radius: 26px 26px 6px 6px;
  background: linear-gradient(180deg, #1B2220, #0E1311); box-shadow: 0 0 0 2px var(--metal-3), 0 30px 70px rgba(0,16,13,.25);
}
.laptop .lid::before { content: ''; position: absolute; top: 11px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #26302D; box-shadow: inset 0 0 0 2px #111; }
.laptop .base {
  position: absolute; left: 0; top: 880px; width: 1480px; height: 34px;
  background: linear-gradient(180deg, #56615D, #2E3633 45%, #1C2220); border-radius: 4px 4px 26px 26px / 4px 4px 34px 34px;
  box-shadow: 0 18px 40px rgba(0,16,13,.25);
}
.laptop .base::before { content: ''; position: absolute; left: 50%; top: 0; width: 220px; height: 12px; margin-left: -110px; border-radius: 0 0 14px 14px; background: #1A201E; }
.laptop .screen, .monitor .screen { width: 100%; height: 100%; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; border-radius: 4px; }

/* Barra de navegador dentro de las pantallas grandes */
.browser { height: 40px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #E8EEEC; border-bottom: 1px solid #D3DEDA; }
.browser .dots { display: flex; gap: 7px; }
.browser .dots i { width: 12px; height: 12px; border-radius: 50%; background: #B9C6C2; }
.browser .dots i:first-child { background: #FF6159; } .browser .dots i:nth-child(2) { background: #FFBD2E; } .browser .dots i:last-child { background: #28C941; }
.browser .url { flex: 1; max-width: 560px; margin: 0 auto; height: 26px; border-radius: 8px; background: #FFFFFF; color: var(--gris); font: 400 13px var(--fb); display: flex; align-items: center; justify-content: center; gap: 6px; }
.laptop iframe, .monitor iframe { flex: 1; width: 100%; border: 0; display: block; background: var(--bg); }

/* ——— Monitor de escritorio ——— */
.monitor { width: 1560px; height: 1170px; }
.monitor .frame {
  position: absolute; left: 0; top: 0; width: 1560px; height: 960px; padding: 24px 24px 64px; border-radius: 22px;
  background: linear-gradient(180deg, #202826, #121816); box-shadow: 0 0 0 2px var(--metal-3), 0 40px 80px rgba(0,16,13,.25);
}
.monitor .frame::after { content: 'Fitt'; position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font: 800 16px var(--fd); color: #3E4A46; letter-spacing: .5px; }
.monitor .neck { position: absolute; top: 960px; left: 50%; width: 180px; height: 150px; margin-left: -90px; background: linear-gradient(90deg, #1B2220, #3A4541 50%, #1B2220); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.monitor .foot { position: absolute; top: 1106px; left: 50%; width: 460px; height: 26px; margin-left: -230px; border-radius: 10px 10px 16px 16px; background: linear-gradient(180deg, #4A5652, #232B28); box-shadow: 0 16px 30px rgba(0,16,13,.22); }

/* ——— Índice de la presentación ——— */
.index { max-width: 1180px; margin: 0 auto; padding-block: 40px 60px; padding-inline: 24px; display: grid; gap: 28px; }
.index header { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; }
.index header h1 { font-size: clamp(30px, 4.2vw, 48px); max-width: 16ch; }
.index header .lead { max-width: 58ch; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.vcard { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; border: 1px solid var(--linea); background: var(--panel); color: var(--texto); text-decoration: none; transition: transform .18s, border-color .18s; box-shadow: 0 1px 2px rgba(0,16,13,.05), 0 6px 18px rgba(0,16,13,.05); }
.vcard:hover { transform: translateY(-4px); border-color: var(--esmeralda); }
.vcard .glyph { height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.vcard h2 { font-size: 20px; }
.vcard p { color: var(--gris); font-size: 14px; }
.vcard .go { margin-top: auto; font-weight: 800; font-family: var(--fd); color: var(--esmeralda-txt); font-size: 14px; }
.g-phone { width: 56px; height: 112px; border-radius: 14px; border: 3px solid var(--metal-3); background: linear-gradient(160deg, #FFFFFF, var(--panel-2)); }
.g-laptop { position: relative; width: 150px; height: 94px; border-radius: 8px 8px 0 0; border: 4px solid var(--metal-3); background: linear-gradient(160deg, #FFFFFF, var(--panel-2)); }
.g-laptop::after { content: ''; position: absolute; left: -22px; right: -22px; bottom: -12px; height: 8px; border-radius: 0 0 8px 8px; background: var(--metal-3); }
.g-monitor { position: relative; width: 160px; height: 96px; border-radius: 8px; border: 4px solid var(--metal-3); background: linear-gradient(160deg, #FFFFFF, var(--panel-2)); margin-bottom: 20px; }
.g-monitor::after { content: ''; position: absolute; left: 50%; bottom: -22px; width: 60px; height: 18px; margin-left: -30px; background: var(--metal-3); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.extra { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px 20px; border-radius: 18px; border: 1px dashed var(--linea); }
.extra .grow { flex: 1; min-width: 240px; }
.extra a { font-weight: 800; font-family: var(--fd); }
@media (prefers-reduced-motion: reduce) { .vcard { transition: none; } }

.vcard .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--linea); }
