:root{
  --sky-1: #D6EEFC;
  --sky-2: #98D6F4;
  --sky-3: #4FAEE0;
  --sky-4: #2585C6;
  --sky-5: #145E96;

  --glass: rgba(255,255,255,.30);
  --glass-strong: rgba(255,255,255,.55);
  --glass-soft: rgba(255,255,255,.16);
  --glass-border: rgba(255,255,255,.75);
  --glass-shadow: rgba(6,44,76,.28);

  --ink: #0C2E4A;
  --ink-soft: #2F5878;
  --muted: #4D7292;

  --text-on-sky: rgba(255,255,255,.97);
  --text-on-sky-muted: rgba(255,255,255,.78);

  --accent-blue-top: #F2FBFF;
  --accent-blue-bot: #2F97DD;
  --accent-yellow: #FFCF3F;
  --accent-green: #86DD4C;
  --accent-red: #E8604C;

  --radius: 14px;
  --radius-sm: 9px;
  --sans: 'Segoe UI', 'Segoe UI Semibold', Tahoma, Verdana, Helvetica, Arial, sans-serif;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--sans); line-height:1.5; color:var(--text-on-sky);
  background:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(255,255,255,.65), transparent 62%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 22%, var(--sky-3) 48%, var(--sky-4) 75%, var(--sky-5) 100%);
  background-attachment: fixed, fixed;
}
a{ color:inherit; }
h1,h2,h3{ margin:0; font-family:var(--sans); }
::selection{ background:var(--accent-yellow); color:var(--ink); }

/* ── Topbar (taskbar de vidrio) ───────────────────────── */
.topbar{
  position:sticky; top:0; z-index:40;
  background:linear-gradient(180deg, rgba(255,255,255,.60), rgba(255,255,255,.22));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom:1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 6px 18px rgba(6,44,76,.16);
}
.topbar-inner{ max-width:1180px; margin:0 auto; padding:13px 24px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-name{ font-weight:700; font-size:14.5px; letter-spacing:.03em; color:var(--ink); }
.brand-accent{ color:var(--sky-4); }
.nav{ display:flex; gap:26px; }
.nav a{ text-decoration:none; font-size:13.5px; font-weight:600; color:var(--ink-soft); transition:color .15s; }
.nav a:hover{ color:var(--ink); }

.btn-whatsapp{
  display:inline-block; text-decoration:none; font-weight:700; font-size:13px;
  color:var(--ink); padding:9px 18px; border-radius:20px; white-space:nowrap;
  background:linear-gradient(180deg, var(--accent-blue-top) 0%, #BEE6FB 44%, #6EC0EC 46%, var(--accent-blue-bot) 100%);
  border:1px solid rgba(255,255,255,.85);
  box-shadow: 0 2px 6px rgba(6,44,76,.35), inset 0 1px 0 rgba(255,255,255,.9);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  transition: filter .15s, transform .1s;
}
.btn-whatsapp:hover{ filter:brightness(1.05); }
.btn-whatsapp:active{ transform:translateY(1px); }
.btn-whatsapp.full{ display:block; text-align:center; margin-top:18px; }

/* ── Hero ──────────────────────────────────────────── */
.hero{ position:relative; overflow:hidden; }
.glint{ position:absolute; border-radius:50%; filter:blur(70px); pointer-events:none; mix-blend-mode:screen; opacity:.5; }
.glint-yellow{ width:260px; height:260px; background:var(--accent-yellow); top:-70px; right:10%; }
.glint-green{ width:230px; height:230px; background:var(--accent-green); bottom:-60px; left:6%; }

.hero-inner{
  position:relative; max-width:1180px; margin:0 auto; padding:60px 24px 54px;
  display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:center;
}
.eyebrow{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.04em;
  color:var(--ink); background:var(--glass-strong); border:1px solid var(--glass-border);
  padding:4px 12px; border-radius:20px; margin:0 0 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.hero h1{
  font-size:38px; font-weight:700; line-height:1.16; letter-spacing:-.01em; margin-bottom:14px;
  color:#fff; text-shadow: 0 2px 6px rgba(6,44,76,.35);
}
.hero-sub{ font-size:15px; color:var(--text-on-sky-muted); max-width:40ch; margin:0; text-shadow:0 1px 3px rgba(6,44,76,.3); }

.post-screen{
  background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.20));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border:1px solid var(--glass-border); border-radius:16px;
  padding:20px 22px; font-size:13.5px; min-height:150px; color:var(--ink);
  box-shadow: 0 12px 30px rgba(6,44,76,.25), inset 0 1px 0 rgba(255,255,255,.8);
}
.post-line{ opacity:0; animation: fadeIn .25s ease forwards; margin-bottom:8px; font-weight:600; }
.post-line::before{ content:'▸ '; color:var(--sky-4); }
.post-cursor{ color:var(--accent-yellow); font-weight:700; display:inline-block; animation: blink 1s step-end infinite; }
@keyframes fadeIn{ to{ opacity:1; } }
@keyframes blink{ 50%{ opacity:0; } }
@media (prefers-reduced-motion: reduce){
  .post-line{ animation:none; opacity:1; }
  .post-cursor{ animation:none; }
}

/* ── Secciones ─────────────────────────────────────── */
main{ max-width:1180px; margin:0 auto; padding:0 24px; }
.block{ padding:52px 0 8px; border-bottom:1px solid rgba(255,255,255,.32); }
.block:last-child{ border-bottom:none; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.section-head h2{ font-size:21px; font-weight:700; color:#fff; text-shadow:0 2px 5px rgba(6,44,76,.32); }
.section-sub{ font-size:13px; color:var(--text-on-sky-muted); margin:0; text-shadow:0 1px 2px rgba(6,44,76,.25); }

.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; }
.filter-bar select{
  background:var(--glass-strong); border:1px solid var(--glass-border); color:var(--ink);
  font-family:var(--sans); font-size:12.5px; font-weight:600; padding:9px 12px; border-radius:var(--radius-sm);
  cursor:pointer; backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.filter-bar select:focus{ outline:2px solid var(--accent-blue-bot); outline-offset:1px; }

.empty-state{ color:var(--text-on-sky-muted); font-size:13.5px; padding:24px 0; font-style:italic; }

/* ── Tarjetas "vidrio" (equipos) ──────────────────────── */
.equipos-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(480px,1fr)); gap:20px; padding-bottom:48px; }
.plate-card{
  background:linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.24));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  color:var(--ink); border-radius:var(--radius);
  padding:24px; border:1px solid var(--glass-border); position:relative;
  box-shadow: 0 10px 26px rgba(6,44,76,.20), inset 0 1px 0 rgba(255,255,255,.85);
}
.plate-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; gap:8px; }
.plate-tag{
  font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--ink-soft); border:1px solid rgba(12,46,74,.18); padding:3px 8px; border-radius:12px;
  background:rgba(255,255,255,.4);
}
.plate-badge{
  font-size:10.5px; font-weight:700; color:#0C2E4A;
  background:linear-gradient(180deg, #C9F5A0, var(--accent-green));
  padding:3px 8px; border-radius:12px; border:1px solid rgba(255,255,255,.7);
}
.plate-hw-title{ font-size:17px; font-weight:700; color:var(--ink); margin:0 0 8px; line-height:1.35; }
.brand-chips{ display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; }
.brand-chip{ font-size:10.5px; font-weight:700; letter-spacing:.03em; padding:3px 10px; border-radius:12px; color:#fff; }
.brand-chip.brand-intel{ background:#0071C5; }
.brand-chip.brand-amd{ background:#ED1C24; }
.brand-chip.brand-nvidia{ background:#76B900; }
.plate-price{ font-size:27px; font-weight:700; margin-bottom:6px; color:var(--ink); }
.plate-specs{ font-size:12px; color:var(--muted); line-height:1.6; margin:0 0 6px; }
.plate-desc{ font-size:12.5px; color:var(--ink-soft); margin:0 0 12px; font-style:italic; }
.btn-ficha{
  width:100%; margin-top:10px; background:rgba(255,255,255,.35); border:1px solid rgba(12,46,74,.25); color:var(--ink);
  font-family:var(--sans); font-size:12.5px; font-weight:700; padding:9px; border-radius:20px;
  cursor:pointer; transition:background .15s, box-shadow .15s;
}
.btn-ficha:hover{ background:rgba(255,255,255,.6); box-shadow:0 2px 8px rgba(6,44,76,.2); }

/* ── Filas (componentes / periféricos) ───────────────── */
.rows-list{ display:flex; flex-direction:column; gap:8px; padding-bottom:48px; }
.row-card{
  display:grid; grid-template-columns:170px 1fr auto; gap:16px; align-items:center;
  background:linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.20));
  backdrop-filter: blur(10px);
  color:var(--ink); border-radius:var(--radius-sm); padding:13px 16px;
  border:1px solid var(--glass-border); cursor:pointer; transition:background .15s;
}
.row-card:hover{ background:linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.30)); }
.row-cat{ font-size:11.5px; font-weight:700; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.03em; }
.row-nombre{ font-size:14px; font-weight:700; margin-bottom:2px; }
.row-specs{ font-size:11.5px; color:var(--ink-soft); }
.row-precio{ font-size:15px; font-weight:700; white-space:nowrap; }

/* ── Modal ficha técnica ──────────────────────────────── */
.modal-overlay{
  position:fixed; inset:0; background:rgba(6,30,50,.45); display:none;
  align-items:flex-start; justify-content:center; padding:60px 16px; overflow-y:auto; z-index:60;
  backdrop-filter: blur(3px);
}
.modal-overlay.open{ display:flex; }
.modal-sheet{
  background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.65));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color:var(--ink); border-radius:18px;
  width:100%; max-width:560px; padding:28px; position:relative;
  border:1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 60px rgba(4,30,52,.35), inset 0 1px 0 rgba(255,255,255,.9);
}
.modal-close{
  position:absolute; top:14px; right:14px; width:26px; height:26px; border-radius:50%;
  background:linear-gradient(180deg, #FF9A87, var(--accent-red)); border:1px solid rgba(255,255,255,.7);
  color:#fff; font-size:12px; cursor:pointer; line-height:1;
  box-shadow: 0 2px 5px rgba(6,44,76,.3), inset 0 1px 0 rgba(255,255,255,.6);
}
.modal-close:hover{ filter:brightness(1.08); }
.ficha-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.ficha-head h3{ font-size:23px; font-weight:700; }
.ficha-resumen{ font-size:13px; color:var(--ink-soft); margin:8px 0 4px; }
.section-title{
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  color:var(--ink-soft); margin:20px 0 10px; padding-bottom:6px; border-bottom:1px solid rgba(12,46,74,.15);
}
.ficha-row{
  display:flex; justify-content:space-between; gap:12px; font-size:13px; padding:7px 0;
  border-bottom:1px solid rgba(12,46,74,.10);
}
.ficha-cat{ color:var(--ink-soft); font-size:12px; font-weight:600; }
.ficha-nombre{ font-weight:700; text-align:right; }

/* ── Fotos: portada de tarjeta, galería y lightbox ───── */
.plate-photo{ margin:-24px -24px 16px; height:180px; overflow:hidden; border-radius:14px 14px 0 0; }
.plate-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.ficha-fotos{ display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 4px; }
.ficha-foto-thumb{ width:64px; height:64px; padding:0; border:1px solid rgba(12,46,74,.18); border-radius:8px; overflow:hidden; cursor:zoom-in; background:none; }
.ficha-foto-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.row-thumb{ width:22px; height:22px; object-fit:cover; border-radius:4px; vertical-align:middle; }

.carrusel{ position:relative; margin:14px 0 4px; border-radius:12px; overflow:hidden; background:rgba(12,46,74,.06); }
.carrusel img{ width:100%; max-height:320px; object-fit:contain; display:block; }
.carrusel-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%;
  border:1px solid rgba(255,255,255,.7); background:rgba(255,255,255,.85); color:var(--ink);
  font-size:19px; line-height:1; cursor:pointer; box-shadow:0 2px 8px rgba(6,44,76,.3);
}
.carrusel-nav:hover{ background:#fff; }
.carrusel-prev{ left:8px; }
.carrusel-next{ right:8px; }
.carrusel-dots{ display:flex; justify-content:center; gap:6px; margin:9px 0 2px; }
.carrusel-dots .dot{ width:6px; height:6px; border-radius:50%; background:rgba(12,46,74,.22); }
.carrusel-dots .dot.active{ background:var(--sky-4); }

.lightbox-overlay{
  position:fixed; inset:0; background:rgba(4,16,28,.86); display:none;
  align-items:center; justify-content:center; z-index:80; padding:24px; cursor:zoom-out;
}
.lightbox-overlay.open{ display:flex; }
.lightbox-overlay img{ max-width:92vw; max-height:92vh; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); }

/* ── Footer ────────────────────────────────────────── */
.site-footer{
  max-width:1180px; margin:0 auto; padding:36px 24px 60px; display:flex; align-items:center;
  justify-content:space-between; flex-wrap:wrap; gap:14px; font-size:13px; color:var(--text-on-sky-muted);
}
.footer-title{ font-weight:700; color:#fff; margin:0; text-shadow:0 1px 3px rgba(6,44,76,.3); }
.footer-sub{ margin:2px 0 0; }
.footer-links{ display:flex; gap:18px; flex-wrap:wrap; }
.footer-links a{ text-decoration:none; color:#fff; font-weight:600; text-shadow:0 1px 3px rgba(6,44,76,.3); }
.footer-links a:hover{ color:var(--accent-yellow); }
.credit{ font-size:11.5px; color:var(--text-on-sky-muted); margin:0; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 860px){
  .hero-inner{ grid-template-columns:1fr; }
  .nav{ display:none; }
}
@media (max-width: 560px){
  .hero h1{ font-size:29px; }
  .equipos-grid{ grid-template-columns:1fr; }
  .row-card{ grid-template-columns:1fr; }
  .row-precio{ justify-self:start; }
}
