/* ==========================================================================
   OperativaIA.cl - Estilos Globales & Sistema de Diseño Corporativo
   Ecosistema: Google Gemini Pro + Google Workspace
   ========================================================================== */

:root {
  /* Paleta Corporativa */
  --color-primary: #1a365d;       /* Azul corporativo oscuro */
  --color-primary-dark: #0f233d;  /* Azul noche profundo */
  --color-accent: #2b6cb0;        /* Azul de acento vibrante */
  --color-accent-light: #ebf8ff;  /* Azul hielo de fondo */
  --color-conversion: #2f855a;    /* Verde de conversión */
  --color-conversion-hover: #276749;
  --color-conversion-light: #f0fff4;
  --color-warning: #d69e2e;
  --color-danger: #e53e3e;

  /* Neutros & Fondos */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #091322;
  --bg-dark-surface: #111e33;

  /* Textos */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Bordes & Sombras */
  --border-color: #e2e8f0;
  --border-focus: #3182ce;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 28px -4px rgba(26, 54, 93, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 25px rgba(43, 108, 176, 0.25);
  --shadow-conversion: 0 4px 14px rgba(47, 133, 90, 0.35);

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transiciones */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1400px;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}

.section-dark h2, .section-dark h3 {
  color: #ffffff;
}

.section-dark p {
  color: var(--text-light);
}

.section-subtle {
  background-color: var(--bg-subtle);
}

/* Super Título de Sección */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(43, 108, 176, 0.15);
}

.section-badge.badge-green {
  background-color: var(--color-conversion-light);
  color: var(--color-conversion);
  border-color: rgba(47, 133, 90, 0.2);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header p {
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
}

.brand-logo span.dot-cl {
  color: var(--color-accent);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

/* Botones y CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.25);
}

.btn-primary:hover {
  background-color: #245a94;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 108, 176, 0.35);
}

.btn-conversion {
  background-color: var(--color-conversion);
  color: #ffffff;
  box-shadow: var(--shadow-conversion);
}

.btn-conversion:hover {
  background-color: var(--color-conversion-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 133, 90, 0.45);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Micro-texto de confianza */
.trust-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-item svg {
  color: var(--color-conversion);
  flex-shrink: 0;
}

/* Tarjetas y Contenedores */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(43, 108, 176, 0.25);
  transform: translateY(-4px);
}

.card-highlight {
  border: 2px solid var(--color-accent);
  position: relative;
}

.card-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* Footer Corporativo */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand p {
  color: var(--text-light);
  margin: 1rem 0 1.5rem 0;
  max-width: 340px;
  font-size: 0.92rem;
}

.footer-title {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #64748b;
}

.footer-bottom-links a:hover {
  color: #cbd5e1;
}

/* Floating Contact Button (Abre Formulario) */
.contact-float,
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 48px;
  padding: 0 1.25rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(43, 108, 176, 0.35);
  z-index: 999;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.contact-float:hover,
.whatsapp-float:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 28px rgba(43, 108, 176, 0.5);
  color: #ffffff;
}

.contact-float svg,
.whatsapp-float svg {
  width: 20px;
  height: 20px;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-primary-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  transition: transform 0.3s ease;
  font-size: 0.95rem;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* Animaciones y Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-accent { color: var(--color-accent); }
.text-green { color: var(--color-conversion); }
.font-bold { font-weight: 700; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
