#sidebar{
    display: flex;
    flex-direction:column;
    gap:30px;
}

.blog-header__search input[type=text]{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.35);
}

#simulador {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 20px;
    background-color:#fff;
    padding:30px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.35);
    border-radius: 25px;
}

#simulador>a {
    font-size: 13px;
    font-weight: 500;
}

#simulador label {
    color: var(--c-secondary);
}

#simulador .form-row {
    display: flex;
    flex-direction: column;
}

#simulador .form-row>label {
    font-size: 15px;
    font-weight: 500;
}

#simulador .form-row.alt {
    margin-top: -20px;
    margin-bottom: -10px;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

#simulador .mostrar-mensaje {
    text-align: center;
}

#simulador .mostrar-mensaje:hover {
    color: var(--c-secondary);
}

#simulador.coupon-applied .prices {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    justify-content: center;
    margin-top: 6px;
}

#simulador:not(.coupon-applied) .prices [data-rel*="-cupon"] {
    display: none;
}

#simulador.coupon-applied .compra-venta input:checked+label>.prices>[data-rel*="-cupon"] {
    display: inline-block;
}

#simulador.coupon-applied .compra-venta input:not(:checked)+label>.prices> :is([data-rel="compra"], [data-rel="venta"]) {
    display: none;
}

#simulador.coupon-applied .prices :is([data-rel="compra"], [data-rel="venta"]) {
    color: #ff3228;
    text-decoration: line-through;
}

#simulador.coupon-applied .cupon input {
    pointer-events: none;
}

#simulador.coupon-applied .cupon,
#simulador.coupon-applied .cupon input,
#simulador.coupon-applied .cupon button {
    cursor: not-allowed;
}

#simulador.coupon-applied .cupon button {
    opacity: .8;
}

.compra-venta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 6px !important;
    background: #FFFFFF !important;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.25) !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
}

.compra-venta input {
    display: none;
}

.compra-venta input+label {
    margin: 0 !important;
    padding: 14px 10px !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    flex-direction: row;
    align-items: center;
}

.coupon-applied .compra-venta input+label {
    gap: 0;
    flex-direction: column;
}

.compra-venta input:checked+label {
    background-color: #00DA5A;
    color: #fff !important;
}

.tipo-moneda .form-row__field {
    position: relative;
    display: grid;
    grid-template-columns: 42px auto 42px;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.25);
    transition: all .2s;
}

.cupon .form-row__field {
    position: relative;
    display: grid;
    grid-template-columns: auto 100px;
    border-radius: 14px;
    height: 42px;
    overflow: hidden;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.25);
    transition: all .2s;
}

:is(.tipo-moneda, .cupon) .form-row__field:focus-within {
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.35);
}

.cupon label {
    text-transform: uppercase;
}

.cupon .form-row__field input {
    box-shadow: none !important;
    outline: none !important;
    border: 0 !important;
    padding: 0 14px;
    width: 100%;
    font-size: 15px;
    color: var(--c-secondary) !important;
}

.cupon .form-row__field button {
    background-color: var(--c-secondary);
    color: var(--c-text-alt);
    font-weight: 500;
    font-size: 15px;
}

.tipo-moneda .form-row__field::before,
.tipo-moneda .form-row__field::after {
    content: '';
    background-color: #f1f1f3;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    height: 42px;
    width: 42px;
    display: flex;
}

.tipo-moneda .form-row__field::after {
    background-image: url('../images/flag-per.svg');
}

.tipo-moneda.tipo-dolares .form-row__field::after {
    background-image: url('../images/flag-usa.svg');
}

.tipo-moneda .form-row__field::before {
    background-image: url('../images/icon-pen.svg');
}

.tipo-moneda.tipo-dolares .form-row__field::before {
    background-image: url('../images/icon-usd.svg');
    background-size: 34%;
}

.tipo-moneda .form-row__field input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--c-secondary) !important;
    padding: 0 14px !important;
    width: 100% !important;
}

a[data-action="switch"] {
    background-color: #00DA5A;
    background-image: url('../images/switch.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    height: 50px;
    width: 50px;
    border-radius: 44px;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    color: transparent;
    text-indent: -9999em;
    user-select: none;
    pointer-events: all;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(-5%);
}

button[data-action="operacion"] {
    background-color: var(--c-main);
    color: var(--c-text-alt);
    height: 50px;
    border-radius: 50px;
    outline: none !important;
    border: 0 !important;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    justify-content:center;
}

.widget-related{
    border-radius:20px;
    display: flex;
    flex-direction:column;
    gap:20px;
    padding:30px;
    background-color:#e9f4fc;
}
.widget-related > h3{
    font-size: clamp(1.125rem, 0.9803rem + 0.5263vw, 1.375rem);
    color:#132A3C;
    text-align: center;
}
.related-entry{
    padding:20px;
    background-color:#fff;
    border-radius:20px;
}
.related-entry > a{
    display: grid;
    gap:14px;
    grid-template-columns:100px calc(100% - 100px - 14px);
    align-items:center;
}
.related-entry > a > figure{
    width:100px;
    height:80px;
    border-radius:10px;
    overflow:hidden;
    position: relative;
    background-color:#ccc;
}
.related-entry > a > figure > img{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit:cover;
}
.related-entry h3{
    font-size: clamp(0.9375rem, 0.8651rem + 0.2632vw, 1.0625rem);
    line-height:1.25em;
    font-family:var(--font2);
    color:#132A3C;
}