﻿.resumen-orden-container {
    max-width: 750px;
    margin: 2.7rem auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resumen-orden-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #23428D 40%, #5478d4 100%);
    color: #fff;
    border-radius: 0.8rem;
    padding: 1.2rem 2rem 1rem 2rem;
    box-shadow: 0 4px 18px rgba(35,66,141,0.09);
    margin-bottom: 1.4rem;
}

.resumen-orden-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
}

.resumen-orden-fecha {
    font-size: 1rem;
    opacity: 0.96;
}

.resumen-orden-usercard {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 2px 12px rgba(35,66,141,0.07);
    padding: 0.7rem 1.5rem;
    margin-bottom: 2.1rem;
    font-size: 1.08rem;
    font-weight: 500;
}

.resumen-orden-main {
    width: 100%;
    display: flex;
    gap: 2.2rem;
    justify-content: center;
}

.resumen-orden-productlist,
.resumen-orden-totalcard {
    min-width: 260px;
    max-width: 350px;
    flex: 1 1 320px;
}

.resumen-orden-productlist {
    margin-right: 0.5rem;
}

.resumen-orden-totalcard {
    margin-left: 0.5rem;
}

.resumen-orden-card-header {
    background: linear-gradient(90deg, #23428d 0%, #4766c4 100%);
    color: #fff;
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    font-size: 1.04rem;
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
}

.resumen-orden-card-body {
    padding: 1.1rem 1rem;
}

.text-brand {
    color: #23428d !important;
}

/* Responsive */
@media (max-width: 900px) {
    .resumen-orden-container {
        max-width: 99vw;
        padding: 0 2vw;
    }

    .resumen-orden-main {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .resumen-orden-productlist,
    .resumen-orden-totalcard {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .resumen-orden-header, .resumen-orden-usercard {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== Resumen de orden (adaptado del admin) ===== */
.resumen-orden-page {
    padding: 0 0.75rem;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg,#23428D 0%, #376EB5 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 6px 18px rgba(35,66,141,.12);
}

.header-block {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.header-text {
    font-size: 1.25rem;
    font-weight: 700
}

.order-date {
    opacity: .95;
    font-size: .95rem
}

.status-pill-container {
    display: flex;
    align-items: center
}

.status-pill {
    min-width: 150px;
    text-align: center;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    background: #ffd700;
    color: #111;
}

.pending-pill {
    background: #ffd700;
    color: #111
}

.approved-pill {
    background: #dcfce7;
    color: #16a34a
}

.rejected-pill {
    background: #fee2e2;
    color: #b91c1c
}

.card-container.general-info-card {
    background: #fff;
    border: 1px solid #e9edf5;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(41,58,111,.08);
    margin-bottom: 16px;
}

.order-general-info-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.info-label {
    font-size: .85rem;
    color: #6c7a96
}

.info-value {
    font-weight: 600;
    color: #1e2a48
}

.details-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.product-list-card, .total-order-card {
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(41,58,111,.06);
}

.card-title-header {
    background: linear-gradient(90deg,#23428D 0%, #376EB5 100%);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
}

.product-list {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
}

    .product-item:last-child {
        border-bottom: 0;
    }

.item-info p {
    margin: 0;
    line-height: 1.35;
    font-size: .93rem;
    color: #1e2a48;
}

    .item-info p.sku {
        font-weight: 600;
        color: #5a6da0;
        text-transform: uppercase;
        letter-spacing: .3px;
    }

    .item-info p.name {
        font-weight: 600
    }

.item-price {
    font-weight: 700;
    color: #23428D;
    white-space: nowrap
}

.summary-details {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

    .summary-row.subtotal {
        font-weight: 700;
    }

@media (max-width: 992px) {
    .order-general-info-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .details-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .order-general-info-grid {
        grid-template-columns: 1fr;
    }
}
/* en tu futurohoy.css */
.btn.btn-primary i {
    font-size: 0.95rem;
}

/* Ancho mayor para el bloque */
.resumen-orden-container {
    max-width: 1200px; /* antes era más estrecho */
    margin-inline: auto;
}

/* Header: separar pills + botón */
.resumen-orden-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg,#23428D 0%, #3a6cd6 100%);
    color: #fff;
}

.resumen-orden-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botón enviar (coherente con header/cart) */
.btn-send-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #23428D;
    border: 1px solid rgba(35,66,141,.12);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(16,24,40,.12);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

    .btn-send-order:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(16,24,40,.16);
    }

    .btn-send-order:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

/* Por si prefieres variante azul sólida:
.btn-send-order{ background:#23428D; color:#fff; border:0; }
.btn-send-order:hover{ background:#1f3a7a; }
*/
/* BASE DE MADERA (CLIPBOARD) - ANCHO COMPLETO */
.clipboard-horizontal-base {
    position: relative;
    width: 100%; /* Ocupa el 100% del contenedor padre */
    max-width: 100% !important; /* Elimina cualquier restricción de ancho anterior */
    margin: 2rem 0; /* Margen arriba/abajo, pegado a los lados */
    background-color: #8B5A2B;
    background-image: linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
    border: 5px solid #6F4823;
    border-radius: 1.5rem;
    padding: 75px 25px 25px 25px !important; /* Espacio generoso para el clip y márgenes internos */
    box-sizing: border-box; /* Asegura que el padding no desborde el ancho */
    /* SOMBRA OSCURA PROFUNDA */
    box-shadow: 0 25px 65px rgba(10, 15, 30, 0.55), 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* GANCHO METÁLICO (CLIP) - CENTRADO MATEMÁTICO */
.clip-center {
    position: absolute;
    top: 18px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 160px; /* Un poco más grande para que no se pierda en el ancho total */
    height: 40px;
    background: linear-gradient(to bottom, #bdc3c7 0%, #95a5a6 100%);
    border-radius: 6px 6px 2px 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

    .clip-center::after {
        content: '';
        position: absolute;
        top: 11px;
        left: 50%;
        transform: translateX(-50%);
        width: 14px;
        height: 14px;
        background: #7f8c8d;
        border-radius: 50%;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    }

/* LA HOJA BLANCA (FONDO DEL CONTENIDO) */
.clipboard-horizontal-paper {
    background: #ffffff;
    border-radius: 0.8rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* AJUSTE PARA MÓVILES */
@media (max-width: 768px) {
    .clipboard-horizontal-base {
        padding: 60px 10px 10px 10px !important;
    }

    .clip-center {
        width: 100px;
        height: 30px;
    }
}


/* WRAPPER PRINCIPAL */
.success-page-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* CONTENEDOR TIPO CARTA / SOBRE */
.success-card {
    max-width: 650px;
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    /* Sombra suave y profunda que combina con el estilo clipboard */
    box-shadow: 0 10px 40px rgba(41, 58, 111, 0.08), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f0e6db; /* Un toque sutil de color crema/madera */
}

/* ICONO DE ÉXITO (Sin imágenes) */
.success-icon-container {
    width: 80px;
    height: 80px;
    background-color: #e8f5e9; /* Verde muy pálido */
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-icon-check {
    width: 25px;
    height: 45px;
    border: solid #2e7d32; /* Verde bosque */
    border-width: 0 6px 6px 0;
    transform: rotate(45deg);
    margin-bottom: 10px;
}

/* TIPOGRAFÍAS */
.success-title {
    color: #23428D; /* Tu azul principal */
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.success-text {
    color: #5c6370;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* BOX DE SEGUIMIENTO (Estilo Papel Técnico) */
.tracking-box {
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.tracking-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.tracking-id {
    font-size: 2rem;
    font-weight: 800;
    color: #2e7d32; /* Verde para asociar con éxito */
    font-family: 'Courier New', Courier, monospace; /* Toque de ID impreso */
}

.tracking-footer {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

    .tracking-footer a {
        color: #23428D;
        text-decoration: none;
        font-weight: 600;
    }

/* SEPARADOR */
.success-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    margin: 2rem 0;
}

/* BOTÓN PERSONALIZADO */
.btn-success-home {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #23428D;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 66, 141, 0.2);
}

    .btn-success-home:hover {
        transform: translateY(-2px);
        background-color: #1a326b;
        box-shadow: 0 8px 25px rgba(35, 66, 141, 0.3);
    }

/* RESPONSIVE */
@media (max-width: 576px) {
    .success-card {
        padding: 2rem 1rem;
        border-radius: 0;
        box-shadow: none;
    }

    .success-title {
        font-size: 1.8rem;
    }

    .tracking-id {
        font-size: 1.5rem;
    }
}