@charset "UTF-8";

/* ==========================================================================
   Cross-browser foundation
   Se carga antes de los estilos del proyecto para normalizar el navegador
   sin aumentar la especificidad de los componentes.
   ========================================================================== */

/* 1. Reset estructural
   -------------------------------------------------------------------------- */
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background-color: #fff;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section,
summary {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

/* 2. Tipografía y contenido
   -------------------------------------------------------------------------- */
html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
optgroup,
select,
textarea {
  font: inherit;
  line-height: inherit;
  color: inherit;
}

abbr[title] {
  text-decoration: underline dotted;
  -webkit-text-decoration: underline dotted;
  text-decoration-skip-ink: auto;
  cursor: help;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

a {
  color: inherit;
  background-color: transparent;
  text-decoration-skip-ink: auto;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

iframe {
  max-width: 100%;
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

hr {
  height: 0;
  overflow: visible;
  border-top: 1px solid currentColor;
  color: inherit;
}

pre,
code,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
    monospace;
  font-size: 1em;
}

pre {
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* 3. Formularios consistentes
   -------------------------------------------------------------------------- */
button,
input,
optgroup,
select,
textarea {
  margin: 0;
  border-radius: 0;
  background: transparent;
  letter-spacing: inherit;
  text-transform: none;
}

button,
input,
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

textarea {
  overflow: auto;
  resize: vertical;
}

select {
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  display: table;
  max-width: 100%;
  padding: 0;
  color: inherit;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

[type="checkbox"],
[type="radio"] {
  width: 1em;
  height: 1em;
  padding: 0;
  border: 1px solid currentColor;
  background-color: #fff;
  vertical-align: -0.125em;
  cursor: pointer;
}

[type="radio"] {
  border-radius: 50%;
}

[type="checkbox"]:checked {
  background-color: currentColor;
  box-shadow: inset 0 0 0 0.2em #fff;
}

[type="radio"]:checked {
  background-color: currentColor;
  box-shadow: inset 0 0 0 0.25em #fff;
}

[type="search"] {
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration,
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-results-button,
[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

::-webkit-file-upload-button {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

::placeholder {
  color: inherit;
  opacity: 0.55;
}

/* Foco visible uniforme y accesible. */
:focus {
  outline: 2px solid #087cbf;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: 0;
}

:focus-visible {
  outline: 2px solid #087cbf;
  outline-offset: 2px;
}

/* 4. Utilidades con degradación compatible
   Las declaraciones antiguas aparecen primero; el estándar queda al final.
   -------------------------------------------------------------------------- */
.displayflex,
.flex,
.compat-flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.compat-flex-column {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.compat-flex-center {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.grid,
.grid-1,
.grid-2,
.grid-3,
.grid-4,
.grid-5,
.grid-6,
.grid-7,
.grid-8,
.compat-grid {
  display: -ms-grid;
  display: grid;
}

.compat-transform {
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}

.compat-transition {
  -webkit-transition: color 0.2s ease, background-color 0.2s ease,
    -webkit-transform 0.2s ease;
  -moz-transition: color 0.2s ease, background-color 0.2s ease,
    -moz-transform 0.2s ease;
  -ms-transition: color 0.2s ease, background-color 0.2s ease,
    -ms-transform 0.2s ease;
  transition: color 0.2s ease, background-color 0.2s ease,
    transform 0.2s ease;
}

.compat-filter {
  -webkit-filter: none;
  -moz-filter: none;
  -ms-filter: none;
  filter: none;
}

.compat-animation {
  -webkit-animation: compat-fade-in 0.25s ease both;
  -moz-animation: compat-fade-in 0.25s ease both;
  -ms-animation: compat-fade-in 0.25s ease both;
  animation: compat-fade-in 0.25s ease both;
}

@-webkit-keyframes compat-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@-moz-keyframes compat-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@-ms-keyframes compat-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes compat-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 5. Accesibilidad, impresión y preferencias del sistema
   -------------------------------------------------------------------------- */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    -moz-animation-duration: 0.01ms !important;
    -ms-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    -moz-animation-iteration-count: 1 !important;
    -ms-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    -moz-transition-duration: 0.01ms !important;
    -ms-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  *,
  *::before,
  *::after {
    color-adjust: exact;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    text-shadow: none !important;
    box-shadow: none !important;
  }
}
