/**
 * Nombre: core.css
 * Propósito: Reset, tipografía y utilidades base.
 * Dependencias: tokens.css.
 * Responsabilidad: Establecer estilos base consistentes.
 * Autor: PREVENGO SAS
 * Fecha: 2026-08-02
 */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--prv-font-primary);
  color: var(--prv-color-text);
  background-color: var(--prv-color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

.prv-container {
  width: 100%;
  max-width: var(--prv-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--prv-space-lg);
  padding-right: var(--prv-space-lg);
}

@media (min-width: 1024px) {
  .prv-container {
    padding-left: var(--prv-space-xl);
    padding-right: var(--prv-space-xl);
  }
}

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

.prv-no-scroll {
  overflow: hidden;
}

.prv-mt-4 {
  margin-top: var(--prv-space-lg);
}

.prv-mt-6 {
  margin-top: var(--prv-space-xl);
}

.prv-px-4 {
  padding-left: var(--prv-space-xl);
  padding-right: var(--prv-space-xl);
}

.prv-pb-4 {
  padding-bottom: var(--prv-space-xl);
}

.prv-flex-1 {
  flex: 1;
}

.prv-text-center {
  text-align: center;
}

.prv-fade-in {
  animation: prvFadeIn 0.8s ease-out forwards;
}

.prv-slide-up {
  animation: prvSlideUp 0.8s ease-out forwards;
}

@keyframes prvFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes prvSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
