/* ==========================================================================
   ASECONT — Base CSS (Modular)
   Reset, tipografía base, variables globales y accesibilidad
   ========================================================================== */

:root {
  /* Contenedores y espaciados fluidos */
  --wrap-max: 1240px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --sec-pad: clamp(56px, 6vw + 24px, 108px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  /* Sombras y transiciones */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.15);
  --shadow-lift: 0 16px 36px -8px rgba(0, 0, 0, 0.18);
  --trans: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Estados funcionales */
  --c-success: #1e7e34;
  --c-warning: #b38600;
  --c-danger: #d93838;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  color: var(--c-heading);
  line-height: 1.2;
  margin-top: 0;
  text-wrap: balance;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

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

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

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

/* Enfoque accesible */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

/* Clases utilitarias comunes */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-left: var(--gut);
  padding-right: var(--gut-r);
}

.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;
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.text-muted {
  color: var(--c-muted);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

