/* 1. Box-sizing sólido y predecible */
*, *::before, *::after {
    box-sizing: border-box;
    min-width: 0;   /* evita overflow horizontal accidental */
}

/* 2. Elimina márgenes por defecto */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote {
    margin: 0;
}

p:last-child {
    margin-bottom: 0;
}

/* 3. Tipografía y suavizado */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* 4. Altura estable para layouts tipo app */
html, body {
    height: 100%;
}

/* 5. Imágenes y medios nunca se desbordan */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    /* keeps the ratio when width/height attributes are set (they reserve space, no CLS) */
    height: auto;
}

/* 6. Inputs, botones y selects heredan fuente */
input, button, textarea, select {
    font: inherit;
}

/* 7. Botones sin estilos raros y con pointer */
button {
    cursor: pointer;
    border: none;
    background: none;
}

/* 8. Enlaces sin estilos molestos */
a {
    color: inherit;
    text-decoration: none;
}

/* 9. No transitions while the page loads. Chrome can compute styles once
      before the stylesheets apply; without this, buttons, borders and cards
      would animate in from the browser defaults (looks broken and costs
      style/layout work). Class set in index.html <head>, removed by js/main.js. */
.no-transitions *,
.no-transitions *::before,
.no-transitions *::after {
    transition: none !important;
}