/* =========================================================
   SANITARIOS INDEPENDENCIA
   Design System / Base
   ========================================================= */

:root {
  /* Colores provisionales: identidad definitiva pendiente */
  --color-primary: #16324f;
  --color-primary-dark: #0f2439;
  --color-accent: #e8a020;

  --color-text: #20242a;
  --color-text-soft: #667085;
  --color-background: #ffffff;
  --color-surface: #f6f7f8;
  --color-border: #e4e7ec;

  /* Layout */
  --container-width: 1280px;
  --container-padding: 20px;

  /* Espaciado */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;

  /* UI */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm:
    0 2px 8px rgba(0, 0, 0, 0.06);

  --shadow-md:
    0 12px 30px rgba(0, 0, 0, 0.10);

  --transition:
    180ms ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--color-text);
  background: var(--color-background);

  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(2.4rem, 8vw, 4.8rem);
}

h2 {
  margin-bottom: var(--space-sm);
  font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin-bottom: var(--space-md);
}

.eyebrow {
  margin-bottom: var(--space-xs);

  color: var(--color-primary);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  width: min(
    calc(100% - (var(--container-padding) * 2)),
    var(--container-width)
  );

  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
}

.section-alt {
  background: var(--color-surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);

  margin-bottom: var(--space-lg);
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > a {
  color: var(--color-primary);
  font-weight: 700;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}


/* =========================================================
   CORPORATE FONTS
   Fira Sans: headings / corporate typography
   Inter: body / UI
   ========================================================= */

@font-face {
  font-family: "Fira Sans";
  src: url("/assets/fonts/fira-sans/fira-sans-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("/assets/fonts/fira-sans/fira-sans-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("/assets/fonts/fira-sans/fira-sans-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/inter-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/inter-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/inter-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/inter-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}


/* Identidad corporativa */

.brand-name,
.hero h1,
.section-heading h2,
.contact h2,
.footer-company h2 {
  font-family: "Fira Sans", sans-serif;
}


/* Nombre de la empresa */

.brand-name,
.footer-company h2 {
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* Grandes títulos */

.hero h1,
.section-heading h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
}


/* Etiquetas comerciales */

.eyebrow {
  font-family: "Fira Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
