/**
 * FRIO SERVICIOS L.S. - Design System & Base CSS
 * Paleta inspirada en climatización/refrigeración premium y confiable.
 */

:root {
  /* Brand Colors */
  --color-primary: #0a2540;       /* Azul marino profundo y técnico */
  --color-primary-dark: #06182a;  /* Azul marino noche */
  --color-primary-light: #123d6a; /* Azul marino medio */
  --color-brand-blue: #0077b6;    /* Azul frío corporativo */
  --color-brand-cyan: #00b4d8;    /* Cyan frío / hielo */
  --color-brand-accent: #0284c7;  /* Acento tecnológico */
  
  /* WhatsApp & Action Accent */
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebc59;
  --color-cta-orange: #ea580c;    /* Naranja sutil de alta conversión */
  --color-cta-orange-hover: #c2410c;

  /* Neutral Surface & Text */
  --color-bg-body: #ffffff;
  --color-bg-alt: #f8fafc;        /* Fondo gris perla ultra suave */
  --color-bg-card: #ffffff;
  --color-bg-dark: #0a192f;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-text-main: #0f172a;     /* Slate oscuro de alta legibilidad */
  --color-text-muted: #475569;    /* Slate intermedio */
  --color-text-light: #94a3b8;
  --color-text-white: #ffffff;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid Font Sizes */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.1vw, 2.375rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
  --text-hero: clamp(2.15rem, 1.75rem + 2vw, 3.4rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 960px;
  --header-height: 76px;
  --header-height-mobile: 68px;

  /* Elevation / Shadows */
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 4px 14px rgba(10, 37, 64, 0.06), 0 1px 3px rgba(10, 37, 64, 0.04);
  --shadow-card-hover: 0 14px 30px rgba(10, 37, 64, 0.12), 0 4px 10px rgba(10, 37, 64, 0.05);
  --shadow-floating: 0 16px 36px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--color-brand-cyan);
  outline-offset: 3px;
}

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

p {
  color: var(--color-text-muted);
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  position: relative;
}

.section-alt {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.section-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-text-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-white);
}

.section-dark p {
  color: #cbd5e1;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-blue);
  margin-bottom: var(--space-2);
  background: rgba(0, 119, 182, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.section-dark .section-eyebrow {
  color: var(--color-brand-cyan);
  background: rgba(0, 180, 216, 0.15);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Generic Screen Reader Helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
