/* Presupuesto profesional B2B + barra superior — verde corporativo YTSmed #23a455 */

.ytsmed-b2b-bar {
    position: relative;
    z-index: 10001;
    width: 100%;
    color: #23a455;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.76rem;
    line-height: 1.25;
    background: #ffffff !important;
    border-bottom: 1px solid #23a455;
    box-shadow: none;
}

.ytsmed-b2b-bar.is-hidden {
    display: none !important;
}

.ytsmed-b2b-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.55rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
}

.ytsmed-b2b-bar__text {
    color: #23a455;
    font-weight: 500;
}

.ytsmed-b2b-bar__link {
    color: #1e8f4a !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.ytsmed-b2b-bar__link:hover,
.ytsmed-b2b-bar__link:focus-visible {
    color: #187a40 !important;
    outline: none;
}

.ytsmed-b2b-bar__close {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    color: #23a455 !important;
    -webkit-text-fill-color: #23a455 !important;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    background: transparent !important;
    border: 0 !important;
    border-radius: 4px;
    box-shadow: none !important;
    cursor: pointer;
    appearance: none;
}

.ytsmed-b2b-bar__close:hover,
.ytsmed-b2b-bar__close:focus-visible {
    color: #1e8f4a !important;
    -webkit-text-fill-color: #1e8f4a !important;
    background: #e8f7ee !important;
    outline: none;
}

/* Motive Commerce Search: capa por encima del banner B2B (banner 10001, Motive 10100) */
motive-x,
#motive-x,
.motive-x-host,
[data-motive-layer] {
    z-index: 10100 !important;
}

/* Landing presupuesto */
.ytsmed-presupuesto {
    --ytsmed-green: #23a455;
    --ytsmed-green-dark: #1e8f4a;
    --ytsmed-green-light: #e8f7ee;
    --ytsmed-text: #383838;
    --ytsmed-border: #dce8e0;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    font-family: Montserrat, system-ui, sans-serif;
    color: var(--ytsmed-text);
}

.ytsmed-presupuesto__hero {
    margin-bottom: 1.5rem;
    padding: 1.6rem 1.35rem;
    background: linear-gradient(135deg, var(--ytsmed-green-light) 0%, #f4fbf7 100%);
    border: 1px solid var(--ytsmed-border);
    border-left: 4px solid var(--ytsmed-green);
    border-radius: 10px;
}

.ytsmed-presupuesto__title {
    margin: 0 0 0.55rem;
    color: var(--ytsmed-green-dark);
    font-size: 1.85rem;
    line-height: 1.2;
}

.ytsmed-presupuesto__lead {
    margin: 0;
    max-width: 52rem;
    font-size: 1rem;
    line-height: 1.55;
}

.ytsmed-presupuesto__split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ytsmed-presupuesto__panel {
    position: relative;
    padding: 1.35rem 1.4rem 1.5rem;
    border-radius: 10px;
}

.ytsmed-presupuesto__panel--dark {
    color: #ffffff;
    background: linear-gradient(145deg, #1e8f4a 0%, #23a455 55%, #268f5c 100%);
}

.ytsmed-presupuesto__panel--light {
    background: #ffffff;
    border: 1px solid var(--ytsmed-border);
    box-shadow: 0 2px 10px rgba(35, 164, 85, 0.06);
}

.ytsmed-presupuesto__panel-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    line-height: 1.35;
}

.ytsmed-presupuesto__panel--dark .ytsmed-presupuesto__panel-title {
    color: #ffffff;
}

.ytsmed-presupuesto__panel--light .ytsmed-presupuesto__panel-title {
    color: var(--ytsmed-green-dark);
}

.ytsmed-presupuesto__panel p {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.ytsmed-presupuesto__list {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ytsmed-presupuesto__list li {
    margin-bottom: 0.35rem;
}

.ytsmed-presupuesto__stamp {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-block;
    padding: 0.35rem 0.65rem;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--ytsmed-green);
    border-radius: 4px;
    transform: rotate(-4deg);
}

.ytsmed-presupuesto__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.ytsmed-presupuesto__chip {
    display: inline-block;
    padding: 0.28rem 0.55rem;
    color: var(--ytsmed-green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--ytsmed-green-light);
    border: 1px solid #c5e8d4;
    border-radius: 999px;
}

.ytsmed-presupuesto__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.ytsmed-presupuesto__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.ytsmed-presupuesto__btn--primary {
    color: #ffffff !important;
    background: var(--ytsmed-green);
}

.ytsmed-presupuesto__btn--primary:hover,
.ytsmed-presupuesto__btn--primary:focus-visible {
    color: #ffffff !important;
    background: var(--ytsmed-green-dark);
    outline: none;
}

.ytsmed-presupuesto__btn--secondary {
    color: var(--ytsmed-green-dark) !important;
    background: #ffffff;
    border: 1px solid #c5e8d4;
}

.ytsmed-presupuesto__btn--secondary:hover,
.ytsmed-presupuesto__btn--secondary:focus-visible {
    color: var(--ytsmed-green-dark) !important;
    background: var(--ytsmed-green-light);
    outline: none;
}

.ytsmed-presupuesto__panel--dark .ytsmed-presupuesto__btn--secondary {
    color: #ffffff !important;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
}

.ytsmed-presupuesto__panel--dark .ytsmed-presupuesto__btn--secondary:hover,
.ytsmed-presupuesto__panel--dark .ytsmed-presupuesto__btn--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.ytsmed-presupuesto__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ytsmed-presupuesto__step {
    padding: 0.9rem 1rem;
    background: #ffffff;
    border: 1px solid var(--ytsmed-border);
    border-left: 3px solid var(--ytsmed-green);
    border-radius: 8px;
}

.ytsmed-presupuesto__step-num {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--ytsmed-green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ytsmed-presupuesto__step-title {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.ytsmed-presupuesto__step p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #555;
}

.ytsmed-presupuesto__form-wrap {
    padding: 1.35rem 1.4rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--ytsmed-border);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(35, 164, 85, 0.07);
}

.ytsmed-presupuesto__form-title {
    margin: 0 0 0.35rem;
    color: var(--ytsmed-green-dark);
    font-size: 1.25rem;
}

.ytsmed-presupuesto__form-intro {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #555;
}

.ytsmed-presupuesto__notice {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.45;
    border-radius: 6px;
}

.ytsmed-presupuesto__notice--ok {
    color: #1e5c34;
    background: var(--ytsmed-green-light);
    border: 1px solid #c5e8d4;
}

.ytsmed-presupuesto__notice--err {
    color: #7a1f1f;
    background: #fdeeee;
    border: 1px solid #f0caca;
}

.ytsmed-presupuesto__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.ytsmed-presupuesto__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ytsmed-presupuesto__field--full {
    grid-column: 1 / -1;
}

.ytsmed-presupuesto__field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
}

.ytsmed-presupuesto__field label .req {
    color: var(--ytsmed-green-dark);
}

.ytsmed-presupuesto__field input,
.ytsmed-presupuesto__field select,
.ytsmed-presupuesto__field textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--ytsmed-text);
    background: #ffffff;
    border: 1px solid #cfd8d2;
    border-radius: 6px;
}

.ytsmed-presupuesto__field textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.ytsmed-presupuesto__field input:focus,
.ytsmed-presupuesto__field select:focus,
.ytsmed-presupuesto__field textarea:focus {
    border-color: var(--ytsmed-green);
    outline: 2px solid rgba(35, 164, 85, 0.18);
    outline-offset: 0;
}

.ytsmed-presupuesto__privacy {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #555;
}

.ytsmed-presupuesto__privacy input {
    margin-top: 0.2rem;
}

.ytsmed-presupuesto__privacy a {
    color: var(--ytsmed-green);
    font-weight: 600;
    text-decoration: none;
}

.ytsmed-presupuesto__field input[type="file"] {
    padding: 0.45rem 0.5rem;
    font-size: 0.84rem;
    background: #f8fbf9;
    cursor: pointer;
}

.ytsmed-presupuesto__file-hint {
    margin: 0.25rem 0 0;
    font-size: 0.76rem;
    line-height: 1.4;
    color: #666;
}

.ytsmed-presupuesto__submit,
.ytsmed-presupuesto button.ytsmed-presupuesto__submit,
.ytsmed-presupuesto input.ytsmed-presupuesto__submit {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.15rem;
    padding: 0.75rem 1.35rem !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: inherit;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background: #23a455 !important;
    background-color: #23a455 !important;
    border: 2px solid #23a455 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    cursor: pointer;
    appearance: none;
}

.ytsmed-presupuesto__submit:hover,
.ytsmed-presupuesto__submit:focus-visible,
.ytsmed-presupuesto button.ytsmed-presupuesto__submit:hover,
.ytsmed-presupuesto button.ytsmed-presupuesto__submit:focus-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #1e8f4a !important;
    background-color: #1e8f4a !important;
    border-color: #1e8f4a !important;
    outline: none;
}

.ytsmed-presupuesto__contact-box {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    font-size: 0.84rem;
    line-height: 1.5;
    background: var(--ytsmed-green-light);
    border: 1px solid #c5e8d4;
    border-radius: 8px;
}

.ytsmed-presupuesto__contact-box a {
    color: var(--ytsmed-green-dark);
    font-weight: 700;
    text-decoration: none;
}

/* Aviso carrito B2B */
.ytsmed-cart-b2b {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    font-family: Montserrat, system-ui, sans-serif;
    background: #f0faf4;
    border: 1px solid #c5e8d4;
    border-left: 3px solid var(--ytsmed-green, #23a455);
    border-radius: 8px;
}

.ytsmed-cart-b2b__title {
    margin: 0 0 0.25rem;
    color: var(--ytsmed-green-dark, #1e8f4a);
    font-size: 0.92rem;
    font-weight: 700;
}

.ytsmed-cart-b2b__text {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #444;
}

.ytsmed-cart-b2b__link {
    display: inline-block;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    padding: 0.4rem 0.75rem;
    background: var(--ytsmed-green, #23a455);
    border-radius: 5px;
}

.ytsmed-cart-b2b__link:hover,
.ytsmed-cart-b2b__link:focus-visible {
    color: #ffffff !important;
    background: var(--ytsmed-green-dark, #1e8f4a);
    outline: none;
}

/* Ficha producto alto ticket */
.ytsmed-product-b2b-line {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.65rem;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
    background: #f0faf4;
    border: 1px solid #c5e8d4;
    border-radius: 6px;
}

.ytsmed-product-b2b-line a {
    color: var(--ytsmed-green-dark, #1e8f4a);
    font-weight: 700;
    text-decoration: none;
}

.ytsmed-product-b2b-line a:hover,
.ytsmed-product-b2b-line a:focus-visible {
    text-decoration: underline;
    outline: none;
}

@media (max-width: 768px) {
    .ytsmed-presupuesto__split,
    .ytsmed-presupuesto__form,
    .ytsmed-presupuesto__steps {
        grid-template-columns: 1fr;
    }

    .ytsmed-presupuesto__stamp {
        position: static;
        display: inline-block;
        margin-top: 0.5rem;
        transform: none;
    }

    .ytsmed-presupuesto__title {
        font-size: 1.45rem;
    }

    .ytsmed-b2b-bar__inner {
        padding-right: 1.75rem;
        font-size: 0.72rem;
    }
}
