/*
 * Normalización base de EbeneCenter. Sustituye a MDBootstrap, del que solo se usaba esto: mismas reglas
 * esenciales (tomadas del "reboot" de Bootstrap 5) sin los 500 KB de CSS ni los 800 KB de JavaScript.
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
}

p,
ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol,
ul {
    padding-left: 2rem;
}

ol ol, ul ul, ol ul, ul ol {
    margin-bottom: 0;
}

dt { font-weight: 700; }
dd { margin-bottom: 0.5rem; margin-left: 0; }
b, strong { font-weight: bolder; }
small { font-size: 0.875em; }

a {
    color: var(--ec-accent, #0b6f8d);
    text-decoration: none;
}

a:hover {
    color: var(--ec-action-primary-hover, #00536b);
}

img,
svg {
    vertical-align: middle;
}

img {
    max-width: 100%;
}

table {
    caption-side: bottom;
    border-collapse: collapse;
}

th {
    text-align: inherit;
}

label {
    display: inline-block;
}

button {
    border-radius: 0;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
[role="button"] {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    float: left;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0;
    line-height: inherit;
}

legend + * {
    clear: left;
}

summary {
    display: list-item;
    cursor: pointer;
}

hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 0.25;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
