/* css/agentes.css */
:root {
  --navy: #04101f;
  --blue-primary: #1a6bff;
  --blue-bright: #2ec6ff;
  --blue-light: #cadeff;
  --action: #3865f5;
  --dark-ui: #2a303f;
  --accent: #f49e04;
  --border: #d0d2d5;
  --bg: #f8faff;
  --white: #ffffff;
}

/* ─── HERO ─── */
.hero-agentes {
  position: relative;
  text-align: center;
  padding: 100px 32px 60px; /* offset for nav */
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-agentes::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(26,107,255,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(46,198,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,107,255,0.18);
  border: 1px solid rgba(46,198,255,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-agentes h1 {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-agentes h1 span {
  background: linear-gradient(90deg, var(--blue-primary) 0%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-agentes h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 15px;
  color: rgba(202,222,255,0.7);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 32px 8px;
  flex-wrap: wrap;
  background: var(--navy);
}

.filter-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(202,222,255,0.15);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(202,222,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: white;
}

/* ─── GRID ─── */
.grid-section {
  padding: 32px 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--navy);
}

.section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-left: 2px;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* ─── AGENT CARD ─── */
.agent-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(202,222,255,0.12);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.agent-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26,107,255,0.5);
  box-shadow: 0 16px 40px rgba(26,107,255,0.2);
}

/* Color accent per category */
.agent-card[data-cat="contenido"] .card-accent { background: linear-gradient(135deg, #1a6bff, #2ec6ff); }
.agent-card[data-cat="analisis"] .card-accent { background: linear-gradient(135deg, #3865f5, #1a6bff); }
.agent-card[data-cat="crm"] .card-accent { background: linear-gradient(135deg, #f49e04, #ff6b35); }
.agent-card[data-cat="enablement"] .card-accent { background: linear-gradient(135deg, #2ec6ff, #3865f5); }
.agent-card[data-cat="ops"] .card-accent { background: linear-gradient(135deg, #04101f, #2a303f); border: 1px solid rgba(202,222,255,0.2); }

.card-accent {
  height: 4px;
  width: 100%;
}

/* Screen mockup inside card */
.card-screen {
  margin: 20px 20px 0;
  border-radius: 12px 12px 0 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(202,222,255,0.1);
  border-bottom: none;
  overflow: hidden;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-screen .screen-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.screen-icon {
  font-size: 32px;
  line-height: 1;
}

.screen-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 80%;
}

.screen-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(202,222,255,0.15);
}

.screen-line.short { width: 60%; }
.screen-line.med { width: 85%; }
.screen-line.full { width: 100%; }

/* animated dots in screen */
.ai-dots {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.ai-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: bounce 1.4s ease-in-out infinite;
}

.ai-dots span:nth-child(2) { animation-delay: 0.2s; background: var(--blue-primary); }
.ai-dots span:nth-child(3) { animation-delay: 0.4s; background: rgba(202,222,255,0.5); }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* Card Body */
.card-body {
  padding: 20px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-cat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.cat-contenido { background: rgba(26,107,255,0.2); color: #7eb3ff; }
.cat-analisis { background: rgba(56,101,245,0.2); color: #9aabff; }
.cat-crm { background: rgba(244,158,4,0.2); color: #f7c05a; }
.cat-enablement { background: rgba(46,198,255,0.2); color: #7ae3ff; }
.cat-ops { background: rgba(202,222,255,0.1); color: rgba(202,222,255,0.6); }

.card-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: rgba(202,222,255,0.6);
  line-height: 1.55;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(202,222,255,0.08);
}

.card-trigger {
  font-size: 11px;
  color: rgba(202,222,255,0.4);
  font-family: 'Roboto Mono', monospace;
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-bright);
}

.card-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}

.agent-card:hover .card-cta svg {
  transform: translateX(3px);
}

/* ─── BOTTOM LABEL ─── */
.card-label-bar {
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  background: rgba(4,16,31,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(202,222,255,0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── FEATURED CARD (wide) ─── */
.agent-card.featured {
  grid-column: span 2;
}

.featured .card-screen {
  height: 160px;
}

/* ─── FOOTER STATS ─── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 40px;
  border-top: 1px solid rgba(202,222,255,0.08);
  margin: 0 40px;
  background: var(--navy);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Roboto Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-bright);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: rgba(202,222,255,0.5);
  margin-top: 4px;
}

/* modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,16,31,0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #0e1d35;
  border: 1px solid rgba(202,222,255,0.15);
  border-radius: 24px;
  max-width: 520px;
  width: 90%;
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(202,222,255,0.08);
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  color: rgba(202,222,255,0.6);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.modal-icon { font-size: 40px; margin-bottom: 16px; }
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.modal-desc { font-size: 14px; color: rgba(202,222,255,0.65); line-height: 1.65; margin-bottom: 24px; }

.modal-uses-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-uses {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.modal-use-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(202,222,255,0.75);
  line-height: 1.5;
}

.modal-use-item::before {
  content: '→';
  color: var(--blue-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-btn {
  display: inline-block;
  background: var(--blue-primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.modal-btn:hover { background: var(--blue-bright); }

@media (max-width: 900px) {
  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .agents-grid {
    grid-template-columns: 1fr;
  }
}
