﻿* {
    box-sizing: border-box;
}

:root {
    --blue-900: #003d82;
    --blue-700: #0071CE;
    --blue-500: #2584ea;
    --text-900: #0a2342;
    --text-700: #425466;
    --line: #d9e2ec;
    --bg-page: #e8f1f8;
    --card: #ffffff;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-page);
    color: var(--text-900);
}

.pedido-hero {
    background: linear-gradient(135deg, #e8f1f8 0%, #c8dff5 100%);
    text-align: center;
    padding: 40px 20px 50px;
}

.pedido-hero__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #0071CE;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 36px;
    box-shadow: 0 4px 12px rgba(0, 113, 206, 0.25);
}

.pedido-hero__title {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-900);
}

.pedido-hero__text {
    margin: 0 auto 22px;
    max-width: 520px;
    color: var(--blue-900);
    font-size: 15px;
    line-height: 1.35;
}

.pedido-search {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.pedido-search-message {
    max-width: 460px;
    margin: 12px auto 0;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .92rem;
}

.pedido-search-message.is-error {
    background: #fff1f1;
    color: #b4232d;
}

.pedido-search-message.is-success {
    background: #edf8f0;
    color: #2d8a4f;
}

.pedido-search__input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 4px 0 0 4px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

.pedido-search__button {
    min-width: 100px;
    height: 40px;
    border: 0;
    background: #0071CE;
    color: #fff;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pedido-search__button:hover {
    background: #005bb5;
}

.pedido-page {
    max-width: 860px;
    margin: 28px auto 48px;
    padding: 0 18px;
}

.pedido-page--wide {
    max-width: 1120px;
}

.pedido-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
    color: var(--blue-900);
}

.pedido-summary__label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.pedido-summary__value {
    font-size: 22px;
    font-weight: 700;
}

.pedido-summary__divider {
    width: 1px;
    height: 34px;
    background: #c9d3df;
}

.pedido-card {
    background: var(--card);
    border-radius: 8px;
    padding: 28px 30px 26px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.pedido-status-head__label {
    display: inline-block;
    font-size: 11px;
    margin-bottom: 6px;
    color: var(--text-700);
}

.pedido-status-head__title {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--blue-700);
}

.pedido-status-head__meta {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--blue-900);
}

.pedido-steps {
    display: grid;
    grid-template-columns: repeat(var(--pedido-step-count, 5), minmax(0, 1fr));
    margin: 28px 0 34px;
    gap: 0;
    width: 100%;
    overflow: hidden;
    align-items: start;
}

.pedido-step {
    position: relative;
    text-align: center;
    min-width: 0;
    padding: 0 6px;
}

    .pedido-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        width: calc(100% - 12px);
        border-top: 2px dotted var(--blue-900);
        z-index: 1;
    }

.pedido-step__circle {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 2px solid var(--blue-900);
    background: #fff;
    color: #fff;
    font-size: 10px;
    line-height: 12px;
    display: grid;
    place-items: center;
}

.pedido-step__label {
    font-size: 9px;
    color: var(--text-700);
    line-height: 1.1;
    max-width: 100%;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding: 0 2px;
}

.pedido-step.is-completed .pedido-step__circle {
    background: var(--blue-900);
    color: #fff;
}

.pedido-step.is-active .pedido-step__circle {
    background: var(--blue-500);
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px #fff inset;
}

.pedido-step.is-active .pedido-step__label {
    color: var(--blue-500);
}

.pedido-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 34px;
    align-items: start;
}

.pedido-products-panel {
    padding: 18px;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #fafafa;
}

.pedido-products-panel__head {
    margin-bottom: 14px;
}

.pedido-products-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-900);
}

.pedido-products-list {
    display: grid;
    gap: 14px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
}

.pedido-products-empty {
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    color: var(--text-700);
    border: 1px dashed #d9d9dd;
    font-size: .95rem;
}

.pedido-product {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e6e6e8;
    background: #fff;
}

.pedido-product__image-wrap {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.pedido-product__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pedido-product__brand {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--text-700);
}

.pedido-product__name {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.25;
    color: var(--blue-900);
}

.pedido-product__sku,
.pedido-product__soldby,
.pedido-delivery p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--blue-900);
}

.pedido-delivery {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #ececec;
    background: #fff;
}

.pedido-comprobante-card {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #ececec;
    background: #fafafa;
}

.pedido-comprobante-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pedido-comprobante-card__eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #0572d8;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.pedido-comprobante-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2b2b2b;
}

.pedido-comprobante-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f1caca;
    color: #0572d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.pedido-comprobante-card p {
    margin: 0 0 6px;
}

.pedido-comprobante-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #0572d8;
    font-weight: 700;
    text-decoration: none;
}

.pedido-comprobante-card__link.is-disabled {
    opacity: .65;
}

.pedido-comprobante-card__link:hover {
    color: #a81f1f;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .pedido-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pedido-hero__title {
        font-size: 26px;
    }

    .pedido-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pedido-summary__divider {
        display: none;
    }

    .pedido-card {
        padding: 20px 18px;
    }

    .pedido-step {
        padding: 0 3px;
    }

    .pedido-step:not(:last-child)::after {
        width: calc(100% - 6px);
    }

    .pedido-step__label {
        font-size: 8px;
    }

    .pedido-comprobante-card {
        padding: 14px;
    }

    .pedido-product {
        grid-template-columns: 1fr;
    }

    .pedido-product__image-wrap {
        width: 120px;
        height: 120px;
    }
}

/* ===== Paleta comercial rojo / naranja / gris ===== */
:root {
    --blue-900: #2b2b2b;
    --blue-700: #0572d8;
    --blue-500: #2f8ff0;
    --text-900: #222222;
    --text-700: #666666;
    --line: #dddddf;
    --bg-page: #f4f4f5;
    --card: #ffffff;
}

body {
    background: var(--bg-page);
    color: var(--text-900);
}

.pedido-hero {
    background: linear-gradient(180deg, #f3d7d7 0%, #f7e8e8 100%);
}

.pedido-hero__icon {
    background: linear-gradient(135deg, #053d73 0%, #0572d8 100%);
}

.pedido-hero__title,
.pedido-hero__text {
    color: #2b2b2b;
}

.pedido-search__input {
    border: 1px solid #d8d8dc;
}

.pedido-search__button {
    background: linear-gradient(90deg, #053d73 0%, #0572d8 100%);
    color: #fff;
}

.pedido-card {
    border: 1px solid #ececec;
    box-shadow: 0 10px 24px rgba(0,0,0,.04);
}

.pedido-status-head__title {
    color: #0572d8;
}

.pedido-step:not(:last-child)::after {
    border-top: 2px dotted #2b2b2b;
}

.pedido-step__circle {
    border-color: #2b2b2b;
}

.pedido-step.is-completed .pedido-step__circle {
    background: #2b2b2b;
}

.pedido-step.is-active .pedido-step__circle {
    background: #0572d8;
    border-color: #0572d8;
}

.pedido-step.is-active .pedido-step__label {
    color: #0572d8;
}

.pedido-product__name,
.pedido-product__sku,
.pedido-product__soldby,
.pedido-delivery p {
    color: #2a2a2a;
}

.pedido-product__image-wrap {
    background: #f7f7f7;
}

/* Overrides azul/celeste */
.pedido-hero {
    background: linear-gradient(180deg, #eaf4ff 0%, #f5fbff 100%);
}

.pedido-search-message.is-error {
    background: #eef1f4;
    color: #0572d8;
}

.pedido-search__button:hover {
    background: #53b9ff;
}

.pedido-comprobante-card__icon {
    border-color: #d7e8f7;
}

.pedido-comprobante-card__link:hover {
    color: #53b9ff;
}

