/* Fonts */
:root {
  --default-font: 'Inter', sans-serif;
  --heading-font: 'Inter', sans-serif;
  --nav-font: 'Inter', sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #4e4e4e; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #0a090f; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #0057be; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --nav-color: var(--default-color);
  --header-h: 80px; /* altura del header */
  --mega-h: 220px; /* altura del mega menú */
  --container-max: 1200px; /* ancho máximo del contenido del mega */
  --container-pad: 40px; /* margen lateral mínimo (coincide con header) */
  --mega-shift: 202px; /* mueve la caja hacia la derecha */
  --col-w: 280px;
  --col-gap: 40px;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--nav-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

:root {
  /* Paleta base (ajustá a tu tema global si ya lo tenés) */
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #686868;
  --maxw: 1245px;

  /* Tipografía fluida (escala entre mobile y desktop) */
  --fs-display: clamp(2.4rem, 3vw + 1.6rem, 6.2rem);
  --fs-body: clamp(0.95rem, 0.4vw + 0.85rem, 1.05rem);
  --fs-aside: clamp(0.8rem, 0.25vw + 0.78rem, 0.95rem);

  /* Ritmo vertical */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  /* Grid */
  --col-gap: clamp(16px, 3vw, 48px);
  --side-pad: clamp(20px, 6vw, 72px);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
}
body {
  margin: 0;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Utilitarios */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  /* padding-inline: var(--side-pad); */
  position: relative;
}
.section {
  padding-block: calc(var(--space-6) - 50px);
  position: relative;
}
.display {
  font-weight: 800;
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}
#qs-title-3 {
  font-size: 70px;
}

/* Layout de dos columnas con un aside a la derecha */
.section-hero .container,
.section-statement .container {
  display: flex;
  flex-direction: column;
  gap: var(--col-gap);
  align-items: start;
}

.section-hero {
  margin-top: var(--space-5);
}

/* El texto lateral */
.aside {
  font-size: var(--fs-aside);
  color: var(--muted);
  line-height: 1.4;
  margin-top: var(--space-4);
  width: 30rem;
  margin-left: auto;
}
.section-statement .aside.bottom {
  /* En la segunda sección el texto va debajo (según tu mock) */
  align-self: end;
  margin-top: 0;
}

/* Lineamientos 01–04 */
.section-guidelines .display {
  margin-bottom: var(--space-4);
}
.guidelines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 500px;
  margin-left: auto;
  font-size: var(--fs-aside);
  color: var(--muted);
  line-height: 1.4;
}
.guidelines li {
  display: grid;
  grid-template-columns: 64px 1fr;
  /* gap: var(--col-gap); */
  align-items: start;
}
.guidelines .nro {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.guidelines p {
  margin: 0;
  font-size: var(--fs-aside);
  line-height: 107%;
}

/* Responsivo */
@media (max-width: 980px) {
  .section-hero .container,
  .section-statement .container {
    grid-template-columns: 1fr;
  }
  .aside {
    margin-top: var(--space-3);
  }
  .guidelines {
    max-width: none;
  }
}

main.wrap.layout > div:first-of-type > section:first-of-type {
  margin-top: var(--header-h); /* Usa la altura del header */
}

@media (max-width: 767.98px) {
  /* Reduce márgenes verticales generales */
  .section {
    padding-block: 40px;
  }

  /* Mejora la lectura y jerarquía de los textos */
  .display {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  h1,
  h2,
  h3 {
    margin-bottom: 12px;
    line-height: 1.2;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  /* Alinea mejor los textos con el margen lateral */
  .container {
    padding-inline: 24px;
  }

  /* Ajusta el ancho del texto lateral (aside) */
  .aside {
    width: 100%;
    margin-left: 0;
    margin-top: 16px;
  }

  /* Reduce el espacio entre bloques */
  .section-hero .container,
  .section-statement .container {
    gap: 28px;
  }

  /* Centra contenido principal si hay espacio */
  .section-hero,
  .section-statement {
    text-align: left;
  }

  /* Ajusta el tamaño del título principal */
  #qs-title-3 {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  /* .section-hero {
    margin: 0;
  } */
}
