﻿/* ============================================================
   base.css — Reset, Variables, Tipografía, Utilidades Globales
   J&D ELECTRO COOLING
   ============================================================ */

/* â”€â”€ VARIABLES DEL SISTEMA DE DISEÑO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  /* ============================================================
     PALETA — Navy Marino + Oro/Dorado (enfoque premium ejecutivo)
     El "acento" del sistema (históricamente --color-red) ahora es ORO.
     Se conserva el nombre de variable para no romper componentes.
     ============================================================ */
  /* ACENTO PRINCIPAL — Oro/Dorado (acentos, números, iconos, CTA Cotizar) */
  --color-red: #C6982B;
  --color-red-hover: #D9AD3C;
  --color-red-bg: rgba(198, 152, 43, 0.10);
  /* Tokens semánticos nuevos (preferir estos en componentes nuevos) */
  --color-gold: #C6982B;
  --color-gold-hover: #D9AD3C;
  --color-gold-bg: rgba(198, 152, 43, 0.10);
  /* Oro accesible para TEXTO sobre fondo claro (WCAG AA 5.37:1 sobre blanco).
     Usar SOLO en texto/labels/links sobre fondos claros. En fondos oscuros,
     iconos y líneas decorativas mantener --color-gold brillante. */
  --color-gold-text: #8C6314;
  --color-navy: #0A1B33;
  --color-navy-hover: #14315A;
  --color-navy-bg: rgba(10, 27, 51, 0.06);
  /* Alias legacy mapeados a la marca (cyan/blue → navy) */
  --color-cyan: #0A1B33;
  --color-cyan-hover: #14315A;
  --color-cyan-bg: rgba(10, 27, 51, 0.06);
  --color-blue: #0A1B33;
  --color-blue-hover: #14315A;
  --color-blue-bg: rgba(10, 27, 51, 0.06);

  /* FONDOS — limpios y elegantes */
  --bg-primary: #FAFAFA;
  --bg-secondary: #F2F3F5;
  --bg-tertiary: #EAECF0;
  --bg-white: #FFFFFF;
  --bg-dark: #0A1B33;
  --bg-footer: #07142A;

  /* TEXTOS — navy para principales */
  --text-primary: #0A1B33;
  --text-secondary: #3A4759;
  --text-muted: #6B7787;
  --text-border: rgba(10, 27, 51, 0.10);
  --text-white: #FFFFFF;

  /* BORDES */
  --border-light: rgba(10, 27, 51, 0.10);
  --border-dark: rgba(255, 255, 255, 0.10);
  --border-radius: 4px;
  --border-radius-lg: 8px;

  /* SOMBRAS */
  --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* TIPOGRAFÍA */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Barlow', sans-serif;

  /* TAMAÑOS TIPOGRÁFICOS — Refinados para precisión técnica */
  --text-xs: 0.70rem;
  --text-sm: 0.825rem;
  --text-base: 0.95rem;
  --text-lg: 1.05rem;
  --text-xl: 1.15rem;
  --text-2xl: 1.35rem;
  --text-3xl: 1.65rem;
  --text-4xl: 2.15rem;
  --text-5xl: 2.85rem;
  --text-6xl: 3.85rem;
  --text-7xl: 5.25rem;

  /* ESPACIADO */
  --section-padding: 80px 56px;
  --section-padding-sm: 56px 24px;
  --container-max: 1300px;
  --nav-height: 104px;

  /* TRANSICIONES */
  --transition-fast: 0.18s ease;
  --transition-base: 0.30s ease;
  --transition-slow: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Z-INDEX */
  --z-base: 1;
  --z-above: 10;
  --z-nav: 100;
  --z-cursor: 9999;
  --z-overlay: 200;
}

/* â”€â”€ RESET MODERNO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Compensa el nav fijo al saltar a un #ancla (deep-links del mega menú) */
[id] {
  scroll-margin-top: 96px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  font-size: 1.0125rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  cursor: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* â”€â”€ TIPOGRAFÍA BASE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.heading-display {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-7xl);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.heading-xl {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-5xl);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.heading-lg {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-4xl);
  line-height: 1.05;
  text-transform: uppercase;
}

.heading-md {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-3xl);
  text-transform: uppercase;
}

.body-lg {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.70;
  font-weight: 300;
}

.body-base {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
}

.label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* â”€â”€ UTILIDADES GLOBALES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.u-text-red {
  color: var(--color-red);
}

.u-text-cyan {
  color: var(--color-cyan);
}

.u-text-gold {
  color: var(--color-gold);
}

.u-text-blue {
  color: var(--color-blue);
}

.u-text-muted {
  color: var(--text-muted);
}

.u-text-white {
  color: var(--text-white);
}

.u-fw-300 {
  font-weight: 300;
}

.u-fw-400 {
  font-weight: 400;
}

.u-fw-500 {
  font-weight: 500;
}

.u-fw-600 {
  font-weight: 600;
}

.u-fw-700 {
  font-weight: 700;
}

.u-fw-800 {
  font-weight: 800;
}

/* â”€â”€ CURSOR PERSONALIZADO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#cur {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  will-change: transform;
}

#cur2 {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: width 0.3s, height 0.3s, opacity 0.3s, border-color 0.3s;
  will-change: transform;
}

body:hover #cur {
  opacity: 1;
}

a:hover~#cur,
button:hover~#cur {
  width: 14px;
  height: 14px;
}

/* â”€â”€ SCROLL PROGRESS BAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: calc(var(--z-nav) + 10);
  background: var(--color-red);
  transition: width 0.05s linear;
  pointer-events: none;
}

/* â”€â”€ DIVIDER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 0 56px;
}

/* â”€â”€ SELECTION COLOR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::selection {
  background: var(--color-gold);
  color: var(--color-navy);
}

/* â”€â”€ SCROLLBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: 3px;
}

/* â”€â”€ ANIMACIONES BASE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-r] {
  opacity: 0;
  transform: translateY(30px);
}

[data-r="fade"] {
  opacity: 0;
  transform: translateY(24px);
}

[data-r="left"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-r="right"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-r="scale"] {
  opacity: 0;
  transform: scale(0.92);
}

