/* =====================================================================
   PENTÁGONO IA · Corporate Landing
   Estética enterprise · serio · ejecutivo · monocromo
   Referencias: Darktrace / Palantir / Deloitte AI
   ===================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --bg-alt: #0b0b0d;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --text: #f5f5f7;
  --text-muted: rgba(245,245,247,0.62);
  --text-dim: rgba(245,245,247,0.40);
  --text-fade: rgba(245,245,247,0.22);

  /* Un solo accent corporativo — azul marino sobrio (no eléctrico) */
  --accent: #7aa2ff;
  --accent-ink: #1e3a8a;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

body { min-height: 100vh; overflow-x: hidden; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon { flex-shrink: 0; }
.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand-name { color: var(--text); }
.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: lowercase;
  font-feature-settings: 'tnum';
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: 'Inter', monospace;
  font-size: 12px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s;
}
.lang-btn.active { color: var(--text); }
.lang-btn:hover { color: var(--text); }
.lang-sep { color: var(--text-fade); font-size: 12px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--border-strong); }

/* ================= HERO ================= */
.hero {
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--border);
}
.eyebrow, .section-eyebrow, .contact-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 28px;
  font-family: 'Inter', monospace;
}
.hero-title {
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 950px;
  margin-bottom: 32px;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 48px;
  font-weight: 400;
}
.hero-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.3); }

/* ================= STATS ================= */
.stats {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { border-left: 2px solid var(--border); padding-left: 20px; }
.stat-n {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-l {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ================= CAPABILITIES ================= */
.capabilities { padding: 120px 0; border-bottom: 1px solid var(--border); }
.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 72px;
  color: var(--text);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.cap {
  padding: 32px 0 0;
  border-top: 1px solid var(--border-strong);
}
.cap-num {
  font-family: 'Inter', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.cap-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}
.cap-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ================= INTEGRATIONS ================= */
.integrations { padding: 120px 0; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.int-card {
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.int-card:hover { border-color: var(--border-strong); }
.int-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.int-items {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

/* ================= CARRUSEL DE LOGOS ================= */
.marquee {
  padding: 48px 0 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 80px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: fit-content;
}
.brand-logo {
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* Pasar todos los logos a plateado uniforme para consistencia corporate */
  filter: brightness(0) invert(0.85);
  opacity: 0.75;
  transition: opacity 0.25s;
}
.brand-logo:hover { opacity: 1; }
/* Wordmarks propios (Ajax Systems, Akuvox) ya son monocromos con currentColor */
.brand-wordmark {
  filter: none;
  color: #d8d8dc;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= POWERED BY ================= */
.powered { padding: 120px 0; border-bottom: 1px solid var(--border); }
.powered-row {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.powered-text .section-title { margin-bottom: 28px; }
.powered-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 780px;
}
.powered-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 72px;
}
.pw-brand-logo {
  height: 54px;
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: opacity 0.2s;
}
.pw-brand-logo:hover { opacity: 1; }

/* ================= POSITIONING ================= */
.positioning {
  padding: 120px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.quote {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}
.quote p {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--text);
}

/* ================= CONTACT ================= */
.contact { padding: 120px 0 100px; }
.contact-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--text);
}
.contact-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 40px;
}
.email-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin-bottom: 16px;
}
.email-form input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: all 0.15s;
}
.email-form input::placeholder { color: var(--text-fade); }
.email-form input:focus { border-color: var(--text); background: rgba(255,255,255,0.02); }
.contact-hint {
  font-size: 13px;
  color: var(--text-dim);
}
.contact.sent .email-form { display: none; }
.contact.sent .contact-hint { color: var(--text); font-size: 14px; }

/* ================= FOOTER ================= */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #8e8e93;
}
.footer-pill {
  display: inline-block;
  padding: 1px 7px;
  margin-left: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 500;
  color: #8e8e93;
}
.footer-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'Inter', monospace;
}
.footer-sep { color: var(--text-fade); }
.footer-meta a { color: var(--text-muted); text-decoration: none; }
.footer-meta a:hover { color: var(--text); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .cap-grid { grid-template-columns: 1fr; gap: 40px; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .powered-logos { gap: 40px; }
  .hero { padding: 80px 0 60px; }
  .capabilities, .positioning, .contact, .integrations, .powered { padding: 80px 0; }
}
@media (max-width: 600px) {
  .int-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container, .nav-inner { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .stats .container { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .email-form { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}
