/* ==========================================================================
   FD CLEAN S.R.L. — globals.css
   Variables, reset, tipografía base, container
   ========================================================================== */

:root {
  /* Paleta */
  --fd-blue-electric: #2554F0;
  --fd-blue-deep: #0A2540;
  --fd-celeste-pastel: #B8DCEB;
  --fd-white: #FFFFFF;
  --fd-bg-soft: #F5F7FA;
  --fd-carbon: #1A1A1A;
  --fd-gray-med: #6B7280;
  --fd-gray-line: #E5E7EB;

  /* Radios */
  --r-pill: 100px;
  --r-card: 24px;
  --r-image: 20px;
  --r-logo: 12px;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 32px;
  --section-pad: 120px;
  --grid-gap: 32px;

  /* Sombras */
  --shadow-card: 0 4px 24px rgba(10, 37, 64, 0.06);
  --shadow-card-hover: 0 16px 40px rgba(10, 37, 64, 0.12);
  --shadow-nav: 0 2px 16px rgba(10, 37, 64, 0.08);
  --shadow-btn-hover: 0 8px 24px rgba(10, 37, 64, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.3s;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis maneja el smooth scroll */
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fd-carbon);
  background: var(--fd-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  object-fit: cover;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Escala tipográfica
   -------------------------------------------------------------------------- */

/* 120px es el tope de la escala (viewports anchos). Fluido hacia abajo para
   que el titular del hero no se rompa en 8 líneas dentro de su columna. */
.h1-hero {
  font-size: clamp(48px, 5.6vw, 120px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.h2-section {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.h3-card {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--fd-gray-med);
}

.eyebrow--on-blue {
  color: var(--fd-celeste-pastel);
}

.body-large {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.body-regular {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.text-muted {
  color: var(--fd-gray-med);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad);
}

.section--soft {
  background: var(--fd-bg-soft);
}

.section--blue {
  background: var(--fd-blue-electric);
  color: var(--fd-white);
}

.section-header {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 72px;
  text-align: center;
}

.section-header .eyebrow {
  margin-bottom: 20px;
}

.section-header .h2-section {
  color: var(--fd-blue-deep);
  margin-bottom: 24px;
}

.section-header p {
  color: var(--fd-gray-med);
}

/* --------------------------------------------------------------------------
   Accesibilidad
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--fd-blue-electric);
  outline-offset: 3px;
  border-radius: 4px;
}

.section--blue :focus-visible {
  outline-color: var(--fd-celeste-pastel);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
    --section-pad: 64px;
    --grid-gap: 20px;
  }

  body {
    font-size: 15px;
  }

  /* .h1-hero ya cae a 48px por su clamp() — no hace falta override acá */

  .h2-section {
    font-size: 40px;
  }

  .h3-card {
    font-size: 22px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .body-large {
    font-size: 16px;
  }

  .body-regular {
    font-size: 15px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  /* Robustez mobile: nada desborda a lo ancho */
  .container {
    overflow-wrap: break-word;
  }

  .section-header {
    max-width: 100%;
  }
}
