.mcb-inv-background {
    background: #0B1A51;
}

.mcb-inv-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto
}

.mcb-inv-widget {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: start;
    color: #fff;
    padding-block: 64px;
    border-radius: 0;
    padding-inline: 16px;
}

@media (min-width: 1280px) {
    .mcb-inv-widget {
        padding-inline: 60px;
    }
}

.mcb-inv-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 544px;
}

.mcb-inv-hero {
    margin-bottom: 8px
}

.mcb-inv-title {
    margin: 0;
    font-size: 44px;
    line-height: 1.1;
    color: #1AF69D
}

@media (max-width: 460px) {
    .mcb-inv-subtitle {
        white-space: nowrap;
    }
}

.mcb-inv-subtitle {
    margin: 6px 0 0;
    font-size: 18px;
    opacity: .9
}

.mcb-inv-form {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.mcb-inv-field,
.mcb-field {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.mcb-inv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.mcb-inv-form select,
.mcb-inv-form input {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0b1130;
    font-size: 16px
}

.mcb-inv-form select {
    /* Ocultar flecha nativa y dibujar caret personalizado */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 52px;
    /* espacio para el caret */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12' fill='none'%3E%3Cpath d='M2 2.25L8 9.75L14 2.25' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) 50%;
    background-size: 16px 12px;
}

/* Estado hover/focus como en el diseño */
.mcb-inv-form select:hover,
.mcb-inv-form input:hover {
    border-color: #cbd5e1
}

.mcb-inv-form select:focus,
.mcb-inv-form input:focus {
    outline: none;
    border-color: #89f3d6;
    box-shadow: 0 0 0 3px rgba(137, 243, 214, .35)
}

/* Inputs numéricos sin spinners, para apariencia limpia */
.mcb-inv-form input[type=number]::-webkit-outer-spin-button,
.mcb-inv-form input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.mcb-inv-form input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield
}

.mcb-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-weight: 600
}

.mcb-button-outline {
    background: #04CD7C;
    color: #F9FAFB;
    margin-block: 1rem;
    width: auto;
    display: flex;
    justify-content: center;
}

.mcb-button-filled {
    background-color: #04CD7C;
}

.hide-button {
    display: none;
}

.mcb-arrow {
    display: inline-block;
    transform: translateY(1px)
}

.mcb-inv-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    opacity: .9;
    margin-top: 8px;
}

.mcb-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    font-weight: 700
}

.mcb-inv-right {
    display: flex;
    flex-direction: column;
    gap: 2px
}

@media (min-width: 680px) {
    .mcb-inv-right {
        width: 600px;

    }

    #mcb-inv-recalculate {
        display: none;
    }
    .desktop-hidden {
        display: none;
    }

    .mcb-button-outline {
        width: fit-content;
    }
}

.mcb-inv-chart-container {
    height: 334px;
}

.mcb-inv-chart-card {
    background: #fff;
    color: #111;
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #8ff3d6;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .06)
}

.mcb-inv-chart-title {
    font-size: 24px;
    font-weight: bold;
    font-weight: 700;
    margin: 0 0 32px;
    color: #111827
}

.mcb-inv-chart-card canvas {
    display: block;
    width: 100% !important;
}

.mcb-inv-summary {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 18px;
    background: #d9fff3;
    color: #0b1130;
    padding: 18px;
    border-radius: 14px;
    border: 2px solid #8ff3d6
}

.mcb-inv-summary-percent {
    border-left: 1px solid #00A462;
    padding-inline-start: 16px;
}

.mcb-inv-summary-item {
    display: flex;
    align-items: center;
    gap: 14px
}

.mcb-inv-symbol {
    font-size: 28px;
    font-weight: 800
}

.mcb-inv-summary-value {
    font-size: 34px;
    font-weight: 800
}

.mcb-inv-summary-label {
    opacity: .9
}

.mcb-inv-divider {
    height: 46px;
    width: 1px;
    background: #0b1130;
    opacity: .25;
    justify-self: center
}

.mcb-inv-cta {
    justify-self: end;
    background: #22c55e;
    color: #081b12;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700
}

@media(max-width:1024px) {
    .mcb-inv-widget {
        flex-direction: column;
    }
}

@media(max-width:640px) {
    .mcb-inv-row {
        grid-template-columns: 1fr
    }

    .mcb-inv-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .mcb-inv-divider {
        display: none
    }

    .mcb-inv-cta {
        justify-self: start
    }

    .mcb-inv-summary-final {
        display: none;
    }

    .mcb-inv-chart-container {
        height: 500px;
    }
}

#mcb-inv-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.mobile{
    display: none;
}

@media(max-width:720px) {
    .hidden_char {
        display: none;
    }

    .mcb-inv-summary-percent {
        
        border: none;
        padding: 0;
    }

    #mcb-inv-recalculate {
        width: 100%;
        margin-top: 24px;
        justify-content: center;
    }
}