/* ============================================================
   STAMPEA - Reset CSS
   Reset moderno + box-sizing global
   ============================================================ */

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

/* Render más nítido en todos los browsers */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Body base */
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* Imágenes responsive por defecto */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Tipografía hereda del body */
input, button, textarea, select {
  font: inherit;
}

/* Evitar overflow en palabras largas */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Listas sin estilos por defecto */
ul, ol {
  list-style: none;
}

/* Botones sin estilos default del browser */
button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Enlaces */
a {
  color: inherit;
  text-decoration: none;
}

/* Inputs */
input, textarea {
  border: none;
  outline: none;
  background: transparent;
}

/* Eliminar borde de focus por defecto, agregamos uno custom */
:focus {
  outline: none;
}

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

/* Selección de texto */
::selection {
  background-color: var(--color-teal);
  color: var(--color-white);
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-pale);
}

::-webkit-scrollbar-thumb {
  background: var(--color-teal);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal-dark);
}

/* Animación de aparecer */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animación de splash */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Animación de carga */
@keyframes loadingBar {
  0%, 100% { width: 30%; }
  50% { width: 85%; }
}

/* Animación de rotación */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
