/* ═══════════════════════════════════════════════
   CUNSECURITY ACADEMY — index.css  v6
   Light base · Nav/footer negro · Acento verde
   Bento Layout Cisco - Ajustado cobertura Total de Otti
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Figtree:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg:         #F7F8FA;
  --surface:   #FFFFFF;
  --surface-2: #F0F1F4;
  --ink:       #0A0A0A;
  --ink-2:     #1A1A1A;
  --ink-3:     #2A2A2A;
  --border:     #E4E6EA;
  --border-dk: #C8CBD2;
  --text:      #1A1A2E;
  --muted:     #6B7280;
  --muted-lt:  #9CA3AF;
  --accent:     #00C896;
  --accent-dk: #00A87E;
  --accent-lt: #E6FBF5;
  --accent-gl: rgba(0,200,150,.18);
  --amber:     #F59E0B;
  --amber-lt:  #FEF3C7;
  --amber-tx:  #92400E;
  --f:         'Figtree', sans-serif;
  --f-mono:    'DM Mono', monospace;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--f); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  height: 62px; background: var(--ink);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 2rem; gap: 1rem;
  transition: box-shadow .3s;
}

.nav-brand       { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 30px; width: 30px; object-fit: contain; }
.nav-brand-text    { font-weight: 800; font-size: 1rem; color: #fff; letter-spacing: -.02em; }
.nav-brand-text em { color: var(--accent); font-style: normal; }

.nav-links   { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }

.nav-auth { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
.btn-text { background: none; border: none; color: rgba(255,255,255,.7); font-family: var(--f); font-size: .875rem; font-weight: 600; cursor: pointer; transition: color .3s; }
.btn-text:hover { color: #fff; }
.btn-primary-small { background: var(--accent); color: var(--ink); border: none; padding: .45rem 1rem; border-radius: 6px; font-weight: 700; font-size: .85rem; font-family: var(--f); cursor: pointer; transition: background .2s, box-shadow .2s; }
.btn-primary-small:hover { background: var(--accent-dk); box-shadow: 0 0 12px var(--accent-gl); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: rgba(255,255,255,.6); border-radius: 2px; transition: all .3s; }

.mobile-menu {
  display: none; position: fixed;
  top: 62px; left: 0; right: 0;
  background: var(--ink-2); border-bottom: 1px solid var(--ink-3);
  padding: 1.5rem 2rem; z-index: 99;
  flex-direction: column; gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 1rem; font-weight: 500; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.08); transition: color .2s; }
.mobile-menu a:last-child { border: none; }
.mobile-menu a:hover { color: #fff; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  background: var(--surface);
  position: relative;
  overflow: visible;
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='69'%3E%3Cpolygon points='30,2 58,17 58,52 30,67 2,52 2,17' fill='none' stroke='%230a0a0a07' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 69px; pointer-events: none;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-lt); border: 1px solid rgba(0,168,126,.25);
  border-radius: 100px; padding: 4px 14px 4px 8px;
  font-size: .72rem; font-weight: 600; color: var(--accent-dk);
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1.5rem; font-family: var(--f-mono);
}
.hero-tag-dot { width: 3px; height: 6px; }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.06;
  color: var(--ink); letter-spacing: -.03em; margin-bottom: 1.1rem;
}
.hero-title .hl { color: var(--accent-dk); }

.hero-sub {
  font-size: 1.05rem; color: var(--muted);
  line-height: 1.75; max-width: 480px; margin-bottom: 2rem;
}

.hero-actions {
  display: flex; gap: .85rem; align-items: center;
  flex-wrap: wrap; margin-bottom: 1.75rem;
}

.btn-primary {
  background: var(--ink); color: #fff; text-decoration: none;
  padding: .82rem 1.75rem; border-radius: 7px; border: none;
  font-weight: 700; font-size: .95rem; font-family: var(--f);
  transition: background .2s, transform .15s; display: inline-block; cursor: pointer;
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--accent-dk);
  border: 1.5px solid var(--accent); text-decoration: none;
  padding: .76rem 1.5rem; border-radius: 7px;
  font-weight: 600; font-size: .9rem; font-family: var(--f);
  transition: background .2s; display: inline-block; cursor: pointer;
}
.btn-outline:hover { background: var(--accent-lt); }

.hero-stats { display: flex; gap: 2.25rem; flex-wrap: wrap; }
.stat-num   { font-size: 1.65rem; font-weight: 900; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: .72rem; color: var(--muted); margin-top: 3px; font-family: var(--f-mono); }


/* ── DISTRIBUCIÓN BENTO GRID ESTILO CISCO ── */
.hero-visual { 
  display: flex; 
  align-items: center; 
  justify-content: flex-end; 
  width: 100%;
}

.cisco-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(2, minmax(140px, auto));
  gap: 16px;
  width: 100%;
  max-width: 540px;
}

.cisco-card {
  background: var(--surface);
  border-radius: 28px; /* Esquinas curvas continuas e idénticas en todas las tarjetas */
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
  overflow: hidden; /* Fuerza a que la imagen respete las esquinas redondeadas */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.cisco-card:hover {
  transform: scale(1.02);
}

/* El cuadro de la izquierda (Otti) abarca ambas filas */
.card-otti {
  grid-row: span 2;
  padding: 0; /* CORRECCIÓN: Se eliminó el relleno interior (padding) para quitar el marco blanco */
}

.card-redteam { background: #FFF5F5; }
.card-blueteam { background: #F0F7FF; }

/* Control unificado de imágenes en la rejilla */
.img-cisco {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Hace que todas las imágenes llenen el espacio completo sin deformarse */
  display: block;
}

/* Ajuste específico para Otti: cobertura total */
.img-otti {
  object-fit: cover; /* Cambiado a cover para rellenar completamente el cuadro */
}


/* ══════════════════════════════════════
   TRUST BAR
══════════════════════════════════════ */
.trust-bar    { background: var(--ink); padding: .75rem 2rem; }
.trust-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.trust-item  { display: flex; align-items: center; gap: 6px; font-size: .79rem; color: rgba(255,255,255,.45); font-weight: 500; }
.trust-num   { font-weight: 700; color: #fff; font-size: .9rem; }

/* ══════════════════════════════════════
   SECTIONS COMMON
══════════════════════════════════════ */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; width: 100%; padding: 1.5rem 2rem; }

.routes-section, #features {
  min-height: calc(100vh - 62px); 
  display: flex;
  align-items: center;
}

.section-tag   { font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dk); margin-bottom: .6rem; display: block; }
.section-title { font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 900; color: var(--ink); letter-spacing: -.03em; margin-bottom: 0.4rem; }
.section-sub   { font-size: .97rem; color: var(--muted); max-width: 520px; line-height: 1.7; }

/* ══════════════════════════════════════
   CARRERAS
══════════════════════════════════════ */
.careers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.career-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem 2rem; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; }
.career-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); border-color: var(--border-dk); }
.career-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.career-title { font-family: var(--f); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: 1rem; letter-spacing: -.02em; }
.career-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }
.career-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.career-btn { text-align: center; width: 100%; display: block; }
.route-tier { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; font-family: var(--f-mono); }
.tier-pro  { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.tier-soon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.route-icon  { font-size: 1.6rem; }
.topic-tag { font-size: .65rem; color: var(--muted); font-family: var(--f-mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; }

/* ══════════════════════════════════════
   FEATURES
══════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 1.5rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.5rem; display: flex; gap: 1rem; transition: border-color .2s; }
.feature-card:hover { border-color: var(--border-dk); }
.feature-icon-box { width: 42px; height: 42px; border-radius: 9px; background: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.feature-title { font-weight: 800; font-size: .95rem; color: var(--ink); margin-bottom: .3rem; }
.feature-desc  { font-size: .83rem; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════
   CTA FINAL
══════════════════════════════════════ */
.cta-section { background: var(--ink); padding: 5rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='69'%3E%3Cpolygon points='30,2 58,17 58,52 30,67 2,52 2,17' fill='none' stroke='%23ffffff05' stroke-width='1'/%3E%3C/svg%3E"); background-size: 60px 69px; pointer-events: none; }
.cta-title   { font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 900; color: #fff; letter-spacing: -.03em; margin-bottom: .65rem; position: relative; }
.cta-sub     { color: rgba(255,255,255,.55); font-size: .97rem; margin-bottom: 2rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-cta-accent { background: var(--accent); color: var(--ink); border: none; padding: .85rem 2rem; border-radius: 7px; font-family: var(--f); font-weight: 800; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .2s, box-shadow .2s; }
.btn-cta-accent:hover { background: var(--accent-dk); box-shadow: 0 8px 24px var(--accent-gl); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer { background: var(--ink-2); border-top: 1px solid var(--ink-3); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--ink-3); }
.footer-brand img         { height: 28px; width: 28px; object-fit: contain; margin-bottom: .6rem; display: block; }
.footer-brand-name        { font-weight: 800; font-size: .95rem; color: #fff; margin-bottom: .4rem; }
.footer-brand-name em     { color: var(--accent); font-style: normal; }
.footer-desc              { font-size: .8rem; color: rgba(255,255,255,.35); line-height: 1.6; max-width: 240px; }
.footer-col-title         { font-family: var(--f-mono); font-size: .68rem; font-weight: 500; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .85rem; }
.footer-links             { list-style: none; }
.footer-links li          { margin-bottom: .4rem; }
.footer-links a           { font-size: .82rem; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.footer-links a:hover     { color: #fff; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy    { font-size: .75rem; color: rgba(255,255,255,.25); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-inner    { gap: 2rem; }
  .section-inner { padding: 4rem 1.5rem; }
}
 
@media (max-width: 900px) {
  .nav-links, .nav-auth  { display: none; }
  .hamburger  { display: flex; }
 
  .hero { padding: 2rem 1.5rem 2.5rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-tag        { margin: 0 auto 1.25rem; }
  .hero-sub        { margin: 0 auto 1.75rem; max-width: 520px; }
  .hero-actions    { justify-content: center; }
  .hero-stats      { justify-content: center; gap: 1.75rem; }
 
  .hero-visual  { justify-content: center; }
  .cisco-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 340px;
    margin: 0 auto;
  }
  .card-otti { grid-row: span 1; padding: 0; }
  .img-cisco { height: 180px; }
  .img-otti { height: 100%; }

  .features-grid { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .trust-inner   { gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
}
 
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .hero { padding: 1.75rem 1.25rem 2rem; }
  .hero-title  { font-size: clamp(2rem, 8vw, 2.8rem); }
  .careers-grid  { grid-template-columns: 1fr; }
  .section-inner { padding: 3rem 1.25rem; }
}
 
@media (max-width: 390px) {
  .hero { padding: 1.5rem 1rem 1.75rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  nav { padding: 0 1rem; }
  .nav-brand-text { font-size: .85rem; }
}