:root{
  --bg:#EEE7E3; /* Main page background */
  --ink:#0f172a;/* Primary text (near-black) */
  --muted:#334155;  /* Secondary text */
  --card:#ffffff;   /* Card background */
  --line:rgba(0,0,0,.12); /* Subtle borders */
  --shadow:0 10px 25px rgba(0,0,0,.08),0 2px 8px rgba(0,0,0,.05);
  --radius:20px;
  --accent:#0ea5e9; /* Electric blue accent */
  --accent-ink:#0b4a6f; /* Contrast for accent surfaces */
}

/* Reset */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height:1.6; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

/* Layout */
.wrap{max-width:1200px; margin:0 auto; padding:28px 20px 72px}
header.nav{
  position:sticky; top:0; z-index:100;
  backdrop-filter:saturate(180%) blur(8px);
  background:color-mix(in srgb, var(--bg) 82%, white 18%);
  border-bottom:1px solid var(--line);
}
.nav-inner{max-width:1200px; margin:0 auto; padding:10px 20px; display:flex; align-items:center; gap:16px; justify-content:space-between}
.brand{display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.2px}
.brand .logo{
  width:36px;height:36px;border-radius:12px; background:linear-gradient(135deg, var(--ink), #222);
  position:relative; box-shadow:var(--shadow);
}
.brand .logo:after{content:"";position:absolute;inset:8px;border-radius:8px;background:linear-gradient(135deg,var(--accent),#93c5fd)}
.nav-links{display:flex; gap:18px; font-weight:600; font-size:14px}
.nav-links a{opacity:.9}
.nav-links a:hover{opacity:1; text-decoration:underline}

/* Section headers (no big hero) */
.eyebrow{display:inline-flex; gap:10px; align-items:center; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.12em; color:var(--muted)}
.dot{width:6px;height:6px;border-radius:999px;background:var(--ink); box-shadow:0 0 0 2px rgba(0,0,0,.06) inset}
h1,h2{line-height:1.15; margin:10px 0 12px}
h1{font-size:clamp(26px,3.6vw,44px); letter-spacing:-.02em}
h2{font-size:clamp(22px,3vw,32px)}
p.lead{font-size:clamp(16px,2.2vw,18px); color:var(--muted); max-width:78ch}

/* Services */
.services{margin-top:26px}
.grid-3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; align-items:stretch}
@media (max-width:980px){.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.grid-3{grid-template-columns:1fr}}

.card{background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:var(--radius); overflow:clip; display:flex; flex-direction:column}
.card .head{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 18px 0}
.pill{display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.14em; color:#111; background:#fff; padding:8px 12px; border-radius:999px; border:1px solid var(--line); box-shadow:0 6px 12px rgba(0,0,0,.06)}
.most{background:linear-gradient(180deg,#fff, #f3f6ff); border-color:color-mix(in srgb, var(--accent) 40%, var(--line) 60%)}

.illus{height:72px; width:72px; border-radius:16px; border:1px solid var(--line); background:conic-gradient(from 210deg,var(--bg),#fff); display:grid; place-items:center; box-shadow:var(--shadow)}
.illus svg{width:34px; height:34px; opacity:.9}

.body{padding:18px}
.body h3{margin:8px 0 8px; font-size:22px}
.body p{margin:0 0 12px; color:var(--muted)}
ul.features{margin:0; padding:0; list-style:none; display:grid; gap:10px}
ul.features li{display:grid; grid-template-columns:20px 1fr; align-items:start; gap:10px}
.check{width:18px;height:18px;border-radius:5px;border:1px solid var(--line); display:grid; place-items:center; box-shadow:0 1px 0 rgba(0,0,0,.05) inset}
.check svg{width:12px;height:12px}

.meta{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.badge{font-size:12px; padding:6px 10px; border-radius:999px; border:1px solid var(--line); background:#fff; color:#0b0b0b}

.card .foot{margin-top:auto; padding:14px 18px 18px; display:flex; align-items:center; justify-content:space-between}
.btn{display:inline-flex; align-items:center; gap:10px; font-weight:800; padding:12px 14px; border-radius:999px; border:1px solid var(--ink); background:#111; color:#fff; box-shadow:var(--shadow); transform:translateZ(0); transition:transform .18s ease, box-shadow .18s ease, background .18s ease}
.btn:hover{transform:translateY(-2px); box-shadow:0 14px 30px rgba(0,0,0,.12),0 4px 14px rgba(0,0,0,.08)}
.ghost{background:#fff; color:#111; border-color:#111}

/* Clients */
.clients{margin-top:54px}
.logo-grid{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px}
@media (max-width:1100px){.logo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:700px){.logo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.logo{background:#fff; border:1px solid var(--line); border-radius:14px; display:grid; place-items:center; padding:18px; box-shadow:var(--shadow); min-height:72px}
.logo span{font-weight:800; letter-spacing:.04em}

.stats{margin-top:20px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px}
@media (max-width:780px){.stats{grid-template-columns:1fr}}
.stat{background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:18px}
.stat .kpi{font-size:28px; font-weight:900; letter-spacing:-.02em}
.stat small{display:block; color:var(--muted)}

/* Case Snapshots */
.snapshots{margin-top:40px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px}
@media (max-width:980px){.snapshots{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.snapshots{grid-template-columns:1fr}}
.snap{background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; box-shadow:var(--shadow); position:relative}
.snap:before{content:"“"; position:absolute; top:-6px; left:12px; font-size:44px; line-height:1; color:rgba(0,0,0,.12); font-weight:900}
.snap strong{display:block; font-size:16px}
.snap p{margin:8px 0 0; color:var(--muted)}

/* CTA footer */
.cta{margin-top:54px; background:linear-gradient(180deg,#fff, color-mix(in srgb, var(--bg) 75%, #fff 25%)); border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow); padding:24px}
.cta-row{display:flex; flex-wrap:wrap; align-items:center; gap:16px; justify-content:space-between}
.cta-actions{display:flex; gap:12px; flex-wrap:wrap}

/* Subtle reveal on scroll */
.reveal{opacity:0; transform:translateY(14px); filter:saturate(.9); transition:opacity .6s ease, transform .6s ease}
.reveal.on{opacity:1; transform:none; filter:none}
@media (prefers-reduced-motion:reduce){
  .btn,.reveal{transition:none}
}
  
/* --- New: horizontal service rows & visual design --- */
.service-stack{display:grid; gap:22px}
.row-card{position:relative; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:24px; overflow:hidden; display:grid; grid-template-columns:360px 1fr}
@media (max-width:980px){.row-card{grid-template-columns:1fr}}

.row-card .media{position:relative; min-height:240px; padding:22px; border-right:1px solid var(--line); background:radial-gradient(140% 120% at 0% 0%, #fff 0%, #f6f6f6 55%, var(--bg) 100%); overflow:hidden; border-top-left-radius:24px; border-bottom-left-radius:24px} 
.row-card .media.alt{background:radial-gradient(140% 120% at 100% 0%, #fff 0%, #f6f6f6 55%, var(--bg) 100%)}
.beam{position:absolute; inset:-10% -20%; background:conic-gradient(from 210deg, rgba(14,165,233,.16), rgba(147,197,253,.18), rgba(14,165,233,.08), transparent 60%); filter:blur(18px); animation:beam 9s linear infinite}
@keyframes beam{from{transform:rotate(0)} to{transform:rotate(360deg)}}

.emblem{position:relative; width:96px; height:96px; border-radius:24px; background:linear-gradient(135deg, var(--ink), #222); display:grid; place-items:center; box-shadow:0 12px 30px rgba(0,0,0,.2); isolation:isolate}
.emblem svg{width:46px; height:46px; color:#fff; opacity:.95}
.emblem::after{content:""; position:absolute; inset:8px; border-radius:18px; background:linear-gradient(135deg, var(--accent), #93c5fd)}
.emblem > svg{position:relative; z-index:2}
.emblem-glow{position:absolute; inset:-18px; border-radius:30px; background:radial-gradient(closest-side, rgba(14,165,233,.35), rgba(14,165,233,0)); z-index:1; filter:blur(10px)}

.chips{position:absolute; bottom:16px; left:16px; display:flex; gap:8px; flex-wrap:wrap}
.chips li{list-style:none; font-size:12px; padding:6px 10px; border-radius:999px; background:#fff; border:1px solid var(--line); box-shadow:0 4px 10px rgba(0,0,0,.06)}

.ribbon{position:absolute; top:14px; right:-40px; transform:rotate(20deg); background:linear-gradient(90deg, #fff, #e6f2ff); color:#0b0b0b; font-weight:800; letter-spacing:.06em; padding:6px 52px; border:1px solid var(--line); box-shadow:var(--shadow); border-radius:999px}

.row-card .content{display:grid; grid-template-rows:auto 1fr auto; gap:0}
.row-card .body{padding:18px 18px 0}
.row-card .foot{padding:18px; border-top:1px dashed var(--line); display:flex; justify-content:flex-end; gap:10px}

/* Snippet overlay for Training */
.snippet{position:absolute; right:14px; bottom:14px; border-radius:14px; background:#111; color:#fff; padding:12px 14px; font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size:12px; opacity:.9; box-shadow:0 16px 30px rgba(0,0,0,.25)}

/* Subtle site-wide grid to add depth */
body::before{content:""; position:fixed; inset:0; pointer-events:none; background:
  linear-gradient(transparent 23px, rgba(0,0,0,.03) 24px) 0 0/100% 24px,
  linear-gradient(90deg, transparent 23px, rgba(0,0,0,.03) 24px) 0 0/24px 100%;
  mask:linear-gradient(#000,transparent 65%);
}

/* Hover polish */
.row-card:hover .emblem{transform:translateY(-3px) scale(1.03)}
.row-card:hover{box-shadow:0 18px 40px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.08)}
  
/* Clip beams on mobile + top layout */
@media (max-width:980px){
  .row-card .media{border-right:none; border-bottom:1px solid var(--line); border-radius:24px 24px 0 0}
}
  
/* --- New: Sector visuals (replace client logos) --- */
.sector-grid{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px}
@media (max-width:1100px){.sector-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.sector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sector{position:relative; padding:18px; border-radius:18px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); overflow:hidden}
.sector:before{content:""; position:absolute; inset:-20% -40% auto auto; width:220px; height:220px; background:radial-gradient(closest-side, rgba(14,165,233,.16), rgba(147,197,253,.10), transparent 70%); transform:translate(30px,-40px); filter:blur(6px)}
.sector h4{margin:6px 0 2px; font-size:16px}
.sector p{margin:0; color:var(--muted); font-size:13px}
.glyph{width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg, var(--accent), #93c5fd); color:#fff; box-shadow:0 10px 22px rgba(14,165,233,.25), inset 0 0 0 6px rgba(255,255,255,.25)}
.sector:hover{transform:translateY(-2px); box-shadow:0 18px 40px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.08)}
  
/* --- Responsive button fixes --- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:12px 18px; min-height:44px; line-height:1; white-space:nowrap; text-align:center}
.row-card .foot{padding:16px; border-top:1px dashed var(--line); display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap}
@media (max-width:680px){
  .row-card .foot{justify-content:center; flex-direction:column; align-items:stretch}
  .row-card .foot .btn{width:100%}
}
  
/* --- Sector Microanimations --- */
.glyph{position:relative; transition:transform .35s ease, box-shadow .35s ease}
.sector:hover .glyph{transform:translateY(-2px) scale(1.03) rotate(-2deg); box-shadow:0 14px 26px rgba(14,165,233,.28), inset 0 0 0 6px rgba(255,255,255,.30)}
@keyframes tilt{0%{transform:rotate(0) translateY(0)}50%{transform:rotate(-6deg) translateY(-2px)}100%{transform:rotate(0) translateY(0)}}
@keyframes pulseRing{0%{box-shadow:0 0 0 0 rgba(14,165,233,.40)}100%{box-shadow:0 0 0 16px rgba(14,165,233,0)}}
.sector.inview:nth-child(1) .glyph{animation:tilt 600ms ease-out 1}
.sector.inview:nth-child(5) .glyph::after{content:""; position:absolute; inset:-2px; border-radius:inherit; animation:pulseRing 1000ms ease-out 1}
@media (prefers-reduced-motion:reduce){.mini,.glyph,.sector:hover .glyph{transition:none} .sector.inview .glyph{animation:none}}
  
/* --- Visual separator between service rows --- */
.sep{height:24px; position:relative}
.sep::before{content:""; position:absolute; left:24px; right:24px; top:50%; height:1px; background:linear-gradient(90deg, transparent, rgba(0,0,0,.22), transparent); opacity:.35}
.sep::after{content:""; position:absolute; left:50%; top:50%; width:8px; height:8px; border-radius:999px; background:#fff; border:1px solid var(--line); transform:translate(-50%,-50%); box-shadow:0 2px 6px rgba(0,0,0,.08)}



/* === NAV + MOBILE SHEET + FOOTER === */
:root { --nav-h: 56px; }

/* Push content below the fixed header */
body { padding-top: var(--nav-h); }

.and-row{
  display:flex; align-items:center; justify-content:space-between;
  height:var(--nav-h); padding:0 12px;
}
@media (min-width:768px){
  .and-row{ justify-content:flex-start; }
  .and-divide > * + *{ border-left:1px solid rgba(0,0,0,.6); }
}

.and-logo img{
  display: block;
  height: 90px; /* 8px top/bottom breathing room */
  width: 250px;                        /* keep aspect ratio */
  object-fit: contain;                /* no cropping */
}


/* Desktop menu */
.and-menu{ display:none; }
@media (min-width:768px){
  .and-menu{ display:flex; align-items:center; gap:32px; padding:0 16px; flex:1; }
}
.and-menu a{ display:inline-flex; align-items:center; }
.and-plus{ margin-left:8px; font-size:18px; line-height:1; }


/* "We're Hiring" (sm+) */
.and-hire{ display:none; }
@media (min-width:640px){
  .and-hire{ display:flex; align-items:center; padding:0 16px; }
}

/* Black hamburger */
.and-hamb{
  margin-left:auto; width:var(--nav-h); height:var(--nav-h);
  background:#000; color:#fff; border:0; border-top-right-radius:10px; border-bottom-right-radius:10px;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  appearance:none; -webkit-appearance:none; outline:none; box-shadow:none;
}
.and-hamb span{ display:block; width:24px; height:2px; background:#fff; margin:3px 0; }

/* Mobile sheet */
.and-sheet-wrap{ position:fixed; inset:0; z-index:90; pointer-events:none; }
.and-sheet-wrap.open{ pointer-events:auto; }
.and-backdrop{
  position:absolute; inset:0; background:rgba(0,0,0,.5);
  opacity:0; transition:opacity .3s ease;
}
.and-sheet-wrap.open .and-backdrop{ opacity:1; }

.and-sheet{
  position:absolute; left:20px; right:20px; top:20px; bottom:20px;
  background:#000; color:#fff; border-radius:0px; border:1px solid rgba(255,255,255,.12);
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  transform:translateY(-20px); opacity:0; transition:transform .3s ease, opacity .3s ease;
  overflow:hidden;
}
.and-sheet-wrap.open .and-sheet{ transform:none; opacity:1; }

.and-sheet-top{
  height:var(--nav-h); display:flex; align-items:center; justify-content:space-between;
  padding:0 20px; border-bottom:1px solid rgba(255,255,255,.15);
}
.and-close{
  width:40px; height:40px; background:transparent; color:#fff; border:0; border-radius:8px;
  appearance:none; -webkit-appearance:none; outline:none; box-shadow:none;
}
.and-list{ overflow:auto; max-height:calc(100% - var(--nav-h)); }
.and-list a{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px; border-bottom:1px solid rgba(255,255,255,.08);
  font-weight:600; font-size:20px; color:#fff;
}
.and-list a:hover{ background:rgba(48, 48, 48, 0.158); }

/* Footer */
.and-footer{ margin-top:80px; background:#000; color:#fff; }
.and-foot-wrap{ max-width:1200px; margin:0 auto; padding:0 20px; }
.and-foot-logo{ display:flex; flex-direction:column; align-items:center; padding:40px 0 12px; }
.and-foot-logo img{ width:196px; height:196px; object-fit:contain; }
.and-foot-name{ margin-top:8px; font-size:14px; letter-spacing:0.35em; }
.and-foot-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }

.and-foot-grid{
  display:grid; grid-template-columns:1fr; gap:24px; padding-bottom:28px;
}
@media (min-width:768px){ .and-foot-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }

.and-foot-grid h5{ font-size:12px; font-weight:700; letter-spacing:.16em; color:rgba(255,255,255,.7); margin:0; }
.and-foot-grid ul{ margin:10px 0 0; padding:0; list-style:none; }
.and-foot-grid li{ margin:8px 0; }
.and-foot-grid a{ color:#fff; opacity:.9; }
.and-foot-grid a:hover{ opacity:1; text-decoration:underline; }

.and-foot-div{ border-top:1px solid rgba(255,255,255,.1); }
.and-copy{ text-align:center; padding:14px 0; font-size:14px; color:rgba(255,255,255,.7); }
.and-legal{ display:flex; flex-wrap:wrap; justify-content:center; gap:16px; padding:0 0 28px; font-size:12px; color:rgba(255,255,255,.6); }
.and-legal a{ color:inherit; }
.and-legal a:hover{ color:#fff; }


/* ============== NAV: glass, dividers, square hamb, white text ============== */

:root { --nav-h: 56px; }
/* Push content below fixed header */
body { padding-top: var(--nav-h); }
/* Header (glass) */
.and-header { position: fixed; top: 0; left: 0; right: 0; z-index: 90; -webkit-backdrop-filter: saturate(150%) blur(10px); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid rgba(51, 51, 51, 0.075) }
.and-row { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding-right: 0; }
@media (min-width: 768px) {
  .and-row { justify-content: flex-start; }
  .and-divide > * + * { border-left: 1px solid rgba(255,255,255,.20); }
}

/* Logo + name */
.and-logo-badge { width: 32px; height: 32px; border-radius: 10px; background: #000; color: #EEE7E3; display: grid; place-items: center; font-weight: 900; }


/* Desktop menu */
.and-menu { display: none; }
@media (min-width: 768px) { .and-menu { display: flex; align-items: center; gap: 32px; padding: 0 16px; flex: 1; } }
.and-menu a { display: inline-flex; align-items: center; color: #000000; text-decoration: none; }
.and-plus { margin-left: 8px; font-size: 18px; line-height: 1; }
/* "We're Hiring" (sm+) */
.and-hire { display: none; color: #000000; text-decoration: none; }
@media (min-width: 640px) { .and-hire { display: flex; align-items: center; padding: 0 16px; }}

/* Black hamburger (iOS-safe) */
.and-hamb { margin-left: auto; width: var(--nav-h); height: var(--nav-h); background: #000; color: #fff; border: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; appearance: none; -webkit-appearance: none; outline: none; box-shadow: none; }
.and-hamb svg{ width:24px; height:24px; display:block; }

/* Navbar dividers: full-height lines next to Logo|Menu and Hire|Hamburger */
@media (min-width: 768px){
  .and-row{ align-items: stretch; }                 /* children fill bar height */
  .and-divide > *{ display:flex; align-items:center; position:relative; }

  /* turn OFF the old short borders */
  .and-divide > * + *{ border-left: none !important; }

  /* draw full-height lines only before the Menu and Hire blocks */
  .and-divide > .and-menu::before,
  .and-divide > .and-hire::before{
    content:"";
    position:absolute;
    left:0; top:0; bottom:0;                       /* full height of the bar */
    width:1px;
    background: #2424241e;
  }
}

/* Desktop: make the overlay menu narrower (right-aligned panel) */
@media (min-width: 1024px){
  .and-sheet{
    left: auto !important;                 /* stop spanning the whole viewport */
    right: 24px !important;
    width: clamp(520px, 36vw, 480px) !important;  /* nice responsive width */
    top: 20px !important;
    bottom: 20px !important;
    border-radius: 0px;
  }


}
.mobile-ill{ display:none; }
/* put this at the end of style.css */
.cyber-section{ position: relative; }
/* 1px gradient line between columns */
.cyber-section::before{
  content:"";
  position:absolute;
  top: clamp(24px,4vh,48px);
  bottom: clamp(24px,4vh,48px);
  left: 50%;
  width:1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgb(0 0 0 / .18) 10%,
    rgb(0 0 0 / .24) 50%,
    rgb(0 0 0 / .18) 90%,
    transparent
  );
  pointer-events:none;
}
@media (max-width: 900px){
  .cyber-section::before{ display:none; }  /* hide when stacked */
}



/* Make the mobile sheet a column layout */
.and-sheet{
  display:flex;
  flex-direction:column;
}

/* Top bar: only the close button, aligned right */
.and-sheet-top{
  height: var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:flex-end;   /* was space-between */
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

/* List should take remaining space and scroll */
.and-list{
  flex:1;
  overflow:auto;
  max-height: none;           /* override earlier rule */
}

/* Bottom logo area */
.and-sheet-bottom{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px 20px;
  border-top:1px solid rgba(255,255,255,.12);
}
.and-sheet-bottom img{
  max-width: 220px;   /* adjust as you like */
  height:auto;
  opacity:.95;
}

/* --- Mobile: center contact buttons in the contact section --- */
@media (max-width: 700px){
  #contact .cta-actions{
    width: 100%;
    justify-content: center;
  }
}

/* ===== Modal + Form ===== */
.modal-wrap{ position:fixed; inset:0; z-index:95; pointer-events:none; }
.modal-wrap.open{ pointer-events:auto; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.5); opacity:0; transition:opacity .25s ease; }
.modal-wrap.open .modal-backdrop{ opacity:1; }
.modal{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-46%);
  width:min(640px, 92vw); background:#fff; color:var(--ink);
  border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow);
  padding:20px 18px 18px; opacity:0; transition:opacity .25s ease, transform .25s ease;
}
.modal-wrap.open .modal{ opacity:1; transform:translate(-50%,-50%); }
.modal-close{
  position:absolute; right:10px; top:10px; width:38px; height:38px;
  display:grid; place-items:center; background:transparent; border:0; border-radius:10px; color:#222;
}
.modal-head h3{ margin:4px 0 4px; font-size:22px; }
.modal-head p{ margin:0 0 12px; color:var(--muted); }

.form{ display:grid; gap:12px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
/* Timezone: 3-column row on wide screens */
.form-row.three{ grid-template-columns: 1fr 1fr 1fr; }
@media (max-width:640px){ .form-row.three{ grid-template-columns: 1fr; } }

/* --- custom timezone dropdown (stays inside modal) --- */
.tz-select{ position:relative; }
#b-tz{ position:absolute; opacity:0; width:0; height:0; pointer-events:none; } /* hide native */
.custom-select-trigger{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; padding:12px; border-radius:12px; border:1px solid var(--line);
  background:#fff; color:#0b0b0b; font:inherit; cursor:pointer;
}
.custom-select-trigger:focus{
  outline:none;
  border-color:color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
  box-shadow:0 0 0 4px rgba(14,165,233,.10);
}
.tz-menu{
  position:absolute; left:0; right:0; top:calc(100% + 6px);
  background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow);
  max-height:240px; overflow:auto; display:none; z-index:3;
}
.tz-select.open .tz-menu{ display:block; }
.tz-item{ padding:10px 12px; cursor:pointer; }
.tz-item:hover, .tz-item[aria-selected="true"]{
  background:color-mix(in srgb, var(--accent) 18%, #fff 82%);
}

@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }
.form-group{ display:grid; gap:6px; }
.form-group label{ font-weight:700; font-size:13px; color:var(--muted); }
.form-group input, .form-group textarea, .form-group select{
  width:100%; padding:12px 12px; border-radius:12px; border:1px solid var(--line);
  background:#fff; color:#0b0b0b; font:inherit; outline:none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{
  border-color:color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
  box-shadow:0 0 0 4px rgba(14,165,233,.10);
}
.form-actions{ display:flex; gap:10px; justify-content:flex-end; padding-top:4px; }
.form-fallback{ font-size:12px; color:var(--muted); margin: 6px 0 0; }
.form-success{
  margin-top:8px; padding:10px 12px; border-radius:12px; background:#e6f7ff; color:#0b4a6f;
  border:1px solid color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
}

/* Stack modal buttons on very narrow screens */
@media (max-width:480px){
  .form-actions{ flex-direction:column; }
  .form-actions .btn{ width:100%; }
}


/* =========================================
   TACTICAL CARD STYLES (Offensive Security)
   ========================================= */

/* Rejilla Específica para la tarjeta táctica: Texto Izq (1fr) / Visual Der (1.2fr) */
.row-card.tactical {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Dar más espacio a la parte visual */
  background: #fff;
  overflow: hidden;
}

@media (max-width: 900px) {
  .row-card.tactical {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  /* En móvil, ponemos la imagen arriba (opcional) o abajo */
  .row-card.tactical .media { order: -1; min-height: 300px; }
}

/* --- Columna de Contenido (Izquierda) --- */
.tactical .content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.tactical .badges-row { display: flex; gap: 10px; margin-bottom: 20px; }

.badge-dark {
  background: #0f172a; color: #fff; padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  display: inline-flex; align-items: center; gap: 8px;
}
.badge-outline {
  border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

.dot-pulse-red {
  width: 8px; height: 8px; background: #f43f5e; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7);
  animation: pulse-red 2s infinite;
}

.tech-tag {
  font-family: monospace; font-size: 11px; color: var(--muted);
  background: #f1f5f9; padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.05);
}

/* --- Columna Visual (Derecha - HUD) --- */
.tactical .hud-container {
  background: #0B0D12; /* Fondo muy oscuro */
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* Grid de fondo decorativo */
.hud-bg {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(14,165,233,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask: radial-gradient(circle at center, black 40%, transparent 90%);
}

/* Ventana Principal del Dashboard */
.hud-window {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  background: #111318;
  border: 1px solid #1e293b;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
}

.hud-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid #1e293b;
}
.hud-dots span { width: 8px; height: 8px; background: #334155; border-radius: 50%; display: inline-block; margin-right: 4px; }
.hud-title { font-family: monospace; font-size: 10px; color: #94a3b8; }
.hud-status { 
  font-size: 9px; font-weight: 800; color: #f43f5e; 
  background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.2);
  padding: 2px 6px; border-radius: 4px; letter-spacing: 0.05em;
  animation: text-flicker 3s infinite;
}

.hud-body { padding: 20px; }

/* Kill Chain Visualization */
.kill-chain { margin-bottom: 20px; }
.chain-labels {
  display: flex; justify-content: space-between; 
  font-family: monospace; font-size: 9px; color: #64748b; margin-bottom: 8px; letter-spacing: 0.05em;
}
.chain-bar {
  height: 4px; background: #1e293b; border-radius: 2px; position: relative; margin-bottom: 20px; overflow: hidden;
}
.chain-progress {
  position: absolute; left: 0; top: 0; bottom: 0; width: 60%;
  background: linear-gradient(90deg, #0ea5e9, #f43f5e);
}
.chain-ping {
  position: absolute; left: 60%; top: -2px; width: 8px; height: 8px;
  background: #fff; border-radius: 50%; box-shadow: 0 0 10px #fff;
  transform: translate(-50%, 0);
  animation: ping-marker 2s infinite;
}

/* Nodos */
.net-nodes { display: flex; justify-content: space-between; align-items: center; }
.node { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1;}
.node-icon {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid #334155; color: #94a3b8;
  margin-bottom: 6px;
}
.node-icon svg { width: 18px; height: 18px; }
.node-label { font-family: monospace; font-size: 10px; color: #64748b; }

/* Colores de nodo */
.node-icon.blue { color: #0ea5e9; border-color: rgba(14,165,233,0.3); background: rgba(14,165,233,0.1); }
.node-icon.red { color: #f43f5e; border-color: rgba(244,63,94,0.3); background: rgba(244,63,94,0.1); box-shadow: 0 0 15px rgba(244,63,94,0.2); }
.node-icon.gray { color: #475569; border-color: #334155; }
.opacity-50 { opacity: 0.5; }
.text-red { color: #f43f5e; font-weight: bold; }

/* Badge PWN */
.node-badge {
  position: absolute; top: -6px; right: -8px; background: #f43f5e; color: #fff;
  font-size: 8px; font-weight: 800; padding: 1px 4px; border-radius: 3px;
  transform: rotate(5deg);
}

/* Conectores */
.node-link { flex: 1; height: 1px; background: #334155; margin: 0 8px; position: relative; top: -12px; }
.node-link span {
  position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #f43f5e, transparent);
  transform: translateX(-100%); animation: data-flow 2s infinite linear;
}

/* Terminal Log */
.terminal-log {
  background: rgba(0,0,0,0.3); border-radius: 8px; padding: 12px;
  font-family: 'Courier New', monospace; font-size: 10px; line-height: 1.6;
  border: 1px solid #1e293b;
}
.log-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-green { color: #10b981; }
.c-white { color: #e2e8f0; }
.c-gray { color: #64748b; }
.c-rose { color: #fb7185; text-shadow: 0 0 5px rgba(251,113,133,0.4); }
.log-cursor { color: #0ea5e9; animation: blink 1s step-end infinite; }

/* ANIMACIONES */
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); } }
@keyframes ping-marker { 75%, 100% { transform: translate(-50%, 0) scale(2); opacity: 0; } }
@keyframes data-flow { 100% { transform: translateX(100%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes text-flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

/* =========================================
   TRAINING CARD STYLES (Phishing Awareness)
   ========================================= */

/* Layout específico: Visual Izq / Texto Der */
.row-card.training {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  overflow: hidden;
}

@media (max-width: 900px) {
  .row-card.training {
    grid-template-columns: 1fr;
    grid-template-rows: 300px auto;
  }
}

/* --- Columna Visual (Izquierda) --- */
.training-scene {
  background: #f0f4ff; /* Azul muy pálido corporativo */
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

/* Patrón de fondo */
.scene-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

/* Tarjeta de Email */
.email-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 380px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.row-card.training:hover .email-card { transform: translateY(-5px); }

/* Cabecera Email */
.email-head {
  padding: 16px; border-bottom: 1px solid #f1f5f9;
  display: flex; gap: 12px; align-items: center;
}
.avatar-circle {
  width: 36px; height: 36px; background: #e2e8f0; border-radius: 50%;
  color: #64748b; display: grid; place-items: center; font-weight: 700; font-size: 12px;
}
.email-info { flex: 1; overflow: hidden; }
.email-sender { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fake-domain { color: #ef4444; font-weight: 600; background: #fef2f2; padding: 0 4px; border-radius: 4px; }
.email-subject { font-size: 13px; font-weight: 700; color: #0f172a; margin-top: 2px; }

/* Cuerpo Email */
.email-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-text { height: 8px; background: #f1f5f9; border-radius: 4px; }

.fake-button-wrap { margin-top: 10px; display: flex; justify-content: center; }
.fake-button {
  background: #3b82f6; color: white; padding: 10px 20px; border-radius: 6px;
  font-size: 12px; font-weight: 600; position: relative; cursor: not-allowed;
}

/* Tooltip de Alerta (Animación) */
.tooltip-danger {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -8px);
  background: #1e293b; color: #fff; padding: 6px 10px; border-radius: 6px;
  font-size: 10px; white-space: nowrap; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none;
  animation: tooltip-pop 4s infinite;
  animation-delay: 1.5s; /* Espera a que baje el escáner */
}
.tooltip-danger::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -4px;
  border-width: 4px; border-style: solid; border-color: #1e293b transparent transparent transparent;
}

/* Línea de Escaneo */
.scan-line {
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  opacity: 0.8;
  animation: scan-vertical 4s ease-in-out infinite;
}

/* Badge de Éxito */
.success-badge {
  position: absolute; bottom: 30px; right: 30px;
  background: #10b981; color: white; padding: 8px 16px; border-radius: 99px;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 10px 20px rgba(16,185,129,0.3);
  transform: translateY(20px) scale(0.9); opacity: 0;
  animation: badge-appear 4s forwards infinite;
  animation-delay: 2.5s; /* Aparece después del escaneo */
  z-index: 5;
}
.success-badge svg { width: 16px; height: 16px; }

/* --- Ajustes Texto (Derecha) --- */
.pill.blue { color: #0284c7; background: #e0f2fe; border-color: #bae6fd; }
.check.blue { color: #0284c7; border-color: #bae6fd; background: #f0f9ff; }

/* Animaciones Keyframes */
@keyframes scan-vertical {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  50% { top: 100%; opacity: 1; }
  51% { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

@keyframes tooltip-pop {
  0%, 40% { opacity: 0; transform: translate(-50%, 0); }
  45%, 85% { opacity: 1; transform: translate(-50%, -8px); }
  90%, 100% { opacity: 0; transform: translate(-50%, 0); }
}

@keyframes badge-appear {
  0%, 60% { opacity: 0; transform: translateY(20px) scale(0.9); }
  70%, 90% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(0) scale(1); } /* Reset para el loop */
}


/* =========================================
   CONSULTING CARD STYLES (Secure Architecture)
   ========================================= */

/* Layout: Texto Izq / Visual Der */
.row-card.consulting {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #fff;
  overflow: hidden;
}

@media (max-width: 900px) {
  .row-card.consulting {
    grid-template-columns: 1fr;
    grid-template-rows: auto 300px;
  }
  /* En móvil, la imagen abajo */
  .row-card.consulting .media { border-left: none; border-top: 1px solid var(--line); }
}

/* --- Columna Visual (Derecha) --- */
.arch-scene {
  background: #f8fafc; /* Gris/Azulado muy claro */
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

/* Blueprint Grid */
.blueprint-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
}

/* Diagrama Container */
.arch-diagram {
  position: relative;
  width: 320px; height: 220px;
  z-index: 2;
}

/* Líneas SVG */
.arch-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.connection-path {
  stroke: #cbd5e1; fill: none; stroke-dasharray: 6 4;
  animation: connection-solid 2s forwards 1s; /* Se vuelve sólida */
}
.packet { fill: #8b5cf6; opacity: 0; animation-fill-mode: forwards; }
/* Los paquetes aparecen una vez la línea es sólida (aprox) */
.packet { opacity: 1; } 

/* Nodos */
.arch-node {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 2;
  background: #fff; padding: 8px; border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.arch-node:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15); border-color: #ddd6fe; }

.icon-box {
  width: 40px; height: 40px; background: #f3f4f6; border-radius: 8px;
  color: #64748b; display: grid; place-items: center;
  transition: background 0.5s, color 0.5s;
}
.icon-box svg { width: 20px; height: 20px; stroke-width: 1.8; fill: none; stroke: currentColor; }

.label { font-size: 10px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; background: #fff; padding: 2px 6px; border-radius: 4px; }

/* Posicionamiento Nodos */
.node-user { top: 70px; left: 10px; }
.node-gw { top: 70px; left: 130px; }
.node-db { top: 20px; left: 230px; }

/* Escudos y Candados (Animaciones de éxito) */
.node-shield, .node-lock {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; background: #10b981; color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(16,185,129,0.4);
  transform: scale(0);
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.node-shield svg, .node-lock svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }

/* Stagger animations */
.node-user .node-shield { animation-delay: 1.2s; }
.node-db .node-lock { animation-delay: 1.8s; }

/* Cambio de color de nodos al asegurarse */
.node-user .icon-box { animation: secure-node 0.5s forwards 1.2s; }
.node-db .icon-box { animation: secure-node 0.5s forwards 1.8s; }
.node-gw .icon-box { animation: secure-node 0.5s forwards 1.5s; }

/* Compliance Card (Checklist flotante) */
.compliance-card {
  position: absolute; bottom: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  width: 140px; z-index: 5;
  transform: translateY(20px); opacity: 0;
  animation: slide-up-fade 0.8s ease forwards 2.2s;
}
.comp-header { font-size: 10px; font-weight: 800; color: #1e293b; margin-bottom: 6px; text-transform: uppercase; border-bottom: 1px solid #f1f5f9; padding-bottom: 4px; }
.comp-item { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.comp-check { color: #10b981; font-size: 10px; font-weight: bold; }
.comp-text { font-size: 9px; color: #64748b; font-weight: 500; }

/* --- Ajustes Texto (Izquierda) --- */
.pill.purple { color: #7c3aed; background: #f3e8ff; border-color: #e9d5ff; }
.check.purple { color: #7c3aed; border-color: #e9d5ff; background: #faf5ff; }

/* Keyframes */
@keyframes connection-solid {
  to { stroke: #8b5cf6; stroke-dasharray: 0; } /* De punteado gris a sólido violeta */
}
@keyframes secure-node {
  to { background: #8b5cf6; color: #fff; }
}
@keyframes pop-in {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes slide-up-fade {
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   MENTORING CARD STYLES (Career Growth)
   ========================================= */

/* Layout: Visual Izq / Texto Der */
.row-card.mentoring {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  overflow: hidden;
}

@media (max-width: 900px) {
  .row-card.mentoring {
    grid-template-columns: 1fr;
    grid-template-rows: 320px auto;
  }
}

/* --- Columna Visual (Izquierda) --- */
.career-scene {
  background: #fffbeb; /* Ámbar muy suave */
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

/* Grid de fondo punteado */
.career-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(#d97706 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.15;
}

/* Tarjeta de Candidato */
.candidate-card {
  position: absolute; top: 30px; left: 30px;
  background: #fff; padding: 16px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(245,158,11,0.15), 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid rgba(245,158,11,0.1);
  width: 220px; z-index: 2;
  animation: float-card 6s ease-in-out infinite;
}

.c-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.c-avatar { 
  width: 40px; height: 40px; background: #fbbf24; color: #fff; 
  border-radius: 10px; display: grid; place-items: center; font-weight: 800; 
}
.c-info { flex: 1; }
.c-name { font-size: 13px; font-weight: 700; color: #1e293b; line-height: 1.2; }
.c-role { font-size: 10px; color: #64748b; }
.c-badge { 
  background: #fff7ed; color: #d97706; border: 1px solid #fdba74; 
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px; 
}

/* Stats Animados */
.c-stats { display: grid; gap: 8px; }
.stat-row { display: flex; flex-direction: column; gap: 4px; }
.stat-row span { font-size: 10px; color: #64748b; font-weight: 600; }
.stat-track { height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.stat-fill { 
  height: 100%; background: #fbbf24; border-radius: 3px; width: 0;
  animation: fill-bar 1.5s ease-out forwards 0.5s; 
}
.stat-fill.delay { animation-delay: 0.8s; background: #f59e0b; }

/* Roadmap Stack */
.roadmap-stack {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  margin-left: 120px; /* Desplazar para no tapar la card */
  gap: 4px;
}

.r-step {
  background: #fff; border: 1px solid #fed7aa; padding: 8px 16px; border-radius: 50px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.1);
  opacity: 0; transform: translateY(10px);
  animation: step-appear 0.5s ease forwards;
}
.r-icon { font-size: 14px; }
.r-text { font-size: 12px; font-weight: 700; color: #451a03; }
.r-text.highlight { color: #d97706; }
.r-icon.star { animation: spin-star 3s linear infinite; display: inline-block; }

/* Líneas conectoras */
.r-line {
  width: 2px; height: 24px; background: #fed7aa;
  position: relative; overflow: hidden;
}
.r-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #f59e0b; transform: translateY(-100%);
  animation: line-grow 0.5s linear forwards;
}

/* Stagger animations */
.step-1 { animation-delay: 1.2s; }
.r-line:not(.delay) { opacity: 0; animation: fade-in 0.1s forwards 1.7s; }
.r-line:not(.delay)::after { animation-delay: 1.7s; }

.step-2 { animation-delay: 2.2s; }
.r-line.delay { opacity: 0; animation: fade-in 0.1s forwards 2.7s; }
.r-line.delay::after { animation-delay: 2.7s; }

.step-3 { animation-delay: 3.2s; transform: scale(1.1); box-shadow: 0 8px 20px rgba(245,158,11,0.25); border-color: #f59e0b; }

/* --- Ajustes Texto (Derecha) --- */
.pill.amber { color: #b45309; background: #fff7ed; border-color: #fed7aa; }
.check.amber { color: #b45309; border-color: #fed7aa; background: #fff7ed; }

/* Animaciones */
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fill-bar { from { width: 0; } }
@keyframes step-appear { to { opacity: 1; transform: translateY(0); } }
@keyframes line-grow { to { transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes spin-star { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }