@layer reset, base, theme, components, utilities;

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

  html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  body {
    min-height: 100vh;
    line-height: 1.6;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    background-color: #FFFFFF;
    color: #061E4F;
    overflow-x: hidden;
  }

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

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

  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul, ol {
    list-style: none;
  }
}

@layer base {
  :root {
    /* Paleta Oficial EPM */
    --navy-primary: #061E4F;
    --orange-accent: #C07133;
    --ocre-secondary: #CC9150;
    --dark-brown: #2D0F0F;
    --white-base: #FFFFFF;
    --black-text: #000000;

    /* Variaciones y Colores Semánticos */
    --bg-navy-light: #0a2d75;
    --bg-navy-dark: #03112d;
    --grey-light: #f5f7fa;
    --grey-medium: #e2e8f0;
    --grey-dark: #64748b;
    --text-primary: var(--navy-primary);
    --text-secondary: #475569;
    --text-light: var(--white-base);
    
    /* Tipografía obligatoria: Verdana */
    --font-primary: 'Verdana', sans-serif;
    
    /* Bordes y Sombras Premium */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(6, 30, 79, 0.08), 0 2px 4px -1px rgba(6, 30, 79, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(6, 30, 79, 0.1), 0 4px 6px -2px rgba(6, 30, 79, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(6, 30, 79, 0.12), 0 10px 10px -5px rgba(6, 30, 79, 0.04);
    
    /* Transición cubic-bezier suave de 0.4s según manual */
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Contenedores */
    --container-max-width: 1200px;
    --header-height: 80px;
  }

  body {
    font-family: var(--font-primary);
    font-weight: 400; /* Regular */
    color: var(--text-primary);
    background-color: var(--white-base);
  }

  /* Títulos y Encabezados - Verdana Bold */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Bold */
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--navy-primary);
  }

  h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); text-wrap: balance; }
  h2 { font-size: clamp(1.5rem, 1.2rem + 1.8vw, 2.4rem); text-wrap: balance; }
  h3 { font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); text-wrap: balance; }
  
  p {
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    text-wrap: pretty;
  }

  /* Accesibilidad */
  :focus-visible {
    outline: 3px solid var(--orange-accent);
    outline-offset: 4px;
  }
}
