/* ============================================
   PUNTELEC S.A. - SISTEMA DE DISEÑO
   Variables CSS - Diseño Industrial Profesional
   ============================================ */

/* ==================== LAZY LOADING GLOBAL (todas las páginas) ==================== */
img[data-src]:not(.lazy-loaded) {
  background-color: #0d1f3c;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: lazyShimmer 1.4s ease-in-out infinite;
  color: transparent;
}
img.lazy-loading {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
img.lazy-loaded {
  animation: none;
  background: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}
@keyframes lazyShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==================== UTILIDADES GLOBALES ==================== */

.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: var(--container-xl);
  }
}

:root {
  /* ==================== PALETA DE COLORES ==================== */

  /* Azules Industriales - Color Principal (DOMINANTE) - ORIGINALES */
  --color-primary: #003d82;
  --color-primary-dark: #002654;
  --color-primary-darker: #001a3d;
  --color-primary-light: #0056b3;
  --color-primary-lighter: #1a6ec9;
  --color-primary-subtle: #e6f0ff;
  --color-primary-muted: rgba(0, 61, 130, 0.1);

  /* Azules Secundarios - ORIGINALES */
  --color-blue-steel: #2c5282;
  --color-blue-electric: #0066cc;
  --color-blue-dark: #001f3f;
  --color-blue-metallic: #34495e;

  /* Naranjas SÚPER VIBRANTES Y LLAMATIVOS - Acento Estratégico */
  --color-accent: #ff8c00; /* Naranja oscuro INTENSO */
  --color-accent-dark: #ff7700;
  --color-accent-darker: #ff6600;
  --color-accent-light: #ffa500; /* Naranja brillante */
  --color-accent-lighter: #ffb733;
  --color-accent-vivid: #ff9500; /* Naranja súper saturado */
  --color-accent-muted: rgba(255, 140, 0, 0.1);
  --color-accent-subtle: rgba(255, 140, 0, 0.05);

  /* Naranjas Alternativos BRILLANTES */
  --color-orange-fire: #ff7f00; /* Naranja fuego intenso */
  --color-orange-bright: #ff8c00; /* Naranja ultra brillante */
  --color-orange-neon: #ffa500; /* Naranja neón */
  --color-orange-electric: #ff9900; /* Naranja eléctrico */
  --color-orange-sun: #ffaa00; /* Naranja sol */

  /* Grises Industriales - Estructura */
  --color-gray-darkest: #1a1a1a;
  --color-gray-dark: #2c3e50;
  --color-gray-charcoal: #36454f;
  --color-gray-medium: #546e7a;
  --color-gray: #707070;
  --color-gray-light: #b0bec5;
  --color-gray-lighter: #eceff1;
  --color-gray-background: #f5f7f9;
  --color-gray-subtle: #fafbfc;

  /* Metálicos Industriales */
  --color-metal-dark: #3a3a3a;
  --color-metal-silver: #c0c0c0;
  --color-metal-gunmetal: #2a3439;
  --color-metal-steel: #71797e;

  /* Colores Básicos */
  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --color-text: #1a1a1a;
  --color-text-secondary: #2c3e50;
  --color-text-light: #546e7a;
  --color-text-muted: #707070;

  /* Estados Vibrantes */
  --color-success: #2e7d32;
  --color-warning: #ffa000; /* Naranja advertencia brillante */
  --color-error: #c62828;
  --color-info: #0277bd;

  /* Overlays y Sombras */
  --overlay-dark: rgba(0, 0, 0, 0.85);
  --overlay-medium: rgba(0, 0, 0, 0.65);
  --overlay-light: rgba(0, 0, 0, 0.4);
  --overlay-blue: rgba(0, 61, 130, 0.92);
  --overlay-blue-gradient: linear-gradient(
    135deg,
    rgba(0, 61, 130, 0.95),
    rgba(0, 86, 179, 0.85)
  );
  --overlay-orange-gradient: linear-gradient(
    135deg,
    rgba(255, 140, 0, 0.9),
    rgba(255, 119, 0, 0.95)
  );

  /* ==================== TIPOGRAFÍA ==================== */

  --font-primary: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-accent: "Montserrat", "Trebuchet MS", sans-serif;

  /* Tamaños de Fuente */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  --font-size-5xl: 3.75rem;
  --font-size-hero: 4.5rem;

  /* Pesos de Fuente */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Alturas de Línea */
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ==================== ESPACIADOS ==================== */

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  --spacing-5xl: 8rem;

  /* Espaciado de Secciones */
  --section-padding-mobile: 3rem;
  --section-padding-tablet: 4rem;
  --section-padding-desktop: 5rem;

  /* ==================== BORDES Y RADIOS ==================== */

  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 8px;
  --border-radius-xl: 12px;
  --border-radius-full: 9999px;

  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 3px;
  --border-width-heavy: 4px;

  /* ==================== SOMBRAS ==================== */

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Sombras de Marca VIBRANTES */
  --shadow-primary: 0 8px 20px rgba(0, 61, 130, 0.25);
  --shadow-primary-hover: 0 12px 28px rgba(0, 61, 130, 0.35);
  --shadow-accent: 0 6px 18px rgba(255, 140, 0, 0.45);
  --shadow-accent-hover: 0 10px 25px rgba(255, 140, 0, 0.55);
  --shadow-orange-glow: 0 0 30px rgba(255, 140, 0, 0.6);
  --shadow-orange-intense: 0 8px 25px rgba(255, 140, 0, 0.5);

  /* ==================== TRANSICIONES ==================== */

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* ==================== Z-INDEX ==================== */

  --z-index-base: 0;
  --z-index-dropdown: 100;
  --z-index-sticky: 200;
  --z-index-fixed: 300;
  --z-index-modal-backdrop: 400;
  --z-index-modal: 500;
  --z-index-popover: 600;
  --z-index-tooltip: 700;

  /* ==================== BREAKPOINTS ==================== */

  --breakpoint-xs: 375px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;

  /* ==================== CONTENEDORES ==================== */

  --container-xs: 540px;
  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1140px;
  --container-xl: 1320px;

  /* ==================== ELEMENTOS ESPECÍFICOS ==================== */

  /* Hero Section — svh evita saltos cuando la barra del navegador móvil aparece/desaparece */
  --hero-height-mobile: 100svh;
  --hero-height-tablet: 100svh;
  --hero-height-desktop: 100svh;
  --hero-min-height-mobile: 500px;

  /* Header */
  --header-height: 70px !important;
  --header-height-mobile: 70px !important;

  /* Botones */
  --button-padding-sm: 0.625rem 1.25rem;
  --button-padding-md: 0.875rem 2rem;
  --button-padding-lg: 1.125rem 2.5rem;
  --button-padding-xl: 1.375rem 3rem;

  /* Cards */
  --card-padding: 2rem;
  --card-padding-lg: 2.5rem;

  /* ==================== GRADIENTES INDUSTRIALES ==================== */

  /* Gradientes Azules - ORIGINALES */
  --gradient-primary: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
  --gradient-primary-dark: linear-gradient(135deg, #002654 0%, #003d82 100%);
  --gradient-blue-steel: linear-gradient(135deg, #2c5282 0%, #003d82 100%);

  /* Gradientes Naranjas SÚPER VIBRANTES */
  --gradient-accent: linear-gradient(135deg, #ff8c00 0%, #ffb733 100%);
  --gradient-accent-vivid: linear-gradient(135deg, #ff7700 0%, #ffa500 100%);
  --gradient-accent-fire: linear-gradient(135deg, #ff7f00 0%, #ff9900 100%);
  --gradient-orange-bright: linear-gradient(135deg, #ff8c00 0%, #ffaa00 100%);
  --gradient-orange-intense: linear-gradient(135deg, #ff7700 0%, #ff9500 100%);

  /* Gradientes Combinados - Azul + Naranja Vibrante */
  --gradient-industrial: linear-gradient(135deg, #003d82 0%, #ff8c00 100%);
  --gradient-industrial-reverse: linear-gradient(
    135deg,
    #ff8c00 0%,
    #003d82 100%
  );
  --gradient-power: linear-gradient(135deg, #0056b3 0%, #ffa500 100%);
  --gradient-energy: linear-gradient(135deg, #003d82 0%, #ff9500 100%);

  /* Gradientes de Overlay */
  --gradient-overlay-dark: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.8)
  );
  --gradient-overlay-blue: linear-gradient(
    135deg,
    rgba(0, 61, 130, 0.9),
    rgba(0, 38, 84, 0.95)
  );
  --gradient-overlay-orange: linear-gradient(
    135deg,
    rgba(255, 140, 0, 0.85),
    rgba(255, 119, 0, 0.9)
  );
  --gradient-overlay-industrial: linear-gradient(
    135deg,
    rgba(0, 61, 130, 0.9),
    rgba(255, 140, 0, 0.85)
  );

  /* Gradientes Sutiles para Fondos */
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f5f7f9 100%);
  --gradient-blue-subtle: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
  --gradient-orange-subtle: linear-gradient(180deg, #fff8f0 0%, #ffffff 100%);

  /* ==================== EFECTOS ==================== */

  --hover-lift: translateY(-4px);
  --hover-lift-lg: translateY(-8px);
  --hover-scale: scale(1.02);
  --hover-scale-lg: scale(1.05);

  /* Efectos de Brillo */
  --shine-effect: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  --shine-orange: linear-gradient(
    90deg,
    transparent,
    rgba(255, 140, 0, 0.3),
    transparent
  );
  --shine-blue: linear-gradient(
    90deg,
    transparent,
    rgba(0, 61, 130, 0.15),
    transparent
  );

  /* Altura Header */
  --header-height: 70px;
}

/* ==================== MEDIA QUERIES ==================== */

@media (min-width: 768px) {
  :root {
    --font-size-hero: 5rem;
    --font-size-5xl: 4.25rem;
    --font-size-4xl: 3.5rem;
  }
}

@media (min-width: 992px) {
  :root {
    --font-size-hero: 5.5rem;
  }
}

/* ==================== UTILIDADES GLOBALES ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* SCROLLBAR ELIMINADA - Sin indicador visual */
::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}
