/* MundoHVAC Design System — production bundle (all tokens inlined) */

/* === tokens/fonts.css === */
/* ===========================================================================
   MundoHVAC — Webfonts
   Brand face: Geogrotesque (Emtype Foundry) — LICENSED, files not provided.
   Substitute below: Hanken Grotesk (Google Fonts, OFL).
   To restore the true brand face, replace the @import/@font-face below with
   licensed Geogrotesque files and keep the family name "Geogrotesque" first
   in --font-sans (tokens/typography.css).
   =========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

/* === tokens/colors.css === */
/* ===========================================================================
   MundoHVAC — Color tokens
   Source of truth: Identidad Mundo HVAC.pdf + ONEPAGER_INFO.jpg
   =========================================================================== */
:root {
  /* --- Brand base palette (exact brand values) --- */
  --navy-900:        #001955;  /* Pantone 281 C — primary dark / ink */
  --red-500:         #E6233E;  /* Pantone 1788 C — primary accent */
  --white-50:        #FAFAFA;  /* brand off-white / paper */

  --blue-light-500:  #4791FC;  /* secondary — light blue */
  --blue-strong-500: #006ED5;  /* secondary — strong blue */
  --purple-500:      #752995;  /* secondary — purple */

  /* --- Navy tints (per brand 80/60/40 scale) --- */
  --navy-800: #334775;
  --navy-600: #6675a6;  /* 60% */
  --navy-400: #99a3c4;  /* 40% */
  --navy-200: #ccd1e1;
  --navy-100: #e6e8f0;

  /* --- Red tints (per brand 80/60/40 scale) --- */
  --red-400:  #eb4f64;  /* 80% */
  --red-300:  #f08b9b;  /* 60% */
  --red-200:  #f5b7c1;  /* 40% */
  --red-100:  #fbe3e7;

  /* --- Neutral / gray ramp (warm-cool neutral, anchored to navy ink) --- */
  --gray-950: #0c1424;
  --gray-900: #161d2e;
  --gray-800: #2a3140;
  --gray-700: #434a59;
  --gray-600: #5e6571;
  --gray-500: #818793;
  --gray-400: #a6abb4;
  --gray-300: #c9ccd2;
  --gray-200: #e3e5e9;
  --gray-100: #f0f1f4;
  --gray-50:  #f7f8fa;
  --white:    #ffffff;

  /* --- Semantic state colors (derived from brand) --- */
  --success-500: #1f9d57;
  --warning-500: #f5a623;
  --danger-500:  var(--red-500);
  --info-500:    var(--blue-strong-500);

  /* =====================================================================
     SEMANTIC ALIASES — reference these in components, not the raw values
     ===================================================================== */
  /* Surfaces */
  --surface-page:      var(--white-50);
  --surface-card:      var(--white);
  --surface-raised:    var(--white);
  --surface-sunken:    var(--gray-50);
  --surface-inverse:   var(--navy-900);
  --surface-accent:    var(--red-500);

  /* Text */
  --text-strong:   var(--navy-900);   /* headings */
  --text-body:     var(--gray-800);   /* paragraphs */
  --text-muted:    var(--gray-600);   /* captions, meta */
  --text-faint:    var(--gray-500);
  --text-on-dark:  var(--white-50);
  --text-on-accent:var(--white);
  --text-link:     var(--blue-strong-500);

  /* Brand accents */
  --accent-primary:   var(--red-500);
  --accent-secondary: var(--blue-strong-500);
  --accent-cool:      var(--blue-light-500);
  --accent-purple:    var(--purple-500);

  /* Borders & lines */
  --border-subtle: var(--gray-200);
  --border-default:var(--gray-300);
  --border-strong: var(--navy-900);
  --border-on-dark:rgba(255,255,255,0.16);

  /* Interactive */
  --focus-ring: var(--blue-strong-500);
}

/* === tokens/typography.css === */
/* ===========================================================================
   MundoHVAC — Typography tokens
   Brand face: Geogrotesque (Emtype) — Bold / Regular / Light.
   SUBSTITUTE: Hanken Grotesk (Google Fonts), closest free geometric grotesque.
   Swap @font-face in fonts.css when the licensed Geogrotesque files arrive.
   =========================================================================== */
:root {
  /* Families */
  --font-sans: "Hanken Grotesk", "Geogrotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);   /* titles use the same family, heavier weight */

  /* Weights (mapped to brand usage) */
  --weight-light:    300;  /* Light — texto especial o destacado */
  --weight-regular:  400;  /* Regular — texto general */
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;  /* Bold — títulos o textos importantes */
  --weight-extrabold:800;  /* display / hero */

  /* Type scale (1.250 major-third, 16px base) */
  --text-2xs: 0.694rem;  /* 11px */
  --text-xs:  0.8rem;    /* 12.8px */
  --text-sm:  0.875rem;  /* 14px */
  --text-md:  1rem;      /* 16px — base body */
  --text-lg:  1.125rem;  /* 18px */
  --text-xl:  1.375rem;  /* 22px */
  --text-2xl: 1.75rem;   /* 28px */
  --text-3xl: 2.25rem;   /* 36px */
  --text-4xl: 2.875rem;  /* 46px */
  --text-5xl: 3.75rem;   /* 60px */
  --text-6xl: 4.75rem;   /* 76px — hero */

  /* Line heights */
  --leading-tight:   1.05;  /* display headlines */
  --leading-snug:    1.2;   /* headings */
  --leading-normal:  1.55;  /* body */
  --leading-relaxed: 1.7;

  /* Letter spacing — brand wordmark & labels are widely tracked */
  --tracking-tighter: -0.02em;
  --tracking-tight:   -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.12em;   /* eyebrows, the "H V A C" lockup feel */
  --tracking-widest:  0.22em;
}

/* === tokens/spacing.css === */
/* ===========================================================================
   MundoHVAC — Spacing, radius, shadow, layout tokens
   =========================================================================== */
:root {
  /* Spacing scale (4px base) */
  --space-0:  0;
  --space-1:  0.25rem;  /* 4 */
  --space-2:  0.5rem;   /* 8 */
  --space-3:  0.75rem;  /* 12 */
  --space-4:  1rem;     /* 16 */
  --space-5:  1.5rem;   /* 24 */
  --space-6:  2rem;     /* 32 */
  --space-7:  3rem;     /* 48 */
  --space-8:  4rem;     /* 64 */
  --space-9:  6rem;     /* 96 */
  --space-10: 8rem;     /* 128 */

  /* Section rhythm */
  --section-y:        var(--space-9);
  --container-max:    1200px;
  --container-narrow: 760px;
  --gutter:           clamp(1.25rem, 5vw, 4rem); /* @kind spacing */

  /* Radii — brand is squared / industrial; logo bars are sharp.
     Keep radii restrained. */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   22px;
  --radius-pill: 999px;

  /* Borders */
  --border-w:        1px;
  --border-w-strong: 2px;
  --bar-accent-w:    4px;   /* the brand color-bar device under "MUNDO" */

  /* Shadows — cool, navy-tinted, restrained (professional, not soft/floaty) */
  --shadow-xs: 0 1px 2px rgba(0, 25, 85, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 25, 85, 0.08), 0 1px 2px rgba(0, 25, 85, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 25, 85, 0.10);
  --shadow-lg: 0 14px 40px rgba(0, 25, 85, 0.14);
  --shadow-accent: 0 8px 24px rgba(230, 35, 62, 0.30);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   220ms; /* @kind other */
  --dur-slow:   400ms; /* @kind other */

  /* Elevation z-index */
  --z-nav:     100; /* @kind other */
  --z-overlay: 500; /* @kind other */
  --z-modal:   600; /* @kind other */
  --z-toast:   700; /* @kind other */
}

/* === tokens/base.css === */
/* ===========================================================================
   MundoHVAC — base element styles & helpers (opt-in, lightweight)
   =========================================================================== */
:root {
  color-scheme: light;
}

.mh-root,
.mh-prose {
  font-family: var(--font-sans);
  color: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings helper */
.mh-h1, .mh-h2, .mh-h3 {
  color: var(--text-strong);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  text-wrap: balance;
}
.mh-h1 { font-size: clamp(2.5rem, 6vw, var(--text-6xl)); }
.mh-h2 { font-size: clamp(1.9rem, 4vw, var(--text-4xl)); }
.mh-h3 { font-size: clamp(1.4rem, 2.5vw, var(--text-2xl)); font-weight: var(--weight-bold); }

/* Eyebrow / kicker — tracked uppercase, brand red */
.mh-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-primary);
}

/* The brand color-bar device: a short accent underline under a title */
.mh-bar {
  display: inline-block;
  width: 56px;
  height: var(--bar-accent-w);
  background: var(--accent-primary);
  border-radius: var(--radius-xs);
}

/* Focus ring */
.mh-focusable:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}


