/* Archivo: /css/base.css
   Reset ligero, tipografía y utilidades globales. */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fuente-principal);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-texto);
  background-color: var(--color-fondo);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-accion);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

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

/* Foco visible para navegación por teclado */
:focus-visible {
  outline: 2px solid var(--color-accion);
  outline-offset: 2px;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--ancho-contenedor);
  margin: 0 auto;
  padding: 0 16px;
}

.page-main {
  flex: 1;
  padding: 24px 0 48px;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Oculta visualmente pero mantiene accesible para lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
