/* Estilos globales */
:root {
    --fuenteRoboto: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --fuenteQuicksand: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --fuenteSansFlex: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --blanco: #ffffff;
    --negro: #000000;
    --azul: #0000ff;
    --rojo: #ff0000;
    --amarillo: #ffff00;
    --verde: #008000;
    --anaranjado: #ff4500;
    --darkgray: #a9a9a9;
    --grayrow: #f4f5f7;
    --gray: #808080;
    --graytitulo: #656161;
    --celestelink: rgba(6, 123, 239, 0.8);
    --celestesesion: rgba(48, 136, 224, 0.9);
    --blancotransparente: rgba(250, 250, 250, 0.8);
    --blancoborde: #c7c7c7;
    --blancoproceso: #f3f3f3;
    --blancomenumobilenlance: #1f1f1f;
    --rojosalida: rgba(255, 0, 0, 0.9);
    --negrocontenido: #181818;
    --negrosombra: rgba(0, 0, 0, 0.45);
    --negrocapamenumobil: rgba(0, 0, 0, 0.5);
    --negromenumobilcontenido: #1c1c1c;
    --griscontenido: #222222;
    --grisScrollbar: #f1f1f1;
    --grisScrollbarthumb: #888888;
    --grisScrollbarhover: #555555;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* 1rem = 10px */
}

* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

*::selection {
    background-color: var(--azul);
    color: var(--blanco);
}

body {
    font-family: var(--fuenteQuicksand);
    font-size: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 'header' 'main' 'footer';
    height: 100vh;
}

/* Estilos scrollbar pagina */
::-webkit-scrollbar {
    width: 0.8rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--grisScrollbarthumb);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--grisScrollbarhover);
}

::-webkit-scrollbar-track {
    box-shadow: var(--grisScrollbar);
}

/* Estilos encabezado pagina */
header {
    grid-area: header;
}

header h1 {
    font-size: 3.5rem;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

/* Estilos menu pagina */
nav {
    display: flex;
    gap: 1rem;
    padding: 0 2.5rem;
    margin-top: 11.4rem;
    width: 100%;
    height: stretch;
    position: absolute;
    transform: translateY(-200%);
    background-color: var(--blanco);
    overflow-y: auto;
    z-index: 100;
}

nav.show {
    transform: translateY(0);
}

nav.show .navtitulo h2.tituloselect::before {
    content: "■";
    position: absolute;
    left: 9px;
    font-size: 1.4rem;
    color: var(--graytitulo);
}

nav .navtitulo {
    width: 30%;
}

nav .navtitulo h2 {
    cursor: pointer;
    margin-bottom: 0;
    font-size: 2rem;
    width: fit-content;
    font-family: var(--fuenteSansFlex);
    font-weight: normal;
}

nav .navtitulo h2:first-child {
    margin-top: 0;
}

nav .navtitulo :not(h2:first-child) {
    margin-top: 3rem;
}

nav .navdetalle {
    width: 70%;
}

nav .navdetalle>div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 6rem;
}

nav .navdetalle>div div:nth-of-type(1) {
    width: 32%;
}

nav .navdetalle>div div:nth-of-type(1) h3 {
    width: fit-content;
    margin-top: 0;
}

nav .navdetalle>div div:nth-of-type(2) {
    width: 68%;
}

nav .navdetalle>div div:nth-of-type(2) ul {
    list-style: none;
}

nav .navdetalle>div div:nth-of-type(2) ul li {
    width: fit-content;
}

nav .navdetalle>div div:nth-of-type(2) ul li a {
    text-decoration: none;
    color: var(--negro);
    margin-bottom: 1rem;
    display: block;
    text-transform: capitalize;
}

nav .navdetalle>div div:nth-of-type(2) ul li a:hover {
    font-weight: bold;
    color: var(--azul);
}

/* Estilos laterales pagina */
.asidemenu {
    position: fixed;
    top: 9rem;
    left: 2.5rem;
    font-size: 1.6rem;
}

.asidemenu .asidedivmenu div {
    cursor: pointer;
}

.asidemenu .asidedivmenu div span {
    display: block;
    border-bottom: 1px solid var(--negro);
    width: 5rem;
    transition: transform 0.2s ease-in-out;
}

.asidemenu .asidedivmenu div span:nth-of-type(2) {
    padding-top: 1.2rem;
}

.asidemenu.active .asidedivmenu div {
    position: relative;
}

.asidemenu.active .asidedivmenu div span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 3rem;
    transition: transform 0.3s ease-in-out;
}

.asidemenu.active .asidedivmenu div span:nth-of-type(1) {
    transform: rotate(-45deg);
}

.asidemenu.active .asidedivmenu div span:nth-of-type(2) {
    transform: rotate(45deg);
    padding-top: unset;
}

.asidebusqueda {
    position: fixed;
    top: 8rem;
    right: 2.5rem;
    text-align: right;
    font-size: 1.6rem;
}

.asidebusqueda .asidedivbusqueda a {
    text-decoration: none;
    color: var(--negro);
}

.asidebusqueda .asidedivbusqueda span a {
    display: block;
    border-bottom: 1px solid var(--negro);
    width: 10rem;
    padding-bottom: 0.8rem;
    cursor: pointer;
}

.asidecestasesion {
    position: fixed;
    top: 14rem;
    right: 2.5rem;
    text-align: right;
    font-size: 1.6rem;
    z-index: 100;
}

.asidecestasesion .asidedivcestasesion__cesta span:nth-of-type(2) {
    border-bottom: 1px solid var(--negro);
    border-right: 1px solid var(--negro);
    border-left: 1px solid var(--negro);
    padding: 0 0.7rem;
    font-weight: bold;
}

.asidecestasesion .asidedivcestasesion__sesion {
    margin-top: 1.8rem;
}

.asidecestasesion .asidedivcestasesion__consultalicencia {
    margin-top: 2.1rem;
}

.asidecestasesion .asidedivcestasesion__cesta span a,
.asidecestasesion .asidedivcestasesion__sesion span a,
.asidecestasesion .asidedivcestasesion__consultalicencia span a {
    text-decoration: none;
    color: var(--negro);
}

.asidemoneda {
    position: fixed;
    top: 12.7rem;
    left: 2.5rem;
    text-align: left;
    font-size: 1.6rem;
}

.asidemoneda label {
    display: block;
    margin-bottom: 5px;
}

.asidemoneda select {
    padding: 3px;
}

/* Estilos contenido pagina */
main {
    grid-area: main;
}

main>a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    margin: 0 auto;
}

main>a img {
    margin: 0 auto;
    padding: 1rem;
    width: 250px;
    height: 75px;
    transition: transform 0.3s ease;
}

main>a img.ocultar {
    display: none;
}

main>a img:hover {
    transform: scale(1.05);
}

main>div,
main>section {
    padding: 0 2.5rem;
    margin-top: 3.1rem;
}

main .sectionproductointeres>h3 {
    text-transform: uppercase;
    font-size: 1.4rem;
}

main .sectionproductointeres>div {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 4rem 0 3rem 0;
}

main .sectionproductointeres>div>div {
    width: 20rem;
    padding: 5rem 1.2rem;
}

main .sectionproductointeres>div>div a {
    text-decoration: none;
    color: var(--negro);
}

main .sectionproductointeres>div>div a:hover {
    text-decoration: underline;
}

main .sectionproductointeres>div>div a img {
    display: block;
    margin: 0 auto 1.5rem auto;
}

main .sectionproductointeres>div>div span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.3rem;
    text-transform: uppercase;
}

/* Estilos pie de pagina */
footer {
    grid-area: footer;
    font-family: var(--fuenteSansFlex);
}

footer>div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    margin-top: 4rem;
}

footer>div div a {
    text-decoration: none;
    color: var(--negro);
}

footer>div div a:hover {
    font-weight: bold;
}

footer>h4 {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

/* Estilos elementos pagina */
h1,
h2,
h3,
h4 {
    margin: 2rem 0;
}

button,
select {
    outline: none;
    cursor: pointer;
}

table {
    width: 100%;
    margin: 0 auto;
    font-size: 1.7rem;
    border-collapse: separate;
    border-spacing: 0;
}

table caption {
    padding: 1rem 0;
    border-top: 1px solid var(--darkgray);
}

table thead tr th {
    border-top: 1px solid var(--darkgray);
    border-bottom: 1px solid var(--darkgray);
    border-left: 1px solid var(--darkgray);
    background-color: var(--darkgray);
    padding: 1rem 0;
}

table thead tr th:first-of-type {
    border-radius: 10px 0 0 0;
}

table thead tr th:last-of-type {
    border-radius: 0 10px 0 0;
    border-right: 1px solid var(--darkgray);
}

table tbody tr:hover {
    background-color: var(--darkgray);
}

table tbody tr td {
    width: 50%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--darkgray);
    border-left: 1px solid var(--darkgray);
}

table tbody tr td:last-of-type {
    border-right: 1px solid var(--darkgray);
}

table tbody tr:last-of-type td:first-of-type {
    border-radius: 0 0 0 10px;
}

table tbody tr:last-of-type td:last-of-type {
    border-radius: 0 0 10px 0;
}

/* Estilos interface procesando */
.interfaceprocesando {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--blancoproceso);
    transition: all 1.5s ease;
    visibility: visible;
    opacity: 1;
    display: grid;
    justify-items: center;
    align-content: center;
    z-index: 300;
}

.interfaceprocesando__mensaje {
    font-weight: 600;
    font-size: 1.8rem;
    font-family: var(--fuenteRoboto);
}

.interfaceprocesando__animacion,
.interfaceprocesando__animacion::before,
.interfaceprocesando__animacion::after {
    border-radius: 50%;
    width: 3.2rem;
    height: 3.2rem;
    animation: cargando 1.5s infinite ease-in-out;
}

@keyframes cargando {

    0%,
    80%,
    100% {
        box-shadow: 0 3.2rem 0 -2rem;
    }

    40% {
        box-shadow: 0 3.2rem 0 0;
    }
}

.interfaceprocesando__animacion {
    position: relative;
    color: var(--celestesesion);
    font-size: 2rem;
    margin-left: -1.5rem;
    animation-delay: 0.16s;
}

.interfaceprocesando__animacion::before,
.interfaceprocesando__animacion::after {
    position: absolute;
    content: '';
}

.interfaceprocesando__animacion::before {
    left: -4.2rem;
    animation-delay: 0.32s;
}

.interfaceprocesando__animacion::after {
    left: 4.2rem;
}

/* Estilos menu mobile sistema */
.menumobile__contenedor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--negrocapamenumobil);
    transition: all 500ms ease;
    opacity: 0;
    visibility: hidden;
    z-index: 300;
}

.menumobile__contenido {
    position: relative;
    max-width: 120rem;
    width: 90%;
    height: 100%;
    background-color: var(--negromenumobilcontenido);
    color: var(--blanco);
    transition: transform 500ms ease;
    transform: translateX(-100%);
}

.menumobile__contenido__enlaces {
    padding-top: 4rem;
}

.menumobile__contenido__enlaces ul {
    list-style: none;
}

.menumobile__contenido__enlaces ul li a {
    display: block;
    padding: 2rem;
    color: var(--blanco);
    font-family: var(--fuenteQuicksand);
    border-left: 5px solid transparent;
    transition: border-left 400ms ease;
}

.menumobile__contenido__enlaces ul li a:hover {
    border-left: 5px solid var(--blancoborde);
    background-color: var(--blancomenumobilenlance);
}

.menumobile__contenido__cerrar {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Estilos encabezado sistema */
.contenido__header {
    line-height: 3rem;
}

@media screen and (max-width: 768px) {
    .contenido__header {
        display: block;
        height: 18.9rem;
    }
}

.contenido__header__sesion {
    padding: 0.5rem 0;
    background-color: var(--celestesesion);
    color: var(--blanco);
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
}

.contenido__header__sesion p {
    font-family: var(--fuenteQuicksand);
    font-size: 1.7rem;
    letter-spacing: 0.05rem;
    display: inline-block;
    margin: 0;
    padding: 0 0.5rem;
}

.contenido__header__sesion>div {
    text-align: left;
    margin-left: 2rem;
}

.contenido__header__sesion>p {
    visibility: hidden;
}

@media screen and (max-width: 768px) {
    .contenido__header__sesion p {
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
    }
}

.contenido__header__empresa {
    color: var(--negro);
    max-width: 100%;
    text-wrap: nowrap;
    overflow: hidden;
    margin-top: 2.5rem;
    padding: 0 2.5rem 1rem 2.5rem;
    text-align: center;
}

.contenido__header__empresa h1 {
    font-size: 3.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Arial, Helvetica, sans-serif;
    display: inline;
}

@media screen and (max-width: 768px) {
    .contenido__header__empresa {
        display: flex;
        flex-direction: column-reverse;
        justify-content: start;
        max-width: unset;
    }

    .contenido__header__empresa h1 {
        margin-left: unset;
        line-height: 4rem;
        text-wrap: wrap;
        white-space: normal;
        text-align: center;
    }
}

.contenido__header__empresa img {
    margin: 0 auto;
    padding: 1rem;
    width: 250px;
    height: 75px;
    transition: transform 0.3s ease;
    display: block;
    margin-top: 2rem;
}

.contenido__header__empresa img:hover {
    transform: scale(1.05);
}

.contenido__header__enlaces {
    position: absolute;
    right: 2rem;
    top: 7rem;
}

.contenido__header__enlaces ul {
    list-style: none;
}

.contenido__header__enlaces ul li {
    display: inline-block;
}

.contenido__header__enlaces ul li a {
    padding: 1.3rem;
    color: var(--blanco);
    font-size: 1.5rem;
    font-family: var(--fuenteRoboto);
    letter-spacing: 0.1rem;
    background-color: var(--celestelink);
    border-radius: 2rem;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .contenido__header__enlaces {
        display: none;
    }
}

.contenido__header__enlaces__menu ul li {
    margin-right: 0.5rem;
}

.contenido__header__enlaces__menu ul li a {
    background-color: var(--rojosalida);
}

/* Estilos contenido sistema */
.contenido__body {
    margin-top: 3rem;
}

@media screen and (max-width: 768px) {
    .contenido__body {
        margin-top: 4.3rem;
    }
}

.contenido__body h2 {
    text-align: center;
    padding: 0 2.5rem;
}

.contenido__body p {
    text-align: justify;
    margin: 2rem 0;
    padding: 0 2.5rem;
    font-size: 1.8rem;
    font-family: var(--fuenteQuicksand);
    word-spacing: 0.2rem;
}

.contenido__body p a {
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .contenido__body p {
        margin-left: 1.4rem;
        margin-right: 1.7rem;
    }
}

.contenido__body__menu {
    margin-top: 0rem;
}

.contenido__body__contenedorfondo {
    display: flex;
    justify-content: center;
    letter-spacing: 0.08rem;
}

.contenido__body__contenidofondo {
    margin: 3.7rem 1rem;
    padding: 3.5rem 3.5rem 0.5rem 3.5rem;
    border-radius: 1.5rem;
    width: 42rem;
    background-color: var(--griscontenido);
}

@media screen and (max-width: 768px) {
    .contenido__body__contenidofondo {
        margin: 0;
        padding: 3.5rem 2.5rem 0.5rem 2.5rem;
    }
}

.contenido__body__contenidofondo h4 {
    text-align: center;
    color: var(--blanco);
    margin: 0;
}

.contenido__body__contenidofondo div {
    margin: 2.7rem 0;
}

.contenido__body__contenidofondo div button {
    background-color: var(--rojo);
    color: var(--blanco);
    border: none;
    padding: 1.4rem;
    width: 100%;
    font-size: 1.65rem;
    border-radius: 2rem;
    text-overflow: ellipsis;
    overflow: hidden;
    text-wrap: nowrap;
    font-family: var(--fuenteQuicksand);
}

/* Estilos mensaje modal */
.modal__contenedor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--negrocapamenumobil);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 160ms ease;
    transform: translateY(-100%);
    visibility: hidden;
    z-index: 200;
}

.modal__contenedor.hluna-modal-activa {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
    visibility: visible;
}

.modal__contenido {
    max-width: 120rem;
    width: 90%;
    height: auto;
    max-height: 90%;
    overflow-y: auto;
    margin: 0 auto;
    background-color: var(--negrocontenido);
    box-shadow: 0 0.01rem 6rem 0 var(--negrosombra) inset;
    border-radius: 0 0 2.5rem 2.5rem;
    display: grid;
    justify-content: center;
    align-items: center;
}

.modal__contenido.mensaje {
    border-radius: 0 0 1rem 1rem;
    grid-template-columns: 1fr;
}

@media screen and (max-width: 768px) {
    .modal__contenido {
        width: 98%;
    }
}

.modal__contenido__header {
    text-align: center;
    color: var(--blanco);
    font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
    .modal__contenido__header h2 {
        margin: 2.5rem 0 1rem 0;
    }
}

.modal__contenido__body {
    margin: 0 2rem;
}

.modal__contenido__body div {
    margin: 1.8rem 0;
    color: var(--blanco);
}

.modal__contenido__body div label {
    width: 10rem;
    font-size: 1.7rem;
    display: inline-block;
    font-family: var(--fuenteQuicksand);
}

.modal__contenido__footer button {
    padding: 0.7rem 1rem;
    margin-right: 0.2rem;
    outline: none;
    border-radius: 0.7rem;
    border: 0.01rem solid var(--negrocapamenumobil);
    letter-spacing: 0.04rem;
    font-weight: bold;
}

.modal__contenido__footer button:hover,
.modal__contenido__footer button:focus,
.modal__contenido__footer button:active {
    outline: 0.1rem solid var(--amarillo);
    outline-offset: -0.1rem;
}

.modal__contenido__body.mensaje div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    gap: 1rem;
}

.modal__contenido__body.mensaje div img {
    width: 5.2rem;
}

.modal__contenido__body.mensaje div label {
    width: 98%;
    text-align: center;
}

.modal__contenido__footer {
    text-align: center;
}

.modal__contenido__footer button {
    padding: 0.8rem 1.1rem;
    color: var(--blanco);
    font-family: var(--fuenteQuicksand);
    width: 15rem;
    margin: 2rem 0;
    background-color: var(--verde);
}

.modal__contenido__footer button:last-of-type {
    background-color: var(--rojo);
}

@media screen and (max-width: 768px) {
    .modal__contenido__footer button {
        width: 40%;
    }
}

.modal__contenido__footer.mensaje button {
    background-color: var(--verde);
}

/* Experiencia transversal HLUNA: carga y mensajes del sistema */
.interfaceprocesando {
    align-content: unset;
    align-items: center;
    background: #ffffff !important;
    background-image: none !important;
    color: #050607;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    opacity: 1;
    transition: opacity 240ms ease, visibility 240ms ease;
    visibility: visible;
    z-index: 1000;
}

.interfaceprocesando::before {
    content: "HLUNA";
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(4.6rem, 7vw, 8.2rem);
    font-weight: 900;
    letter-spacing: -0.075em;
    line-height: 0.82;
    order: 1;
}

.interfaceprocesando::after {
    content: "INGENIERÍA DIGITAL";
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(0.82rem, 1vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    margin: 1.25rem 0 3rem;
    order: 2;
    padding-left: 0.3em;
}

.interfaceprocesando__mensaje {
    color: rgba(5, 6, 7, 0.68);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0 0 1.2rem;
    order: 3;
    text-align: center;
    text-transform: uppercase;
}

.interfaceprocesando__animacion,
.interfaceprocesando__animacion::before,
.interfaceprocesando__animacion::after {
    animation: none;
    border-radius: 0;
    box-shadow: none;
    height: 0.25rem;
}

.interfaceprocesando__animacion {
    background: #ffffff;
    border: 1px solid #050607;
    color: #050607;
    margin: 0;
    order: 4;
    overflow: hidden;
    position: relative;
    width: min(24rem, 62vw);
}

.interfaceprocesando__animacion::before {
    animation: hluna-carga 1.15s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    background: #050607;
    content: "";
    inset: 0 auto 0 -42%;
    position: absolute;
    width: 42%;
}

.interfaceprocesando__animacion::after {
    display: none;
}

@keyframes hluna-carga {
    to { left: 100%; }
}

.modal__contenedor.mensaje {
    align-items: center;
    backdrop-filter: blur(7px);
    background: rgba(5, 6, 7, 0.64);
    display: flex;
    justify-content: center;
    padding: 2rem;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 160ms ease;
    z-index: 1100;
}

.modal__contenedor.mensaje .modal__contenido.mensaje {
    background: #ffffff;
    border: 1px solid rgba(5, 6, 7, 0.22);
    border-radius: 0;
    box-shadow: 0 2.5rem 8rem rgba(0, 0, 0, 0.24);
    color: #050607;
    display: block;
    max-height: calc(100vh - 4rem);
    max-width: 46rem;
    overflow-y: auto;
    padding: clamp(2.4rem, 4vw, 4rem);
    width: 100%;
}

.modal__contenedor.mensaje .modal__contenido__header {
    color: #050607;
    text-align: center;
}

.modal__contenedor.mensaje .modal__contenido__header h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 0 0 2.2rem;
    text-transform: uppercase;
}

.modal__contenedor.mensaje .modal__contenido__body {
    margin: 0;
}

.modal__contenedor.mensaje .modal__contenido__body.mensaje div {
    color: #050607;
    gap: 1.6rem;
}

.modal__contenedor.mensaje .modal__contenido__body.mensaje div img {
    height: 5.2rem;
    object-fit: contain;
    width: 5.2rem;
}

.modal__contenedor.mensaje .modal__contenido__body.mensaje div label {
    color: #050607;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1.16;
    width: 100%;
}

.modal__contenedor.mensaje .modal__contenido__footer button,
.modal__contenedor.mensaje .modal__contenido__footer button:last-of-type,
.modal__contenedor.mensaje .modal__contenido__footer.mensaje button {
    background: #050607 !important;
    border: 1px solid #050607;
    border-radius: 0;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin: 2.8rem 0 0;
    min-height: 4.8rem;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
    width: min(22rem, 100%);
}

.modal__contenedor.mensaje .modal__contenido__footer button:hover,
.modal__contenedor.mensaje .modal__contenido__footer button:focus-visible {
    background: #ffffff !important;
    color: #050607;
    outline: 0;
}

@media (max-width: 600px) {
    .modal__contenedor.mensaje {
        padding: 1.2rem;
    }

    .modal__contenedor.mensaje .modal__contenido.mensaje {
        padding: 2.5rem 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .interfaceprocesando,
    .modal__contenedor.mensaje {
        transition: none;
    }

    .interfaceprocesando__animacion::before {
        animation-duration: 2.4s;
    }
}

/*
 * Legibilidad global HLUNA · 2026-08-28
 *
 * Todas las vistas HTML cargan esta hoja. Estas reglas elevan únicamente
 * textos auxiliares, controles y datos que antes podían quedar entre 7 y
 * 12 px, y refuerzan los grises sobre fondos claros. Los encabezados de
 * contenido, cifras destacadas, iconos y mensajes principales conservan
 * su escala visual original.
 */
@layer hluna-legibility {
    :root {
        --darkgray: #555555;
        --gray: #4a4a4a;
        --graytitulo: #333333;
    }

    html body {
        color: #111111;
        font-size: 1.6rem;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    body:is(
        .public-home,
        .buyer-page,
        .buyer-auth,
        .catalog-page,
        .buyer-dashboard,
        .product-admin,
        .admin-home
    ) :where(p, li):not(.modal__contenedor *) {
        font-size: 1.5rem !important;
        line-height: 1.55 !important;
    }

    body.public-home--premium.public-home--saas.public-home--cinematic .public-home__license-note p {
        font-size: clamp(2.4rem, 2.5vw, 3.4rem) !important;
        line-height: 1.25 !important;
    }

    body:is(
        .public-home,
        .buyer-page,
        .buyer-auth,
        .catalog-page,
        .buyer-dashboard,
        .product-admin,
        .admin-home
    ) :where(label, small, em, caption, td, th):not(.modal__contenedor *) {
        font-size: 1.45rem !important;
        line-height: 1.5 !important;
    }

    body:is(
        .public-home,
        .buyer-page,
        .buyer-auth,
        .catalog-page,
        .buyer-dashboard,
        .product-admin,
        .admin-home
    ) :where(a, button, input, select, textarea, option):not(.modal__contenedor *) {
        font-size: 1.5rem !important;
        line-height: 1.35 !important;
    }

    body:is(
        .public-home,
        .buyer-page,
        .buyer-auth,
        .catalog-page,
        .buyer-dashboard,
        .product-admin,
        .admin-home
    ) :where(label, a, button):not(.modal__contenedor *) > span:not([aria-hidden="true"]):not([class*="fa-"]) {
        font-size: inherit !important;
        line-height: inherit !important;
    }

    body:is(
        .public-home,
        .buyer-page,
        .buyer-auth,
        .catalog-page,
        .buyer-dashboard,
        .product-admin,
        .admin-home
    ) :where(p, li, label, small, em, caption, td, th):not(.modal__contenedor *) {
        color: color-mix(in srgb, currentColor 82%, #050607) !important;
    }

    :where(
        .interfaceprocesando__mensaje,
        .public-home__control-label,
        .public-home__payment-status,
        .buyer-shell__menu-label,
        .buyer-auth__eyebrow,
        .sectionlogin__intro,
        .catalog-page__eyebrow,
        .catalog-page__clear,
        .catalog-card__description-label,
        .catalog-card__includes-label,
        .moneda-referencia,
        .producto-salir-sistema,
        .producto-seleccionar-todos
    ) {
        font-size: 1.4rem !important;
        line-height: 1.45 !important;
    }

    :where(
        .interfaceprocesando__mensaje,
        .buyer-auth__eyebrow,
        .sectionlogin__intro,
        .catalog-page__eyebrow,
        .catalog-card__description-label,
        .catalog-card__includes-label
    ) {
        color: color-mix(in srgb, currentColor 80%, #050607) !important;
    }

    .catalog-page__intro > div > span,
    .catalog-page__results-head > span,
    .catalog-card__eyebrow > span,
    .catalog-card__price > span,
    .buyer-auth__benefits > span,
    .google-auth__separator > span,
    .buyer-page--productodetalle .spanañadir,
    .buyer-page--productodetalle .spandetalle,
    .buyer-page--cesta main span,
    .buyer-page--cesta main strong,
    .buyer-page--cesta main output,
    .buyer-dashboard main span,
    .product-admin main span,
    .product-admin aside span,
    .admin-home :where(.editorial-kicker, .editorial-index) {
        font-size: 1.4rem !important;
        line-height: 1.45 !important;
    }

    .catalog-page__intro > div > span,
    .catalog-page__results-head > span,
    .catalog-card__eyebrow > span,
    .catalog-card__price > span,
    .google-auth__separator > span,
    .buyer-page--cesta main span,
    .buyer-page--cesta main strong,
    .buyer-page--cesta main output,
    .product-admin main span,
    .product-admin aside span,
    .admin-home :where(.editorial-kicker, .editorial-index) {
        color: color-mix(in srgb, currentColor 82%, #050607) !important;
    }

    body.public-home--premium:not(.catalog-page):not(.buyer-auth) :where(main, footer) span:not([aria-hidden="true"]):not([class*="fa-"]) {
        font-size: 1.5rem !important;
        line-height: 1.45 !important;
        color: color-mix(in srgb, currentColor 82%, #050607) !important;
    }

    .buyer-page :where(.sectionproductointeres > h3),
    .buyer-page--estadopago main > h2,
    .buyer-page--estadopago main > h3 {
        font-size: 1.5rem !important;
        line-height: 1.45 !important;
    }

    .product-admin header h1 {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
    }

    header :where(a, button, label),
    nav :where(a, button, label),
    footer :where(a, button, label, h4) {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
    }

    header span:not([aria-hidden="true"]):not(.public-home__sr-only),
    .product-admin .modal__contenedor button {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
    }

    .modal__contenedor.mensaje .modal__contenido__header h2,
    .modal__contenedor.mensaje .modal__contenido__footer button {
        font-size: 1.4rem !important;
    }

    input::placeholder,
    textarea::placeholder {
        color: #555555 !important;
        opacity: 1;
    }

    @media (max-width: 768px) {
        html body {
            font-size: 1.6rem;
        }

        body:is(
            .public-home,
            .buyer-page,
            .buyer-auth,
            .catalog-page,
            .buyer-dashboard,
            .product-admin,
            .admin-home
        ) :where(input, select, textarea) {
            font-size: 1.6rem !important;
        }

        body.public-home--premium .public-home__controlbar .asidebusqueda .asidedivbusqueda span a {
            font-size: 0 !important;
        }

        body.public-home--premium .public-home__controlbar .asidecestasesion {
            height: 7.2rem !important;
        }

        body.public-home--premium .public-home__controlbar .asidecestasesion .asidedivcestasesion__cesta span:first-child a,
        body.public-home--premium .public-home__controlbar .asidecestasesion .asidedivcestasesion__sesion span a,
        body.public-home--premium .public-home__controlbar .asidecestasesion .asidedivcestasesion__consultalicencia span a {
            font-size: 1.4rem !important;
            letter-spacing: 0.03em !important;
            line-height: 1.2 !important;
            overflow: visible !important;
            padding: 0 0.35rem !important;
            text-overflow: clip !important;
            white-space: normal !important;
        }
    }
}
/* Mantiene estable el espacio de la cuenta hasta resolver la cookie de sesión.
   Evita mostrar "Iniciar sesión" durante unos milisegundos a un cliente activo. */
html:not(.hluna-auth-ready) a#login {
    visibility: hidden !important;
    pointer-events: none !important;
}

a#login {
    min-inline-size: 8.5rem;
}

@media (max-width: 760px) {
    a#login {
        min-inline-size: 0;
    }
}
