/* ==========================================================================
   DIRIGE - Sitio Web Corporativo
   Design System: Technical Precision Corporate (PMI / AACE / ISO 19650)
   ========================================================================== */

:root {
  /* Color Tokens */
  --color-primary: #001525;
  --color-primary-container: #102a3d;
  --color-primary-light: #1c3e57;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #7992a9;
  
  --color-secondary: #b32a00;
  --color-secondary-container: #f14e23;
  --color-secondary-hover: #d9421a;
  --color-secondary-fixed: #ffdbd2;
  --color-secondary-dim: #ffb4a2;
  --color-on-secondary: #ffffff;
  
  --color-tertiary: #001525;
  --color-tertiary-container: #002a45;
  --color-tertiary-fixed: #cde5ff;
  --color-tertiary-fixed-dim: #799fc3;
  
  --color-surface: #fcf9f8;
  --color-surface-dim: #dcd9d9;
  --color-surface-bright: #ffffff;
  --color-surface-lowest: #ffffff;
  --color-surface-low: #f6f3f2;
  --color-surface-container: #f0eded;
  --color-surface-container-high: #eae7e7;
  --color-surface-highest: #e4e2e1;
  
  --color-on-surface: #1b1c1c;
  --color-on-surface-variant: #43474c;
  --color-outline: #73777d;
  --color-outline-variant: #c3c7cd;
  --color-divider-light: rgba(16, 42, 61, 0.12);
  --color-divider-dark: rgba(121, 159, 195, 0.2);

  /* Typography Scale */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --container-max: 1280px;
  --header-height: 80px;
}

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

html {
  font-family: var(--font-family);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-surface);
  color: var(--color-on-surface);
}

body {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Modern Typography Utilities */
.font-display-hero {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.font-headline-lg {
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.font-headline-md {
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.font-headline-sm {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0em;
  font-weight: 600;
}

.font-body-lg {
  font-size: clamp(16px, 1.8vw, 17px);
  line-height: 1.65;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.font-body-md {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0em;
}

.font-body-sm {
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.font-kicker-tag {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}

.font-label-md {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.font-metric-step {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Material Symbols alignment */
.material-symbols-outlined {
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Micro-interactions & animations */
.btn-hover-arrow {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover-arrow:hover .arrow-icon {
  transform: translateX(4px);
}

.arrow-icon {
  transition: transform 0.2s ease;
  display: inline-block;
}

/* Sharp Technical Aesthetics (0px radius) */
.sharp-card {
  border-radius: 0 !important;
  border: 1px solid rgba(16, 42, 61, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.sharp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(16, 42, 61, 0.08);
  border-color: rgba(241, 78, 35, 0.4);
}

.sharp-card-featured {
  border-top: 3px solid var(--color-secondary-container) !important;
}

/* Subtle blueprint grid overlay */
.blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(16, 42, 61, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 42, 61, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.blueprint-grid-dark {
  background-image: 
    linear-gradient(to right, rgba(205, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(205, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Form Styles */
.form-input-technical {
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-size: 14px;
  color: var(--color-on-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.form-input-technical:focus {
  outline: none;
  border-color: var(--color-primary-container);
  box-shadow: 0 0 0 1px var(--color-primary-container);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 21, 37, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border-top: 4px solid var(--color-secondary-container);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

/* Floating WhatsApp / Contact Widget */
.floating-contact-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 14px rgba(37, 211, 102, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.floating-contact-btn:hover {
  transform: scale(1.1) translateY(-2px);
  filter: drop-shadow(0 8px 22px rgba(37, 211, 102, 0.65));
}

/* Mobile drawer menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 90;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 21, 37, 0.5);
  backdrop-filter: blur(2px);
  z-index: 85;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
