/* ══════════════════════════════════════════════════════════════
   ESTILOS GLOBALES — nav, hero, secciones, cards, contacto, footer y responsive
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg, video, iframe { max-width: 100%; height: auto; }

:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --blue: #1565c0;
  --blue-light: #1e88e5;
  --gold: #f0b429;
  --gold-dark: #c88f00;
  --white: #ffffff;
  --gray-100: #f4f6f9;
  --gray-300: #d0d7e3;
  --gray-600: #5a6a80;
  --text: #1a2535;
  --radius: 4px;

  /* Colores categorías portada */
  --cat-security: #0d2137;
  --cat-admin:    #0d2d1a;
  --cat-courses:  #1a1000;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 78px;
  background: var(--blue);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* ── Logo inline ── */
.nav-logo {
  display: flex; align-items: center; gap: 2px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 62px; width: auto; display: block; flex-shrink: 0;
  mix-blend-mode: screen;
}
/* Texto logo */
.logo-text-wrap {
  display: flex; flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding-left: 4px;
}
.logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 28px;
  color: var(--white); letter-spacing: 1.5px;
  line-height: 1;
}
.logo-sub {
  font-family: 'Lato', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--gold); letter-spacing: 1.5px;
  line-height: 1; text-transform: uppercase;
}
@media(max-width:600px){ .logo-text-wrap { display: none; } }

/* ── Footer logo ── */
.footer-logo-wrap {
  display: flex; align-items: center; gap: 2px;
  text-decoration: none; margin-bottom: 4px;
}
.footer-logo-wrap img {
  height: 62px; width: auto; display: block; flex-shrink: 0;
}
.footer-logo-text {
  display: flex; flex-direction: column;
  align-items: flex-start;
  justify-content: center; gap: 2px;
  padding-left: 4px;
}
.footer-logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 28px;
  color: var(--white); letter-spacing: 1.5px; line-height: 1;
}
.footer-logo-sub {
  font-size: 13px; font-weight: 700;
  color: var(--gold); letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--gold); background: rgba(240,180,41,.08); }
.nav-cta { background: var(--gold) !important; color: var(--navy) !important; padding: 8px 18px !important; font-weight: 900 !important; border-radius: var(--radius) !important; }
.nav-cta:hover { background: var(--gold-dark) !important; color:var(--navy) !important; }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:4px; }
.hamburger span { width:24px; height:2px; background:var(--white); display:block; transition:.3s; }

/* ══════════════════════════════
   HERO SECTION
══════════════════════════════ */
.hero {
  margin-top: 78px;
  min-height: 62vh;
  background:
    linear-gradient(160deg, rgba(10,22,40,.72) 0%, rgba(21,101,192,.30) 60%, rgba(10,22,40,.80) 100%),
    url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1600&q=80') center/cover no-repeat;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, #f4f6f9, transparent);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(21,101,192,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-stripe { position:absolute; top:0; left:0; width:5px; height:100%; background: linear-gradient(to bottom, var(--gold), rgba(240,180,41,.2)); }
.hero-inner {
  max-width: 1200px; margin: 0 auto; width:100%;
  padding: 80px 40px 100px;
  text-align: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(240,180,41,.10);
  border: 1px solid rgba(240,180,41,.40);
  border-radius: 2px;
  padding: 7px 18px;
  color: var(--gold);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before { content:''; width:6px; height:6px; background:var(--gold); border-radius:50%; }
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: block;
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: .9;
  letter-spacing: -2px;
}
.hero-desc {
  color: rgba(255,255,255,.80);
  font-size: 17px; line-height: 1.75;
  margin-bottom: 0;
  font-weight: 300;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}

/* ══════════════════════════════
   STATS BAR
══════════════════════════════ */
.stats-bar {
  background: var(--navy-mid);
  border-bottom: 3px solid var(--gold);
}
.stats-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0;
}
.stat {
  padding: 22px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px; font-weight: 900;
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: 1px; text-transform: uppercase;
  margin-top: 4px;
}

/* ══════════════════════════════
   PORTADA — 3 CUADROS CATEGORÍAS
══════════════════════════════ */
.portada-section {
  background: var(--gray-100);
  padding: 0;
}
.portada-intro {
  text-align: center;
  padding: 60px 40px 40px;
  background: var(--gray-100);
}
.portada-intro .section-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue);
  background: rgba(21,101,192,.1);
  padding: 5px 12px; border-radius: 2px;
  margin-bottom: 14px;
}
.portada-intro h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900; text-transform: uppercase;
  color: var(--navy); line-height: 1;
  letter-spacing: -.5px; margin-bottom: 12px;
}
.portada-intro h2 span { color: var(--blue); }
.portada-intro p {
  color: var(--gray-600); font-size: 16px; line-height: 1.7;
  max-width: 600px; margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 100%;
}

/* Cada cuadro-categoría */
.cat-card {
  position: relative;
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s ease;
}
.cat-card:hover { z-index: 2; transform: scale(1.015); }

/* Imagen de fondo de cada cuadro */
.cat-card-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.cat-card:hover .cat-card-bg { transform: scale(1.06); }

/* Overlay degradado */
.cat-card-overlay {
  position: absolute; inset: 0;
  transition: opacity .3s;
}
.cat-card--security .cat-card-overlay {
  background: linear-gradient(160deg, rgba(13,33,55,.25) 0%, rgba(10,22,40,.65) 65%);
}
.cat-card--admin .cat-card-overlay {
  background: linear-gradient(160deg, rgba(5,40,20,.25) 0%, rgba(10,30,18,.65) 65%);
}
.cat-card--courses .cat-card-overlay {
  background: linear-gradient(160deg, rgba(50,25,0,.25) 0%, rgba(26,16,0,.65) 65%);
}

/* Barra superior de color */
.cat-card-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
}
.cat-card--security .cat-card-topbar { background: var(--blue); }
.cat-card--admin    .cat-card-topbar { background: #2e7d32; }
.cat-card--courses  .cat-card-topbar { background: var(--gold); }

/* Contenido del cuadro */
.cat-card-content {
  position: relative; z-index: 2;
  padding: 36px 32px 36px;
}
.cat-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
  margin-bottom: 16px;
}
.cat-badge::before { content:''; width:6px; height:6px; border-radius:50%; }
.cat-card--security .cat-badge { color: #90caf9; background: rgba(21,101,192,.2); border:1px solid rgba(21,101,192,.4); }
.cat-card--security .cat-badge::before { background: #90caf9; }
.cat-card--admin    .cat-badge { color: #a5d6a7; background: rgba(46,125,50,.2); border:1px solid rgba(46,125,50,.4); }
.cat-card--admin    .cat-badge::before { background: #a5d6a7; }
.cat-card--courses  .cat-badge { color: var(--gold); background: rgba(240,180,41,.15); border:1px solid rgba(240,180,41,.35); }
.cat-card--courses  .cat-badge::before { background: var(--gold); }

.cat-card-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: .5px; line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}
.cat-card--security .cat-card-content h2 em { color: #90caf9; font-style:normal; }
.cat-card--admin    .cat-card-content h2 em { color: #a5d6a7; font-style:normal; }
.cat-card--courses  .cat-card-content h2 em { color: var(--gold); font-style:normal; }

/* Lista de subcategorías */
.cat-items { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.cat-items li {
  display: flex; align-items: center; gap: 11px;
  color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 400;
  transition: color .2s;
}
.cat-items li:hover { color: var(--white); }
.cat-item-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.cat-card--security .cat-item-icon { background: rgba(21,101,192,.25); border:1px solid rgba(21,101,192,.5); }
.cat-card--admin    .cat-item-icon { background: rgba(46,125,50,.25); border:1px solid rgba(46,125,50,.5); }
.cat-card--courses  .cat-item-icon { background: rgba(240,180,41,.15); border:1px solid rgba(240,180,41,.35); }

.cat-item-text { flex:1; line-height: 1.3; }
.cat-item-text strong { display:block; font-weight:700; font-size:14px; }
.cat-item-text span { font-size:11px; color:rgba(255,255,255,.5); }

.cat-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 900;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 13px 24px; border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.cat-cta:hover { transform: translateY(-2px); }
.cat-card--security .cat-cta { background: var(--blue); color: var(--white); }
.cat-card--security .cat-cta:hover { background: var(--blue-light); }
.cat-card--admin    .cat-cta { background: #2e7d32; color: var(--white); }
.cat-card--admin    .cat-cta:hover { background: #388e3c; }
.cat-card--courses  .cat-cta { background: var(--gold); color: var(--navy); }
.cat-card--courses  .cat-cta:hover { background: var(--gold-dark); color:var(--white); }

/* Número decorativo */
.cat-number {
  position: absolute; top: 20px; right: 24px; z-index:2;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 90px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.05);
  user-select: none;
}

/* ══════════════════════════════
   SECTIONS — GENERAL
══════════════════════════════ */
section { padding: 90px 40px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(21,101,192,.1);
  padding: 5px 12px; border-radius: 2px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; text-transform: uppercase;
  line-height: 1; letter-spacing: -0.5px;
  color: var(--navy); margin-bottom: 16px;
}
.section-title span { color: var(--blue); }
.section-desc { color: var(--gray-600); font-size: 17px; line-height: 1.7; max-width: 620px; }
.section-header { margin-bottom: 52px; }

/* ══════════════════════════════
   CURSOS / FORMACIÓN
══════════════════════════════ */
.cursos-bg { background: var(--gray-100); }
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.curso-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.curso-card:hover { box-shadow: 0 16px 48px rgba(10,22,40,.12); transform: translateY(-4px); }
.curso-card-top { height: 5px; background: var(--blue); }
.curso-card-top.gold { background: var(--gold); }
.curso-card-top.green { background: #2e7d32; }
.curso-card-body { padding: 28px 28px 0; flex: 1; }
.curso-icon {
  width: 62px; height: 62px;
  background: var(--gray-100);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}
.curso-icon.ci-svg { padding: 8px; }
.curso-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); padding: 3px 8px;
  background: rgba(21,101,192,.08);
  border-radius: 2px; margin-bottom: 10px;
}
.curso-badge.green { color: #2e7d32; background: rgba(46,125,50,.1); }
.curso-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--navy); margin-bottom: 12px;
}
.curso-card p { font-size: 14px; line-height: 1.7; color: var(--gray-600); margin-bottom: 20px; }
.curso-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 24px;
}
.curso-features li { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--gray-600); }
.curso-features li::before { content:'✓'; color:var(--blue); font-weight:700; font-size:12px; flex-shrink:0; }
.curso-card-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--gray-300);
  display: flex; align-items: center; justify-content: space-between;
}
.curso-mode {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gray-600);
  display: flex; align-items: center; gap: 6px;
}
.curso-mode::before { content:''; width:8px; height:8px; background:#43a047; border-radius:50%; }
.btn-curso {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue); text-decoration: none;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  transition: color .2s;
}
.btn-curso:hover { color: var(--blue-light); }

/* ══════════════════════════════
   NOSOTROS — PILARES
══════════════════════════════ */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}
.pilar {
  padding: 32px; border-radius: 6px;
  border: 1px solid var(--gray-300);
  position: relative; overflow: hidden;
  background: var(--white);
  transition: box-shadow .25s;
}
.pilar:hover { box-shadow: 0 12px 36px rgba(10,22,40,.08); }
.pilar-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 72px; font-weight: 900;
  color: rgba(21,101,192,.08);
  line-height: 1;
  position: absolute; top: 12px; right: 16px;
}
.pilar-icon { font-size: 32px; margin-bottom: 16px; }
.pilar h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--navy); margin-bottom: 10px;
}
.pilar p { font-size: 14px; line-height: 1.7; color: var(--gray-600); }

/* About split */
.about-split { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.about-img-wrap { position:relative; }
.about-img-wrap img { width:100%; border-radius:6px; display:block; object-fit:cover; height:480px; }
.about-accent-box {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--navy);
  padding: 24px 28px; border-radius: 6px;
  border-left: 4px solid var(--gold);
}
.about-accent-box strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px; font-weight: 900;
  color: var(--gold); display: block; line-height: 1;
}
.about-accent-box span { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,.7); }
.about-checklist { list-style:none; display:flex; flex-direction:column; gap:14px; margin:28px 0 32px; }
.about-checklist li { display:flex; gap:12px; font-size:15px; color:var(--text); }
.about-checklist li::before {
  content:'✓'; width:24px; height:24px;
  background:var(--blue); color:var(--white);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:900; flex-shrink:0; margin-top:1px;
}

/* ══════════════════════════════
   TESTIMONIOS
══════════════════════════════ */
.testimonios-bg { background: #060e1c; }
.testimonios-bg .section-title { color: var(--white); }
.testimonios-bg .section-tag { color: var(--gold); background: rgba(240,180,41,.15); }
.testimonios-bg .section-desc { color: rgba(255,255,255,.6); }

/* ══════════════════════════════
   CTA BAND
══════════════════════════════ */
.cta-band { background: var(--blue); padding: 70px 40px; }
.cta-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items:center; justify-content:space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-inner h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900; text-transform: uppercase;
  color: var(--white); line-height: 1;
}
.cta-inner h2 span { color: var(--gold); }
.cta-inner p { color: rgba(255,255,255,.8); font-size: 16px; margin-top: 8px; }
.btn-white {
  background: var(--white); color: var(--blue);
  font-weight: 900; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 16px 36px; border-radius: var(--radius);
  text-decoration: none; flex-shrink: 0;
  transition: background .2s;
  border: none; cursor: pointer; display: inline-block;
}
.btn-white:hover { background: var(--gold); color: var(--navy); }

/* ══════════════════════════════
   CONTACTO
══════════════════════════════ */
#contacto { padding: 0 !important; background: var(--navy); }
.ct-top { background: var(--navy); padding: 80px 40px 60px; text-align: center; }
.ct-top .section-tag  { color: var(--gold); background: rgba(240,180,41,.15); }
.ct-top .section-title { color: var(--white); }
.ct-top .section-desc  { color: rgba(255,255,255,.6); margin: 0 auto; }
.ct-info-row {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 20px;
  max-width: 960px; margin: 48px auto 0;
}
.ct-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 20px 28px;
  text-decoration: none; min-width: 200px;
  flex: 1 1 200px; max-width: 240px;
  transition: background .2s, border-color .2s, transform .2s;
}
.ct-card:hover { background: rgba(255,255,255,.1); border-color: var(--gold); transform: translateY(-3px); }
.ct-card-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: rgba(240,180,41,.15); border: 1px solid rgba(240,180,41,.3);
  border-radius: 10px; display:flex; align-items:center; justify-content:center;
}
.ct-card-icon svg { width:22px; height:22px; stroke:var(--gold); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ct-card-label { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:rgba(255,255,255,.45); margin-bottom:3px; }
.ct-card-value { font-size:14px; font-weight:700; color:var(--white); line-height:1.3; }
.ct-action-row { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-top:36px; }
.btn-call {
  display:inline-flex; align-items:center; gap:12px;
  background:var(--blue); color:var(--white);
  font-weight:900; font-size:14px; letter-spacing:1px; text-transform:uppercase;
  padding:18px 36px; border-radius:50px; text-decoration:none; border:none;
  box-shadow:0 6px 24px rgba(21,101,192,.4);
  transition:background .2s, transform .2s, box-shadow .2s;
}
.btn-call:hover { background:var(--blue-light); transform:translateY(-3px); }
.btn-call svg { width:20px; height:20px; fill:none; stroke:white; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.btn-wa-big {
  display:inline-flex; align-items:center; gap:12px;
  background:#25d366; color:var(--white);
  font-weight:900; font-size:14px; letter-spacing:1px; text-transform:uppercase;
  padding:18px 36px; border-radius:50px; text-decoration:none;
  box-shadow:0 6px 24px rgba(37,211,102,.4);
  transition:background .2s, transform .2s, box-shadow .2s;
}
.btn-wa-big:hover { background:#1da851; transform:translateY(-3px); }
.btn-wa-big svg { width:22px; height:22px; fill:white; }
.ct-divider { height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent); max-width:800px; margin:0 auto; }
.ct-form-wrap { background:var(--navy-mid); padding:60px 40px; display:flex; justify-content:center; }
.ct-form-inner { width:100%; max-width:700px; }
.ct-form-inner h3 {
  font-family:'Barlow Condensed',sans-serif; font-size:32px; font-weight:900;
  text-transform:uppercase; letter-spacing:1px; color:var(--white);
  text-align:center; margin-bottom:6px;
}
.ct-form-inner h3 span { color:var(--gold); }
.ct-form-inner p.ct-sub { text-align:center; font-size:14px; color:rgba(255,255,255,.5); margin-bottom:36px; }
.ct-form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ct-form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.ct-form-group label { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,.5); }
.ct-form-group input, .ct-form-group select, .ct-form-group textarea {
  padding:13px 16px; background:rgba(255,255,255,.06);
  border:1.5px solid rgba(255,255,255,.12); border-radius:8px;
  font-family:'Lato',sans-serif; font-size:14px; color:var(--white);
  transition:border-color .2s, background .2s;
}
.ct-form-group input::placeholder, .ct-form-group textarea::placeholder { color:rgba(255,255,255,.3); }
.ct-form-group select { color:rgba(255,255,255,.7); }
.ct-form-group select option { background:var(--navy); color:var(--white); }
.ct-form-group input:focus, .ct-form-group select:focus, .ct-form-group textarea:focus {
  outline:none; border-color:var(--gold); background:rgba(255,255,255,.09);
}
.ct-form-group textarea { resize:vertical; min-height:90px; }
.ct-privacy { display:flex; align-items:flex-start; gap:10px; margin-bottom:24px; }
.ct-privacy input { margin-top:2px; flex-shrink:0; accent-color:var(--gold); }
.ct-privacy label { font-size:12px; color:rgba(255,255,255,.45); line-height:1.5; }
.ct-privacy a { color:var(--gold); text-decoration:none; }
.btn-submit {
  width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
  background:var(--gold); color:var(--navy);
  font-weight:900; font-size:15px; letter-spacing:1.5px; text-transform:uppercase;
  padding:18px 32px; border-radius:8px; border:none; cursor:pointer;
  transition:background .2s, transform .15s;
}
.btn-submit:hover { background:var(--gold-dark); transform:translateY(-2px); }
.btn-submit svg { width:18px; height:18px; fill:none; stroke:var(--navy); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.ct-map-wrap { position:relative; }
.ct-map-wrap iframe { display:block; width:100%; height:420px; border:none; filter:grayscale(20%) contrast(1.05); }
.ct-map-overlay {
  position:absolute; top:24px; left:50%; transform:translateX(-50%);
  background:var(--white); border-radius:10px; padding:16px 24px;
  display:flex; align-items:center; gap:16px;
  box-shadow:0 8px 32px rgba(0,0,0,.25); white-space:nowrap; z-index:5;
}
.ct-map-overlay svg { width:20px; height:20px; stroke:var(--blue); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.ct-map-overlay strong { font-size:14px; font-weight:700; color:var(--navy); display:block; }
.ct-map-overlay span { font-size:12px; color:var(--gray-600); }
.btn-directions-sm {
  background:var(--blue); color:var(--white);
  font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  padding:9px 16px; border-radius:6px; text-decoration:none; flex-shrink:0;
  transition:background .2s;
}
.btn-directions-sm:hover { background:var(--blue-light); }

/* ══════════════════════════════
   ENLACE EXTERNO — RECURSOS
══════════════════════════════ */
.recursos-section { background: var(--white); padding: 60px 40px; }
.recursos-section .section-title { font-size: 30px; }
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-top: 32px;
}
.recurso-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--gray-300); border-radius: 8px;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  background: var(--white);
}
.recurso-link:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(21,101,192,.1); transform: translateY(-2px); }
.recurso-icon { font-size: 22px; flex-shrink: 0; }
.recurso-name { font-size: 13px; font-weight: 700; color: var(--navy); display:block; }
.recurso-desc { font-size: 11px; color: var(--gray-600); }
.ext-badge {
  margin-left: auto;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--blue); background: rgba(21,101,192,.08);
  padding: 2px 8px; border-radius: 2px; flex-shrink:0;
}

/* ══════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 60px; height: 60px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 36px rgba(37,211,102,.7); }
.wa-float svg { width:32px; height:32px; fill:white; }
.wa-pulse { position:absolute; top:-3px; right:-3px; width:14px; height:14px; background:#ff3b30; border-radius:50%; border:2px solid white; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.3);opacity:.7;} }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer { background: var(--navy); padding: 60px 40px 30px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { color:rgba(255,255,255,.5); font-size:14px; line-height:1.7; margin-top:14px; }
.footer-social { display:flex; gap:10px; margin-top:20px; }
.social-btn {
  width:36px; height:36px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius); display:flex; align-items:center; justify-content:center;
  font-size:16px; text-decoration:none; transition:background .2s;
}
.social-btn:hover { background:var(--gold); }
.footer-col h5 {
  font-family:'Barlow Condensed',sans-serif; font-size:14px; font-weight:700;
  letter-spacing:2px; text-transform:uppercase; color:var(--gold); margin-bottom:18px;
}
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-col ul li a { color:rgba(255,255,255,.5); text-decoration:none; font-size:13px; transition:color .2s; }
.footer-col ul li a:hover { color:var(--white); }
.footer-bottom {
  max-width:1200px; margin:0 auto;
  border-top:1px solid rgba(255,255,255,.1); padding-top:24px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px;
}
.footer-bottom p { color:rgba(255,255,255,.35); font-size:12px; }
.footer-bottom a { color:rgba(255,255,255,.5); text-decoration:none; }
.footer-bottom a:hover { color:var(--gold); }

/* ══════════════════════════════
   BOTONES GENERALES
══════════════════════════════ */
.btn-primary {
  display:inline-flex; align-items:center; gap:10px;
  background:var(--gold); color:var(--navy);
  font-weight:900; font-size:13px; letter-spacing:1.5px; text-transform:uppercase;
  padding:16px 32px; border-radius:var(--radius); text-decoration:none;
  transition:background .2s, transform .2s; border:none; cursor:pointer;
}
.btn-primary:hover { background:var(--gold-dark); transform:translateY(-2px); }

/* ══════════════════════════════
   ANIMACIONES
══════════════════════════════ */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }
.fade-up { animation: fadeUp .7s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }

/* ══════════════════════════════
   RESPONSIVE — TABLET GRANDE (≤1100px)
══════════════════════════════ */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card--courses .cat-card-content { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-split { gap: 48px; }
  .cursos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════
   RESPONSIVE — TABLET (≤900px)
══════════════════════════════ */
@media (max-width: 900px) {
  /* Nav */
  nav { padding: 0 20px; height: 68px; }
  .nav-logo img { height: 50px; }
  .logo-name { font-size: 20px; }
  .logo-sub { font-size: 10px; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--blue); padding: 12px 20px; gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 13px; border-radius: 6px; width: 100%; }
  .nav-cta { text-align: center; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-inner { padding: 50px 24px 60px; text-align: center; }
  .hero h1 { font-size: 44px; }
  .hero h1 em { font-size: 56px; }
  .hero-desc { font-size: 16px; margin-left: auto; margin-right: auto; }

  /* Stats */
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }

  /* Portada 3 cuadros */
  .categories-grid { grid-template-columns: 1fr; }
  .cat-card--courses { grid-column: auto; }
  .cat-card { min-height: 380px; }
  .portada-intro { padding: 48px 24px 32px; }

  /* Secciones */
  section { padding: 60px 24px; }
  .section-title { font-size: 36px; }

  /* Cursos */
  .cursos-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Pilares / about */
  .pilares-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { display: none; }

  /* CTA band */
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }

  /* Contacto */
  .ct-top { padding: 60px 24px 48px; }
  .ct-info-row { gap: 12px; }
  .ct-form-row { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Carrusel */
  .tcard { min-width: 280px; max-width: 280px; }

  /* Botones flotantes */
  #cid-ai-btn { bottom: 90px; right: 20px; width: 54px; height: 54px; }
  #cid-wa-btn  { bottom: 24px; right: 20px; width: 54px; height: 54px; }
  #cid-ai-bubble { right: 16px; bottom: 156px; width: calc(100vw - 32px); max-width: 380px; }
}

/* ══════════════════════════════
   RESPONSIVE — MÓVIL (≤640px)
══════════════════════════════ */
@media (max-width: 640px) {
  /* Nav */
  nav { padding: 0 16px; height: 62px; }
  .hero { margin-top: 62px; }
  .nav-links { top: 62px; }
  .logo-text-wrap { display: none; }
  .nav-logo img { height: 44px; }

  /* Hero */
  .hero-inner { padding: 40px 16px 50px; }
  .hero h1 { font-size: 36px; line-height: 1.05; }
  .hero h1 em { font-size: 44px; letter-spacing: -1px; }
  .hero-desc { font-size: 15px; }
  .hero-badge { font-size: 10px; padding: 5px 10px; letter-spacing: 1.5px; }

  /* Stats */
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 10px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 9px; letter-spacing: 0; }
  .stat:nth-child(4) { grid-column: 1 / -1; border-right: none; }

  /* Portada */
  .portada-intro { padding: 36px 16px 24px; }
  .portada-intro h2 { font-size: 28px; }
  .categories-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: auto; }
  .cat-card-content { padding: 24px 18px 28px; }
  .cat-card-content h2 { font-size: 24px; }
  .cat-number { font-size: 60px; }
  .cat-items li { font-size: 13px; }
  .cat-item-icon { width: 26px; height: 26px; font-size: 12px; }
  .cat-cta { font-size: 11px; padding: 11px 18px; }

  /* Secciones generales */
  section { padding: 44px 16px; }
  .section-title { font-size: 28px; }
  .section-desc { font-size: 15px; }
  .section-header { margin-bottom: 32px; }

  /* Cursos */
  .cursos-grid { grid-template-columns: 1fr; gap: 16px; }
  .curso-card-body { padding: 20px 20px 0; }
  .curso-card-footer { padding: 14px 20px; }
  .curso-card h3 { font-size: 20px; }
  .curso-icon { width: 52px; height: 52px; font-size: 22px; }

  /* Pilares */
  .pilares-grid { grid-template-columns: 1fr; gap: 16px; }
  .pilar { padding: 24px; }

  /* CTA band */
  .cta-band { padding: 48px 16px; }
  .cta-inner h2 { font-size: 28px; }
  .cta-inner { text-align: center; }
  .btn-white { width: 100%; text-align: center; justify-content: center; }

  /* Contacto */
  .ct-top { padding: 44px 16px 36px; }
  .ct-info-row { flex-direction: column; gap: 10px; align-items: stretch; }
  .ct-card { max-width: 100%; min-width: unset; padding: 14px 16px; flex: 1 1 100%; }
  .ct-action-row { flex-direction: column; gap: 12px; }
  .btn-call, .btn-wa-big { justify-content: center; border-radius: 10px; width: 100%; box-sizing: border-box; }
  .ct-form-row { grid-template-columns: 1fr; }
  .ct-form-wrap { padding: 36px 16px; }
  .ct-map-wrap iframe { height: 280px; }
  .ct-map-overlay {
    flex-direction: column; text-align: center;
    gap: 8px; top: 10px;
    width: calc(100% - 24px);
    padding: 12px 16px;
  }

  /* Footer */
  footer { padding: 44px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-bottom div { flex-direction: column; gap: 8px; }
  .footer-logo-wrap { gap: 8px; }
  .footer-logo-name { font-size: 20px; }
  .footer-logo-sub { font-size: 10px; }

  /* Recursos */
  .recursos-grid { grid-template-columns: 1fr; }
  .recurso-link { padding: 12px 14px; }

  /* Carrusel */
  .tcard { min-width: calc(100vw - 48px); max-width: calc(100vw - 48px); padding: 22px 18px 18px; }
  .carousel-controls { gap: 12px; margin-top: 24px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 16px; }
  .cdot { width: 7px; height: 7px; }

  /* Botones flotantes */
  #cid-ai-btn { width: 52px; height: 52px; bottom: 86px; right: 16px; }
  #cid-ai-btn svg { width: 24px; height: 24px; }
  #cid-wa-btn  { width: 52px; height: 52px; bottom: 20px; right: 16px; }
  #cid-wa-btn svg { width: 28px; height: 28px; }
  #cid-ai-bubble { right: 10px; bottom: 150px; width: calc(100vw - 20px); border-radius: 12px; }
}

/* ══════════════════════════════
   MÓVIL PEQUEÑO (≤380px)
══════════════════════════════ */
@media (max-width: 380px) {
  nav { padding: 0 12px; }
  .hero h1 { font-size: 30px; }
  .hero h1 em { font-size: 36px; }
  .section-title { font-size: 24px; }
  .ct-form-wrap { padding: 28px 12px; }
  .cat-card-content h2 { font-size: 20px; }
  .tcard { min-width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
  .stat-num { font-size: 24px; }
  .hero-badge { font-size: 9px; letter-spacing: 1px; }
  #cid-ai-bubble { width: calc(100vw - 16px); right: 8px; }
}


/* ══════════════════════════════════════════════════════════════
   CARRUSEL DE TESTIMONIOS — track, tarjetas, controles y dots
   ══════════════════════════════════════════════════════════════ */
/* ── CARRUSEL TESTIMONIOS ── */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  padding-bottom: 8px;
}
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.tcard {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  padding: 30px 28px 24px;
  min-width: 340px;
  max-width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .25s, background .25s;
}
.tcard:hover { border-color: var(--gold); background: rgba(255,255,255,.11); }
.tcard-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.tcard-text { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.78); font-style: italic; flex: 1; }
.tcard-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }
.tcard-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 900; color: var(--white); flex-shrink: 0; letter-spacing: 1px; }
.tcard-name { font-weight: 700; font-size: 14px; color: var(--white); display: block; }
.tcard-opos { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--white); font-size: 18px; cursor: pointer; transition: background .2s, border-color .2s; display: flex; align-items: center; justify-content: center; }
.carousel-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.cdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; transition: background .2s, transform .2s; border: none; padding: 0; }
.cdot.active { background: var(--gold); transform: scale(1.3); }
@media(max-width:640px) { .tcard { min-width: calc(100vw - 80px); max-width: calc(100vw - 80px); } }
@media(max-width:900px) and (min-width:641px) { .tcard { min-width: 280px; max-width: 280px; } }


/* ══════════════════════════════════════════════════════════════
   WIDGET ASISTENTE VIRTUAL — botón flotante, burbuja de chat y mensajes
   ══════════════════════════════════════════════════════════════ */
#cid-ai-btn {
  position: fixed; bottom: 102px; right: 28px; z-index: 9999;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #1565c0, #0a1628);
  border: 2px solid #f0b429;
  box-shadow: 0 4px 24px rgba(21,101,192,.5);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
#cid-ai-btn:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(240,180,41,.4); }
#cid-ai-btn svg { width: 30px; height: 30px; }

/* WhatsApp flotante */
#cid-wa-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25d366;
  border: 2px solid #fff;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
#cid-wa-btn:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(37,211,102,.6); }
#cid-wa-btn svg { width: 34px; height: 34px; }

#cid-ai-bubble {
  position: fixed; bottom: 176px; right: 28px; z-index: 9998;
  width: 360px; max-width: calc(100vw - 40px);
  background: #0a1628;
  border: 1px solid rgba(240,180,41,.3);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  display: none; flex-direction: column;
  overflow: hidden; font-family: 'Lato', sans-serif;
}
#cid-ai-bubble.open { display: flex; }

.cid-ai-header {
  background: linear-gradient(90deg, #112240, #1565c0);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 2px solid #f0b429;
}
.cid-ai-header-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(240,180,41,.15); border: 1px solid rgba(240,180,41,.4);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cid-ai-header-icon svg { width: 20px; height: 20px; }
.cid-ai-header-info { flex: 1; }
.cid-ai-header-info strong { color: #fff; font-size: 14px; display: block; }
.cid-ai-header-info span { color: rgba(255,255,255,.5); font-size: 11px; }
.cid-ai-close {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; font-size: 20px; line-height: 1; padding: 0 2px;
  transition: color .2s;
}
.cid-ai-close:hover { color: #f0b429; }

.cid-ai-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 320px; min-height: 160px;
}
.cid-ai-messages::-webkit-scrollbar { width: 4px; }
.cid-ai-messages::-webkit-scrollbar-track { background: transparent; }
.cid-ai-messages::-webkit-scrollbar-thumb { background: rgba(240,180,41,.3); border-radius: 2px; }

.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg.user { flex-direction: row-reverse; }
.msg-bubble {
  max-width: 82%; padding: 10px 14px;
  border-radius: 14px; font-size: 13.5px; line-height: 1.55;
}
.msg.bot .msg-bubble {
  background: #112240; color: rgba(255,255,255,.88);
  border-bottom-left-radius: 4px;
}
.msg.user .msg-bubble {
  background: #1565c0; color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.msg.bot .msg-avatar { background: rgba(240,180,41,.15); border: 1px solid rgba(240,180,41,.3); }
.msg.user .msg-avatar { background: #1565c0; }

.cid-ai-typing {
  display: flex; gap: 5px; padding: 10px 14px;
  background: #112240; border-radius: 14px; border-bottom-left-radius: 4px;
  width: fit-content;
}
.cid-ai-typing span {
  width: 7px; height: 7px; background: #f0b429; border-radius: 50%;
  animation: typingDot 1.2s infinite;
}
.cid-ai-typing span:nth-child(2) { animation-delay: .2s; }
.cid-ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,60%,100%{opacity:.2;transform:translateY(0)} 30%{opacity:1;transform:translateY(-4px)} }

.cid-ai-suggestions {
  padding: 0 16px 12px;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.cid-sug-btn {
  background: rgba(21,101,192,.15); border: 1px solid rgba(21,101,192,.35);
  color: #90caf9; font-size: 11.5px; padding: 5px 11px;
  border-radius: 20px; cursor: pointer; transition: background .2s, color .2s;
  font-family: 'Lato', sans-serif;
}
.cid-sug-btn:hover { background: rgba(21,101,192,.35); color: #fff; }

.cid-ai-input-row {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; gap: 8px; align-items: center;
}
#cid-ai-input {
  flex: 1; background: #112240; border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; color: #fff; font-size: 13px;
  padding: 9px 16px; outline: none; font-family: 'Lato', sans-serif;
  transition: border-color .2s;
}
#cid-ai-input::placeholder { color: rgba(255,255,255,.3); }
#cid-ai-input:focus { border-color: rgba(240,180,41,.4); }
#cid-ai-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f0b429; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s;
}
#cid-ai-send:hover { background: #c88f00; }
#cid-ai-send svg { width: 16px; height: 16px; }
