﻿/* ============================================================
   EMPIRE MANAGEMENT MX — DESIGN SYSTEM
   assets/empire.css  |  Dark Luxury — White/Silver Palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── DESIGN TOKENS ── */
:root {
  /* Backgrounds */
  --bg:   #080808;
  --bg-2: #0d0d0d;
  --bg-3: #121212;
  --bg-4: #181818;
  --bg-5: #1f1f1f;

  /* Text */
  --text:       #f0f0f0;
  --text-muted: #888888;
  --text-dim:   #444444;

  /* Accent — silver/white luxury palette */
  --accent:        #d0d0d0;
  --accent-dim:    rgba(208,208,208,0.15);
  --accent-border: rgba(208,208,208,0.18);

  /* Gold — for selective premium highlights */
  --gold:       #C9A84C;
  --gold-light: #E8C96D;
  --gold-dim:   rgba(201,168,76,0.12);

  /* Blue — accent for UI elements (arrows, checkmarks, highlights) */
  --blue: #2F80FF;

  /* Blue — LOADER BAR ONLY */
  --loader-blue:     #00B4FF;
  --loader-blue-end: #00EEFF;

  /* Structure */
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;

  /* Layout */
  --radius: 3px;
  --max-w:  1200px;
  --pad:    120px 64px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(208,208,208,0.15); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(208,208,208,0.35); }

/* ── CURSOR ── */
body { cursor: none; }
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.cursor-dot {
  width: 5px; height: 5px; background: var(--text);
  border-radius: 50%; position: absolute; transform: translate(-50%,-50%);
}
.cursor-ring {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%; position: absolute; transform: translate(-50%,-50%);
}

/* ══════════════════════════════════════
   EMPIRE PRELOADER — CINEMATIC DARK
══════════════════════════════════════ */
.empire-preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #03050A;
  display: flex; align-items: center; justify-content: center;
}
.empire-preloader-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 36% 28% at 50% 48%, rgba(10,26,47,.58) 0%, transparent 65%),
    radial-gradient(ellipse 20% 16% at 50% 47%, rgba(16,43,76,.34) 0%, transparent 55%);
}
.empire-preloader-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 40px;
}
/* Logo */
.empire-loader-logo {
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
}
.empire-loader-logo img {
  width: 88px; height: auto; display: block;
  filter: brightness(0) invert(1);
}
/* Line container */
.empire-loader-line { opacity: 0; }
.empire-loader-track {
  width: 320px; height: 1px;
  background: rgba(255,255,255,.22);
  position: relative; overflow: visible;
  border-radius: 1px;
}
/* Progress fill — thin bright blue trail */
.empire-loader-progress {
  position: absolute; left: 0; top: 0;
  width: 0; height: 100%;
  background: rgba(47,128,255,.75);
  border-radius: 1px;
  will-change: width;
  overflow: visible;
  box-shadow: 0 0 4px rgba(47,128,255,.5), 0 0 10px rgba(47,128,255,.25);
}
/* Electric tip — bright dot with multi-layer bloom */
.empire-loader-glow {
  position: absolute; right: -2px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #EAF4FF;
  box-shadow:
    0 0 3px  2px rgba(234,244,255,.95),
    0 0 7px  4px rgba(47,128,255,1),
    0 0 14px 7px rgba(47,128,255,.80),
    0 0 26px 12px rgba(11,77,255,.55),
    0 0 44px 18px rgba(11,77,255,.25);
}
/* Mobile */
@media (max-width: 860px) {
  .empire-loader-track  { width: 225px; }
  .empire-loader-logo img { width: 120px; }
  .empire-preloader-inner { gap: 30px; }
}

/* ── LOGO UNIFICADO ── */
.logo-main { object-fit: contain; opacity: 1; filter: none; display: block; }
nav    .logo-main { width: 120px; height: auto; }
footer .logo-main { width: 130px; height: auto; opacity: .55; }
/* PROHIBIDO: no aplicar filter, blur, glow, mix-blend-mode al logo */

/* Pantera fantasma en hero/cta */
.pantera-ghost {
  filter: brightness(0) invert(1);
  opacity: 0; pointer-events: none;
}
/* Logo en footer — más tenue */
.logo-footer { height: 22px; object-fit: contain; filter: brightness(1.4) saturate(0); opacity: .5; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 28px 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: padding .4s, background .4s, border-color .4s;
}
nav.scrolled {
  padding: 16px 64px;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--text); transition: width .35s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-apply {
  font-size: .7rem !important; letter-spacing: .15em !important;
  color: var(--text) !important;
  border: 1px solid var(--border-hover) !important;
  padding: 8px 20px; border-radius: 50px;
  transition: border-color .3s, background .3s !important;
}
.nav-apply:hover { border-color: var(--accent) !important; background: rgba(255,255,255,.04) !important; }
.nav-apply::after { display: none !important; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: .68rem; letter-spacing: .45em; text-transform: uppercase;
  color: rgba(255,255,255,.5); display: block; margin-bottom: 14px;
}
.eyebrow-gold { color: var(--gold); }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 700; line-height: 1.12;
}
.sec-title em { font-style: italic; color: var(--accent); }
.sec-body {
  font-size: 1rem; line-height: 1.8; font-weight: 300;
  color: rgba(255,255,255,.72); max-width: 540px;
}

/* ── LINES ── */
.accent-line {
  width: 48px; height: 1px; background: var(--accent-border);
  margin: 22px 0; transform: scaleX(0); transform-origin: left;
}
.accent-line-center { margin: 22px auto; transform-origin: center; }
.gold-line {
  width: 48px; height: 1px; background: var(--gold);
  margin: 22px 0; transform: scaleX(0); transform-origin: left;
}
/* Backwards compat aliases */
.blue-line  { width: 48px; height: 1px; background: var(--accent-border); margin: 22px 0; transform: scaleX(0); transform-origin: left; }
.blue-line-center { margin: 22px auto; transform-origin: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; border-radius: 50px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; cursor: none;
  transition: background .38s cubic-bezier(.4,0,.2,1),
              border-color .38s cubic-bezier(.4,0,.2,1),
              box-shadow .38s cubic-bezier(.4,0,.2,1),
              transform .28s cubic-bezier(.4,0,.2,1);
}
/* Primary — Empire blue */
.btn-primary {
  background: linear-gradient(145deg, #2060E8 0%, #0E3D96 52%, #061540 100%);
  color: rgba(240,240,255,.98);
  padding: 16px 42px;
  border: 1px solid rgba(47,128,255,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 8px 32px rgba(7,30,120,.60),
    0 2px 8px rgba(5,15,80,.40);
}
.btn-primary:hover {
  background: linear-gradient(145deg, #2D72F5 0%, #1248B0 52%, #081A50 100%);
  border-color: rgba(47,128,255,.82);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 0 1px rgba(47,128,255,.18),
    0 14px 40px rgba(7,30,85,.58),
    0 4px 14px rgba(8,22,80,.32);
}
.btn-ghost {
  background: transparent; color: rgba(200,200,200,.65);
  padding: 15px 40px; border: 1px solid rgba(255,255,255,.1);
  transition: border-color .35s, color .35s, background .35s;
}
.btn-ghost:hover {
  border-color: rgba(52,88,140,.5);
  color: rgba(236,236,236,.92);
  background: rgba(14,30,55,.25);
}
/* btn-gold / btn-cta — Empire blue unified */
.btn-gold, .btn-cta {
  background: linear-gradient(145deg, #2060E8 0%, #0E3D96 52%, #061540 100%);
  color: rgba(240,240,255,.98);
  padding: 15px 32px;
  border: 1px solid rgba(47,128,255,.55);
  border-radius: 50px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 8px 28px rgba(7,30,85,.50);
  transition: background .38s cubic-bezier(.4,0,.2,1),
              border-color .38s cubic-bezier(.4,0,.2,1),
              box-shadow .38s cubic-bezier(.4,0,.2,1),
              transform .28s cubic-bezier(.4,0,.2,1);
  cursor: none; display: inline-block;
}
.btn-gold:hover, .btn-cta:hover {
  background: linear-gradient(145deg, #2D72F5 0%, #1248B0 52%, #081A50 100%);
  border-color: rgba(47,128,255,.82);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 0 1px rgba(47,128,255,.18),
    0 14px 38px rgba(7,30,85,.55),
    0 4px 12px rgba(8,22,80,.28);
}

/* ── SECTIONS ── */
.sec      { padding: var(--pad); max-width: var(--max-w); margin: 0 auto; }
.sec-full { padding: 120px 0; }
.sec-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 64px; }

/* ── MARQUEE ── */
.marquee-wrap {
  padding: 20px 0; background: var(--bg-2); overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.marquee-dark {
  background: #020204;
  border-top-color: rgba(255,255,255,.04);
  border-bottom-color: rgba(255,255,255,.04);
}
.marquee-track { display: flex; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee-item {
  font-size: .63rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--text-dim); padding: 0 44px; display: flex; align-items: center; gap: 44px;
}
.mdot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); display: inline-block; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── CARDS ── */
.card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 30px;
  position: relative; overflow: hidden;
  transition: border-color .4s, transform .4s, box-shadow .4s;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
  transform: scaleX(0); transition: transform .4s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: 0 20px 56px rgba(0,0,0,.6); }
.card:hover::before { transform: scaleX(1); }

/* ── FOOTER ── */
footer {
  padding: 60px 64px; border-top: 1px solid var(--border); background: var(--bg);
}
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px;
  margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: .85rem; color: var(--text-dim); line-height: 1.75; margin-top: 16px; max-width: 260px; }
.footer-col h4 {
  font-size: .63rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .85rem; color: var(--text-dim); transition: color .3s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: .72rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: .72rem; color: var(--text-dim); transition: color .3s; }
.footer-legal a:hover { color: var(--text); }

/* ── POST HERO (blog posts) ── */
.post-hero {
  background-color: #080808;
  background-image: url('img/blog2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.post-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(to right, rgba(4,4,4,.88) 0%, rgba(4,4,4,.62) 55%, rgba(4,4,4,.38) 100%);
}
.post-hero > * { position: relative; z-index: 1; }

/* ── ARTICLE / BLOG ── */
.article-body { max-width: 760px; margin: 0 auto; overflow-wrap: break-word; word-break: break-word; }
.article-body h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; margin: 48px 0 16px; color: var(--text); }
.article-body h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.article-body p { font-size: 1rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { font-size: 1rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 8px; }
.article-body blockquote { border-left: 2px solid var(--accent-border); padding: 16px 24px; background: var(--bg-3); margin: 32px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.article-body blockquote p { color: var(--text); font-style: italic; margin: 0; }
.article-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-hover); }
.article-body a:hover { text-decoration-color: var(--text); }

/* ── BLOG CARD ── */
.blog-card { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s; display: block; }
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.blog-card-body { padding: 28px 24px; }
.blog-cat { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; display: block; }
.blog-card-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; color: var(--text); transition: color .3s; }
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-excerpt { font-size: .87rem; color: var(--text-muted); line-height: 1.7; }
.blog-card-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.blog-date { font-size: .7rem; color: var(--text-dim); }
.blog-read { font-size: .7rem; color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.blog-card:hover .blog-read { color: var(--text); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { padding: 22px 0; font-size: .97rem; font-weight: 500; color: var(--text); display: flex; justify-content: space-between; align-items: center; cursor: none; gap: 16px; }
.faq-q .faq-icon { color: var(--text-dim); font-size: 1.1rem; transition: transform .3s, color .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--text); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; font-size: .92rem; color: var(--text-muted); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ── LANDING HERO ── */
.landing-hero {
  min-height: 70vh; padding: 160px 64px 100px;
  display: flex; align-items: center;
  background-color: var(--bg); position: relative; overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* Dark overlay — left side darker for text, right side reveals image */
.landing-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(to right, rgba(4,4,4,.82) 0%, rgba(4,4,4,.55) 45%, rgba(4,4,4,.28) 100%),
    linear-gradient(to top,   rgba(4,4,4,.5)  0%, transparent 45%);
}
.landing-hero-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.landing-hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.landing-hero h1 em { font-style: italic; color: var(--accent); }
.landing-hero .sub { font-size: 1.08rem; color: var(--text-muted); max-width: 560px; line-height: 1.75; font-weight: 300; margin-bottom: 40px; }
.landing-hero .meta { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; display: block; }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; }
.feature-list li { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; gap: 14px; font-size: .93rem; color: var(--text-muted); }
.feature-list li::before { content: '—'; color: var(--text-dim); flex-shrink: 0; }

/* ── HAMBURGER ── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer; padding: 6px; z-index: 1100;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s;
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(4,4,4,.97);
  backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.nav-overlay.nav-open { opacity: 1; pointer-events: all; }

.nav-mobile-links {
  list-style: none; display: flex; flex-direction: column;
  align-items: center; gap: 0; text-align: center;
}
.nav-mobile-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-mobile-links li:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.nav-mobile-links a {
  display: block; padding: 22px 32px;
  font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); transition: color .3s;
}
.nav-mobile-links a:hover { color: var(--text); }
.nav-mobile-links .nav-apply {
  margin: 32px auto 0 !important; display: inline-block !important;
  border: 1px solid var(--border-hover) !important; border-radius: 50px !important;
  padding: 14px 36px !important; font-size: .85rem !important;
}

/* ── MOBILE ── */
@media (max-width: 860px) {
  body { cursor: auto; }
  .cursor { display: none; }
  :root { --pad: 80px 24px; }
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .sec-inner { padding: 0 24px; }
  .sec-full { padding: 72px 0; }
  footer { padding: 48px 24px; }
  a, button, .btn, .btn-hero-primary, .btn-hero-ghost { cursor: pointer; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .landing-hero { padding: 130px 24px 80px; min-height: auto; }
  /* Hero and article CTAs: prevent long button text from overflowing on small screens */
  .landing-hero-inner .btn,
  .article-body .btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════════════════
   EMPIRE OS CARD — BASE (overridden per-page)
══════════════════════════════════════════════════════ */

.os-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.os-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.042) 0%, transparent 52%),
    linear-gradient(to bottom right, rgba(22,58,118,.30) 0%, transparent 62%),
    linear-gradient(to bottom, #0B1625, #060E1A);
  border: none;
  border-radius: 16px;
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  cursor: none;
  z-index: 1;
  --mx: 50%; --my: 50%;
  box-shadow:
    0 6px 18px rgba(0,0,0,.55),
    0 16px 48px rgba(0,0,0,.42),
    0 32px 80px rgba(0,0,0,.28);
  transition: box-shadow .4s ease, transform .3s ease;
  will-change: transform;
}

.os-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14) 50%, transparent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .5s ease; z-index: 3;
}
.os-card:hover::before { transform: scaleX(1); }

.os-card:hover {
  box-shadow:
    0 10px 28px rgba(0,0,0,.65),
    0 24px 64px rgba(0,0,0,.50),
    0 48px 100px rgba(0,0,0,.32),
    0 0 60px rgba(16,50,108,.16);
  transform: translateY(-4px) scale(1.012);
}

/* hide all removed decorative elements */
.os-num,
.os-icon,
.os-status-row,
.card-ambient,
.card-corner,
.card-viz,
.os-connections,
.os-flow { display: none !important; }

.os-card-inner { position: relative; z-index: 2; will-change: transform; }

.card-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 200px at var(--mx) var(--my), rgba(32,72,150,.18) 0%, transparent 70%);
  opacity: 0; transition: opacity .35s; z-index: 1;
}
.os-card:hover .card-glow { opacity: 1; }

.card-sweep {
  position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.025) 50%, transparent 65%);
  transition: left .65s cubic-bezier(.4,0,.2,1); pointer-events: none; z-index: 1;
}
.os-card:hover .card-sweep { left: 140%; }

.card-noise {
  position: absolute; inset: 0; opacity: .018; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px; z-index: 1;
}

.os-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 11px;
  color: rgba(255,255,255,.92);
  transition: color .3s;
}
.os-card:hover .os-title { color: #fff; }

.os-desc {
  font-size: .88rem; line-height: 1.76; font-weight: 300;
  color: rgba(255,255,255,.88); letter-spacing: .01em;
  transition: color .3s;
}
.os-card:hover .os-desc { color: #fff; }

.os-features {
  margin-top: 14px; overflow: hidden;
  max-height: 0; opacity: 0; transform: translateY(8px);
  transition: max-height .4s ease, opacity .35s ease, transform .35s ease;
}
.os-card:hover .os-features { max-height: 130px; opacity: 1; transform: translateY(0); }

.os-feat {
  display: flex; align-items: center; gap: 8px;
  font-size: .71rem; color: rgba(255,255,255,.72);
  padding: 3px 0; font-family: 'Courier New', monospace;
  letter-spacing: .04em; transition: color .3s;
}
.os-feat::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.5); flex-shrink: 0;
}
.os-card:hover .os-feat { color: rgba(255,255,255,.9); }

/* Per-card background images — image sits beneath dark overlay */
.os-card[data-index="1"] { background: linear-gradient(135deg, rgba(255,255,255,.042) 0%, transparent 52%), linear-gradient(to bottom right, rgba(22,58,118,.28) 0%, transparent 62%), linear-gradient(rgba(6,12,22,.62), rgba(4,8,16,.68)), url('img/card-bg-1.png'); background-size: auto, auto, auto, cover; background-position: center; }
.os-card[data-index="2"] { background: linear-gradient(135deg, rgba(255,255,255,.042) 0%, transparent 52%), linear-gradient(to bottom right, rgba(22,58,118,.28) 0%, transparent 62%), linear-gradient(rgba(6,12,22,.62), rgba(4,8,16,.68)), url('img/card-bg-2.png'); background-size: auto, auto, auto, cover; background-position: center; }
.os-card[data-index="3"] { background: linear-gradient(135deg, rgba(255,255,255,.042) 0%, transparent 52%), linear-gradient(to bottom right, rgba(22,58,118,.28) 0%, transparent 62%), linear-gradient(rgba(6,12,22,.62), rgba(4,8,16,.68)), url('img/card-bg-3.png'); background-size: auto, auto, auto, cover; background-position: center; }
.os-card[data-index="4"] { background: linear-gradient(135deg, rgba(255,255,255,.042) 0%, transparent 52%), linear-gradient(to bottom right, rgba(22,58,118,.28) 0%, transparent 62%), linear-gradient(rgba(6,12,22,.62), rgba(4,8,16,.68)), url('img/card-bg-4.png'); background-size: auto, auto, auto, cover; background-position: center; }

.os-card.os-dimmed {
  opacity: .32 !important; filter: brightness(.5) !important;
  transform: scale(.975) !important;
  transition: opacity .35s, filter .35s, transform .35s !important;
}
.os-card.os-focused { z-index: 5; }
.os-card.os-pulse {
  box-shadow:
    0 8px 28px rgba(0,0,0,.55),
    0 20px 60px rgba(0,0,0,.42),
    0 0 50px rgba(18,55,118,.22) !important;
}

@media (max-width: 860px) {
  .os-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .os-card  { padding: 26px 22px; border-radius: 14px; cursor: auto; filter: brightness(1.18); }
  .os-title { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  /* Títulos de tarjetas de divisiones en mayúsculas en mobile */
  .div-title { text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; }
}
@media (max-width: 480px) {
  .os-card  { padding: 22px 18px; border-radius: 12px; }
  .os-title { font-size: 1.28rem; }
}
