/* =========================================
   REYES CLUB — SEGUIMIENTO DE PEDIDO
   Página pública: /seguimiento
   Diseño: "Tienda · Seguimiento de pedido" y
   "Móvil · Seguimiento de pedido" (Pen.dev).
   Todas las clases empiezan con tr- para no
   chocar con el resto de la tienda.
========================================= */

.tr-page [hidden],
.tr-page[hidden] {
    display: none !important;
}

.tr-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.tr-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.tr-page {
    background: #f3efe5;
    color: #1f1d19;
    font-family: "Work Sans", sans-serif;
    min-height: 60vh;
}

.tr-icon {
    width: 15px;
    height: 15px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================
   CONTENIDO
========================================= */

.tr-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 55px 64px 72px;
}

.tr-start,
.tr-result {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Encabezado */

.tr-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.tr-title-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Mismo estilo que "Nuestra Esencia" */
.tr-eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #01939c;
    text-transform: uppercase;
}

.tr-title {
    margin-bottom: 16px;
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 400;
    font-size: 34px;
    letter-spacing: -1px;
    color: #171715;
}

.tr-meta {
    font-size: 13px;
    color: #44413b;
    line-height: 1.6;
}

.tr-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tr-head-side {
    flex: none;
}

/* Chip de estado */

.tr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 100px;
    border: 1px solid #bfe2e3;
    background: #e3f2f2;
    color: #01707a;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.tr-chip-mobile {
    display: none;
}

.tr-chip[data-tone="warn"] {
    background: #fbf1dc;
    border-color: #ecd9ae;
    color: #8a6110;
}

.tr-chip[data-tone="ok"] {
    background: #eef3e9;
    border-color: #d6e2ce;
    color: #4a7a52;
}

.tr-chip[data-tone="bad"] {
    background: #f8e9e6;
    border-color: #ebcdc6;
    color: #a23f2d;
}

/* Tarjetas */

.tr-card {
    background: #fff;
    border: 1px solid #e8e0cd;
    border-radius: 6px;
}

.tr-card-title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 400;
    font-size: 20px;
    color: #1f1d19;
}

.tr-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
    color: #8a8371;
}

.tr-note {
    font-size: 12px;
    color: #8a8371;
    line-height: 1.4;
}

.tr-rule {
    height: 1px;
    background: #efe8d8;
}

/* Botones */

.tr-btn-dark,
.tr-btn-teal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 2px;
    font-family: "Work Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tr-btn-dark {
    background: #1f1d19;
    color: #f7f2e6;
}

.tr-btn-dark:hover {
    background: #3a362f;
}

.tr-btn-teal {
    background: #01939c;
    color: #fff;
    height: 44px;
    width: 100%;
}

.tr-btn-teal:hover {
    background: #017f87;
}

.tr-btn-dark:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* =========================================
   FORMULARIO DE BÚSQUEDA
========================================= */

.tr-search-card {
    max-width: 560px;
    padding: 28px 32px;
}

.tr-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tr-form-row {
    display: flex;
    gap: 10px;
}

.tr-input {
    display: block;
    flex: 1;
    min-width: 0;
}

.tr-input input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: #fdfbf7;
    border: 1px solid #d9d0bc;
    border-radius: 2px;
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    color: #1f1d19;
}

.tr-input input::placeholder {
    color: #a59d8a;
}

.tr-input input:focus {
    outline: none;
    border-color: #01939c;
    box-shadow: 0 0 0 3px rgba(1, 147, 156, 0.12);
}

.tr-search-btn {
    flex: none;
    width: 84px;
    height: 42px;
}

.tr-form-error {
    font-size: 12.5px;
    line-height: 1.45;
    color: #a23f2d;
}

/* =========================================
   TARJETA DE SEGUIMIENTO
========================================= */

.tr-track {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tr-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.tr-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 36px;
}

/* línea entre pasos */
.tr-step::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 22px;
    right: 0;
    height: 2px;
    background: #e8e0cd;
}

.tr-step:last-child::before {
    display: none;
}

.tr-step.is-done::before {
    background: #01939c;
}

.tr-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #01939c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tr-dot .tr-icon {
    width: 12px;
    height: 12px;
    stroke-width: 3;
}

.tr-step.is-current .tr-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.tr-step.is-future .tr-dot {
    background: #fdfbf7;
    border: 1.5px solid #d9d0bc;
}

.tr-step.is-future .tr-dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d9d0bc;
}

.tr-step-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #1f1d19;
    padding-right: 12px;
}

.tr-step.is-future .tr-step-name {
    color: #8a8371;
}

.tr-step-date {
    font-size: 11.5px;
    color: #8a8371;
}

.tr-steps.is-cancelled .tr-step::before {
    background: #e8e0cd;
}

.tr-steps.is-cancelled .tr-step-name {
    color: #8a8371;
}

/* Último movimiento */

.tr-move {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: #f7f4ec;
    border-radius: 4px;
    font-size: 13px;
    color: #1f1d19;
}

.tr-move .tr-icon {
    color: #01939c;
}

.tr-move-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
    color: #8a8371;
}

.tr-move-text {
    flex: 1;
    min-width: 180px;
    line-height: 1.45;
}

/* Fila de envío */

.tr-delivery-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.tr-ship {
    width: 300px;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tr-ship-value {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 400;
    font-size: 24px;
    color: #1f1d19;
}

.tr-code {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tr-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tr-code-value {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: #1f1d19;
    word-break: break-all;
}

.tr-code-value.is-empty {
    font-weight: 400;
    color: #8a8371;
}

.tr-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #6b6455;
    cursor: pointer;
}

.tr-copy:hover {
    background: #f4efe4;
    color: #1f1d19;
}

.tr-copy.is-copied {
    color: #4a7a52;
}

.tr-follow {
    flex: none;
    height: 46px;
    padding: 0 22px;
}

/* =========================================
   COLUMNAS
========================================= */

.tr-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 392px;
    gap: 36px;
    align-items: start;
}

.tr-col-main,
.tr-col-side {
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-width: 0;
}

.tr-col-side {
    gap: 20px;
}

/* Productos */

.tr-products {
    padding: 28px 32px;
}

.tr-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.tr-short {
    display: none;
}

.tr-count {
    font-size: 12.5px;
    color: #8a8371;
}

.tr-items {
    list-style: none;
}

.tr-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #efe8d8;
}

.tr-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.tr-photo {
    width: 76px;
    height: 94px;
    flex: none;
    border-radius: 3px;
    background: #f4efe4;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b99f;
}

.tr-photo .tr-icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.tr-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tr-item-name {
    font-size: 14.5px;
    font-weight: 500;
    color: #1f1d19;
}

.tr-item-variant {
    font-size: 12.5px;
    color: #6b6455;
}

.tr-item-qty {
    font-size: 12px;
    color: #8a8371;
}

.tr-item-price {
    flex: none;
    font-size: 14px;
    font-weight: 500;
    color: #1f1d19;
}

/* Dirección y pago */

.tr-delivery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tr-address,
.tr-payment {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.tr-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b6455;
}

.tr-lines strong {
    font-size: 14px;
    font-weight: 500;
    color: #1f1d19;
}

.tr-pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 100px;
    border: 1px solid #d6e2ce;
    background: #eef3e9;
    color: #4a7a52;
    font-size: 11.5px;
    font-weight: 500;
}

.tr-pay-chip .tr-icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

.tr-pay-chip[data-tone="warn"] {
    background: #fbf1dc;
    border-color: #ecd9ae;
    color: #8a6110;
}

/* Resumen */

.tr-summary {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-summary .tr-card-title {
    margin-bottom: 4px;
}

.tr-sum-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: #6b6455;
}

.tr-sum-row span:last-child {
    color: #1f1d19;
}

.tr-sum-row .is-free,
.tr-sum-row .is-discount {
    color: #4a7a52 !important;
    font-weight: 500;
}

.tr-sum-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    font-weight: 500;
}

.tr-sum-total strong {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 400;
    font-size: 24px;
}

.tr-sum-note {
    font-size: 11.5px;
    color: #8a8371;
}

/* Ayuda */

.tr-help {
    background: #f4efe4;
    border-radius: 6px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-help .tr-card-title,
.tr-again .tr-card-title {
    font-size: 18px;
}

.tr-help p,
.tr-again p {
    font-size: 12.5px;
    line-height: 1.55;
    color: #6b6455;
}

.tr-help .tr-btn-teal {
    margin-top: 4px;
}

/* Buscar otro */

.tr-again {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {


    .tr-content {
        padding: 48px 32px 56px;
    }

    .tr-columns {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 24px;
    }

    .tr-delivery-row {
        flex-wrap: wrap;
        gap: 24px;
    }

    .tr-ship {
        width: auto;
        flex: 1 1 200px;
    }

    .tr-delivery {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   MÓVIL (diseño "Móvil · Seguimiento")
========================================= */

@media (max-width: 767px) {


    .tr-content {
        padding: 34px 18px 28px;
    }

    .tr-start,
    .tr-result {
        gap: 14px;
    }

    .tr-head {
        display: block;
    }

    .tr-head-side {
        display: none;
    }

    .tr-chip-mobile {
        display: inline-flex;
        padding: 6px 12px;
        font-size: 12px;
    }

    .tr-eyebrow {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .tr-title {
        margin-bottom: 14px;
        font-size: 27px;
        letter-spacing: -1px;
    }

    .tr-meta {
        font-size: 12px;
        line-height: 1.5;
    }

    .tr-search-card {
        padding: 20px;
    }

    /* Línea de tiempo vertical */

    .tr-track {
        padding: 22px 20px;
        gap: 20px;
    }

    .tr-steps {
        display: flex;
        flex-direction: column;
    }

    .tr-step {
        padding: 0 0 0 30px;
        min-height: 46px;
        gap: 3px;
    }

    .tr-step:last-child {
        min-height: 0;
    }

    .tr-step::before {
        top: 20px;
        bottom: 4px;
        left: 7.5px;
        right: auto;
        width: 1px;
        height: auto;
    }

    .tr-dot {
        width: 16px;
        height: 16px;
    }

    .tr-dot .tr-icon {
        width: 9px;
        height: 9px;
    }

    .tr-step.is-current .tr-dot::after {
        width: 6px;
        height: 6px;
    }

    .tr-step.is-future .tr-dot::after {
        width: 4px;
        height: 4px;
    }

    .tr-step-name {
        font-size: 13px;
        line-height: 16px;
    }

    .tr-move {
        padding: 12px 14px;
        font-size: 12.5px;
    }

    .tr-delivery-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .tr-ship {
        flex: none;
    }

    .tr-ship-value {
        font-size: 20px;
    }

    .tr-follow {
        width: 100%;
    }

    /* Columnas en el orden del diseño móvil:
       productos, resumen, entrega y pago, ayuda, buscar */

    .tr-columns,
    .tr-col-main,
    .tr-col-side {
        display: contents;
    }

    .tr-columns {
        gap: 14px;
    }

    .tr-products { order: 1; }
    .tr-summary  { order: 2; }
    .tr-delivery { order: 3; }
    .tr-help     { order: 4; }
    .tr-again    { order: 5; }

    .tr-products {
        padding: 20px;
    }

    .tr-long {
        display: none;
    }

    .tr-short {
        display: inline;
    }

    .tr-card-title {
        font-size: 18px;
    }

    .tr-item {
        gap: 14px;
        padding: 14px 0;
    }

    .tr-photo {
        width: 54px;
        height: 66px;
    }

    .tr-item-name {
        font-size: 13.5px;
    }

    /* "Entrega y pago" en una sola tarjeta */

    .tr-delivery {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border: 1px solid #e8e0cd;
        border-radius: 6px;
    }

    .tr-delivery .tr-card {
        border: 0;
        background: transparent;
        padding: 20px;
    }

    .tr-delivery .tr-payment {
        border-top: 1px solid #efe8d8;
        border-radius: 0;
    }

    .tr-summary,
    .tr-help,
    .tr-again {
        padding: 20px;
    }

    .tr-again .tr-form-row,
    .tr-search-card .tr-form-row {
        flex-wrap: wrap;
    }

}

@media (max-width: 400px) {

    .tr-form-row {
        flex-direction: column;
    }

    .tr-search-btn {
        width: 100%;
    }

}
