/* ==========================================================================
   ATIJAGUAR CIA LTDA — EXECUTIVE DESIGN SYSTEM (LIGHT MODE)
   Professional AI Governance, Risk Management & Data Quality
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette (Official Pantone 1665 EC #FF3300) */
  --brand-orange: #FF3300;
  --brand-orange-hover: #E02E00;
  --brand-orange-light: rgba(255, 51, 0, 0.08);
  --brand-orange-glow: rgba(255, 51, 0, 0.15);

  /* Executive Light Palette */
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;

  /* Typography Colors */
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  /* Borders & Shadows */
  --border-light: #E2E8F0;
  --border-strong: #CBD5E1;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.08);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Typography Utilities */
.text-orange {
  color: var(--brand-orange);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 99px;
  border: 1px solid rgba(255, 51, 0, 0.2);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* Header & Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 51, 0, 0.25);
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 51, 0, 0.35);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-heading);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-heading);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4.5rem 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 51, 0, 0.03) 0%, transparent 70%);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Executive Cards */
.card-executive {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.card-executive:hover {
  border-color: var(--brand-orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Pain & Solution Grid */
.pain-solution-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.pain-solution-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.pain-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #DC2626;
  background: #FEF2F2;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.solution-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #059669;
  background: #ECFDF5;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--text-heading);
  color: #94A3B8;
  padding: 4rem 0 2rem 0;
}

.footer a {
  color: #E2E8F0;
}

.footer a:hover {
  color: var(--brand-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

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

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #FFFFFF;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   CUADRÍCULAS RESPONSIVAS
   Sustituyen a los `style="grid-template-columns:…"` en línea, que por
   especificidad no podían ser sobrescritos por ninguna media query.
   ========================================================================== */

.grid-2,
.grid-3,
.grid-2-tight {
  display: grid;
}

.grid-2  { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3  { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2-tight { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

@media (max-width: 940px) {
  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-2-tight { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ==========================================================================
   NAVBAR — estado de scroll y ajuste en pantallas estrechas
   ========================================================================== */

.nav-logo img { height: 48px; width: auto; display: block; }

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

@media (max-width: 560px) {
  .nav-container { height: 66px; }
  .nav-logo img { height: 38px; }
  .nav-actions .btn-primary { display: none; }
  .nav-links { top: 66px; }
}

/* ==========================================================================
   ESTADOS SEMÁNTICOS
   Reservados para estado del sistema. No se usan como color de marca.
   ========================================================================== */

:root {
  --state-good:    #0F7B4F;
  --state-good-bg: #ECFDF5;
  --state-warn:    #B45309;
  --state-warn-bg: #FFFBEB;
  --state-crit:    #B42318;
  --state-crit-bg: #FEF3F2;
}

.is-good { color: var(--state-good); }
.is-warn { color: var(--state-warn); }
.is-crit { color: var(--state-crit); }

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.state-pill.is-good { background: var(--state-good-bg); }
.state-pill.is-warn { background: var(--state-warn-bg); }
.state-pill.is-crit { background: var(--state-crit-bg); }

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* ==========================================================================
   DEMO DE ANÁLISIS LOCAL
   ========================================================================== */

.demo-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.demo-toolbar-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.demo-chip {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-chip:hover {
  border-color: var(--text-heading);
  background: #FFFFFF;
}
.demo-chip[aria-pressed="true"] {
  background: var(--text-heading);
  border-color: var(--text-heading);
  color: #FFFFFF;
}

.form-input {
  width: 100%;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-heading);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  resize: vertical;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-glow);
  background: #FFFFFF;
}

.demo-results { margin-top: 1.5rem; }

.demo-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.demo-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}
.demo-card-title svg { flex: none; }

.demo-masked {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text-heading);
  word-break: break-word;
  white-space: pre-wrap;
}
.demo-masked mark {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  font-weight: 700;
  border-radius: 3px;
  padding: 0 1px;
  margin: 0;
}

.demo-score {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.demo-score span { font-size: 1.15rem; font-weight: 700; }

.demo-meter {
  height: 8px;
  border-radius: 4px;
  background: var(--border-light);
  overflow: hidden;
  margin-top: 0.85rem;
}
.demo-meter > i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: currentColor;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-findings {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.3rem;
}
.demo-findings li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-body);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
}
.demo-findings li:last-child { border-bottom: none; padding-bottom: 0; }
.demo-findings b { color: var(--text-heading); font-weight: 700; }
.demo-findings code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82em;
  background: var(--bg-card-hover);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
}
.demo-findings .state-dot { margin-top: 0.5em; }

.demo-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.demo-note strong { color: var(--text-heading); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .demo-meter > i,
  .btn,
  .demo-chip { transition: none; }
}

/* ==========================================================================
   NAVEGACIÓN MÓVIL
   (antes vivía en un <style> en línea dentro de index.html)
   ========================================================================== */

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-heading);
  transition: all 0.15s ease;
}
.mobile-toggle:hover { border-color: var(--text-heading); background: var(--bg-subtle); }
.mobile-toggle svg { display: block; }
.mobile-toggle .icon-close { display: none; }
.mobile-toggle[aria-expanded="true"] .icon-open  { display: none; }
.mobile-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 768px) {
  .mobile-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    padding: 0.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border-light); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-link { display: block; padding: 0.9rem 0; font-size: 1rem; }
}

/* Estado neutro: el motor no tiene evidencia sobre la cual pronunciarse */
:root { --state-na: #64748B; --state-na-bg: #F1F5F9; }
.is-na { color: var(--state-na); }
.state-pill.is-na { background: var(--state-na-bg); }
