:root {
    --navy: #102340;
    --navy-light: #1b385c;
    --blue: #19558f;
    --ink: #15273e;
    --muted: #485b71;
    --surface: #fff;
    --canvas: #edf3fa;
    --line: #cbd8e6;
    --radius: 0.9rem;
    --space: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    color: var(--ink);
    font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-wrap: anywhere;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6em; line-height: 1.2; }
h1 { font-size: clamp(1.65rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }
p, ul, ol { margin: 0 0 1rem; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid #378ee0; outline-offset: 3px; }
img, video, iframe, svg, embed, object { max-inline-size: 100%; }
img, video { height: auto; vertical-align: middle; }
iframe { border: 0; }
pre { max-inline-size: 100%; overflow: auto; }
table { border-collapse: collapse; max-inline-size: 100%; }
th, td { padding: 0.45rem; border: 1px solid var(--line); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.15rem 0; }
hr + hr { display: none; }
[hidden] { display: none !important; }

.site-header, .footer { background: var(--navy); color: var(--surface); }
.site-header-inner {
    width: min(100% - 2 * var(--space), 78rem);
    margin: auto;
    padding-block: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.7rem 1.4rem;
}
.site-logo { flex: none; display: inline-flex; }
.site-logo img { width: 6rem; border-radius: 0.45rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.65rem;
    color: #eff6ff;
    border-radius: 0.45rem;
    font-size: 0.86rem;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--navy-light); }
.site-content { flex: 1; min-width: 0; padding: var(--space) 0; }
.footer { padding: 1.6rem 0; }
.footer p { margin: 0.25rem 0; }
.footer a { color: #c5e1ff; }
.site-error { display: grid; place-items: center; min-height: 100vh; }
.custom-emoji svg { width: clamp(3rem, 13vw, 8rem); height: auto; vertical-align: middle; }

.container, .container-fluid, .container-md {
    width: 100%;
    max-width: 76rem;
    padding-inline: var(--space);
    margin-inline: auto;
}
:is(.container, .container-fluid, .container-md) :is(.container, .container-fluid, .container-md) { padding-inline: 0; }
.row {
    --gutter: 1.2rem;
    display: flex;
    flex-wrap: wrap;
}
.row > * { width: 100%; min-width: 0; padding-inline: calc(var(--gutter) / 2); }
.row.g-0 { --gutter: 0px; }
.row > .col { flex: 1 1 0; }
.row > .col-auto { width: auto; }
@media (min-width: 48rem) {
    .row > .col-md-3 { width: 25%; }
    .row > .col-md-4 { width: 33.333%; }
    .row > .col-md-5 { width: 41.666%; }
    .row > .col-md-6 { width: 50%; }
    .row > .col-md-7 { width: 58.333%; }
    .row > .col-md-8 { width: 66.666%; }
    .row > .col-md-12 { width: 100%; }
    .order-md-1 { order: 1; }
    .order-md-2 { order: 2; }
    .flex-md-row { flex-direction: row; }
    .p-md-5 { padding: 2rem; }
}
@media (min-width: 62rem) {
    .row > .col-lg-4 { width: 33.333%; }
    .row > .col-lg-6 { width: 50%; }
    .row > .col-lg-10 { width: 83.333%; }
    .d-lg-block { display: block !important; }
    .mb-lg-0 { margin-bottom: 0; }
    .py-lg-5 { padding-block: 2rem; }
}

.card, .article, .blog-post, .jumbotron, .home-panel {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.card { display: flex; flex-direction: column; }
.card-body, .card-footer, .article, .blog-post, .jumbotron, .home-panel { padding: var(--space); }
.card-body { flex: 1; }
.card-footer { border-top: 1px solid var(--line); }
.card-img-top { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.card-text:last-child { margin-bottom: 0; }
.alert { padding: 0.85rem 1rem; border-radius: 0.55rem; }
.alert-primary { background: #dceafb; color: var(--navy); }
.blockquote, blockquote { margin: 0 0 1rem; border-inline-start: 3px solid var(--line); padding-inline-start: 1rem; }
.embed-responsive { max-inline-size: 100%; }
iframe.embed-responsive { width: 100%; }
.product-item-img img { max-inline-size: 100%; }
.icono-wrap { flex-wrap: wrap; gap: 0.75rem; }
.icono-wrap > div { min-width: 0; max-width: 100%; }

button, input, select, textarea { font: inherit; }
input, select, textarea { max-width: 100%; }
.form-group { margin-bottom: 1rem; }
.form-control, .custom-select, input:not([type]), input[type="email"], textarea {
    max-width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #8499b1;
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--ink);
}
.form-control, .custom-select { display: block; width: 100%; }
.form-text { display: block; font-size: 0.9rem; }
.btn {
    display: inline-block;
    max-width: 100%;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--blue);
    border-radius: 0.55rem;
    background: var(--surface);
    color: var(--blue);
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary, .btn-success, .btn-secondary { background: var(--blue); color: var(--surface); }
.btn-secondary { background: var(--navy-light); border-color: var(--navy-light); }
.btn:hover:not(:disabled) { background: var(--navy); color: var(--surface); }
.btn:disabled { opacity: 0.8; cursor: default; }
.btn-lg { padding: 0.7rem 1rem; }
.btn-sm { padding: 0.3rem 0.55rem; font-size: 0.9rem; }
.btn-group { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; }

.home-panel { margin-bottom: var(--space); }
.home-promo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--space); }
.home-promo-video { text-align: center; }
.home-promo video { width: 100%; aspect-ratio: 16 / 9; background: var(--navy); border-radius: 0.6rem; }
.home-search { text-align: center; }
.home-search h1 { font-size: clamp(1.35rem, 3vw, 2.1rem); }
.home-search h2 { margin: 1rem 0 0; font-size: 1rem; color: var(--muted); }
.home-promo a, .seram-text, .radiopedia-text, .radiologyassistant-text { color: var(--blue); }
.featurette { align-items: center; padding-block: var(--space); border-bottom: 1px solid var(--line); row-gap: 1rem; }
.featurette-image { display: block; border-radius: var(--radius); }
.home-cards { padding-top: var(--space); row-gap: var(--space); }
.home-cards h2 { margin-top: 0.75rem; }
.home-cards img { border-radius: 0.6rem; }

.aviso-cookies, .fondo-aviso-cookies { display: none; position: fixed; }
.aviso-cookies.activo, .fondo-aviso-cookies.activo { display: block; }
.aviso-cookies {
    z-index: 11;
    left: 1rem;
    bottom: 1rem;
    width: min(22rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    overflow: auto;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1rem 3rem #10234035;
    text-align: center;
}
.aviso-cookies .galleta { width: 4rem; height: 4rem; object-fit: cover; border-radius: 50%; margin-bottom: 0.6rem; }
.aviso-cookies .boton { display: block; width: 100%; margin-bottom: 0.7rem; }
.fondo-aviso-cookies { z-index: 10; inset: 0; background: #10234066; }

.d-none { display: none !important; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }
.flex-column { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-stretch { align-items: stretch; }
.align-self-center { align-self: center; }
.align-self-start { align-self: flex-start; }
.justify-center, .justify-content-center { justify-content: center; }
.justify-content-start { justify-content: flex-start; }
.justify-content-between { justify-content: space-between; }
.w-100 { width: 100%; }
.w-50 { width: min(100%, 35rem); }
.w-75 { width: min(100%, 53rem); }
.mx-auto { margin-inline: auto; }
.mr-auto { margin-right: auto; }
.mt-auto { margin-top: auto; }
.mt-0 { margin-top: 0; }
.mt-3, .my-3 { margin-top: 0.85rem; }
.my-3, .mb-3 { margin-bottom: 0.85rem; }
.mt-4 { margin-top: 1.25rem; }
.mt-5, .mt-6, .my-5 { margin-top: var(--space); }
.my-5, .mb-5 { margin-bottom: var(--space); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.85rem; }
.p-4 { padding: 1.25rem; }
.p-5 { padding: var(--space); }
.px-0 { padding-inline: 0; }
.px-4 { padding-inline: 1.25rem; }
.pb-3 { padding-bottom: 0.85rem; }
.pt-5 { padding-top: var(--space); }
.py-5 { padding-block: var(--space); }
.position-relative { position: relative; }
.position-static { position: static; }
.overflow-hidden { overflow: hidden; }
.rounded { border-radius: 0.55rem; }
.border { border: 1px solid var(--line); }
.border-top { border-top: 1px solid var(--line); }
.border-2 { border-width: 2px; }
.shadow-sm, .box-shadow { box-shadow: 0 0.4rem 1.2rem #10234012; }
.bg-dark { background: var(--navy); }
.bg-faded { background: var(--canvas); }
.bg-mi-color { background: #deebfa; }
.text-center { text-align: center; }
.text-primary { color: var(--blue); }
.text-muted, .text-body-secondary { color: var(--muted); }
.text-dark, .text-body { color: var(--ink); }
.text-white { color: var(--surface); }
.text-success { color: #1c6248; }
.text-decoration-none { text-decoration: none; }
.fw-light { font-weight: 400; }
.fw-normal { font-weight: 500; }
.fw-semibold { font-weight: 650; }
.fw-bold { font-weight: 750; }
.lh-1 { line-height: 1.15; }
.fs-1, .display-5 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.display-4 { font-size: clamp(1.65rem, 4.5vw, 3rem); }
.display-3 { font-size: clamp(1.75rem, 5vw, 3.5rem); }
.display-1 { font-size: clamp(3rem, 14vw, 8rem); }
.fs-4, .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); }
.fs-5 { font-size: 1.05rem; }
.opacity-75 { opacity: 0.85; }

@media (max-width: 47.99rem) {
    .site-header-inner { flex-direction: column; align-items: stretch; }
    .site-logo { align-self: center; }
    .site-logo img { width: 4.5rem; }
    .site-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-nav a { padding-inline: 0.25rem; font-size: 0.8rem; }
    .home-promo { grid-template-columns: 1fr; }
    .row > .col { flex-basis: 100%; }
}
