/* ================================================
   CARRITO
   ================================================ */

.titulo_carrito {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 2.5rem;
}

.linea_carrito {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.imagen_carrito {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.imagen_carrito img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.datos_linea_carrito {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cabecera_linea {
    border-bottom: none;

}

.nombre_producto_carrito {
    font-size: 1.2rem;
    margin: 0;
}

.nombre_producto_carrito a {
    color: inherit;
    text-decoration: none;
}

.nombre_producto_carrito a:hover {
    color: #647C04;
}

.precio_linea_carrito {
    font-size: 1.2rem;
    font-weight: 600;
    color: #647C04;
    white-space: nowrap;
}

.pie_linea_carrito {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cantidades_carrito {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    overflow: hidden;
}

.cantidades_carrito .btn {
    border: none;
    border-radius: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color:#666;
}

.cantidades_carrito .btn:hover {
    background-color: #f8f9fa;
}

.cantidades_carrito .btn:focus {
    box-shadow: none;
}

.cantidades_carrito .cantidad {
    width: 2.5rem;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    text-align: center;
    font-size: 0.9rem;
    padding: 0;
    height: 36px;
    color:#000;
}

.cantidades_carrito .cantidad:focus {
    box-shadow: none;
    border-color: #e2e8f0;
}

.boton_eliminar {
    font-size: 0.85rem;
    color: #666;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    transition: color 0.2s;
}

.boton_eliminar:hover {
    color: #dc3545;
}

.linea_cupon {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.nombre_cupon {
    font-weight: 600;
    color: #3f6040;
    margin-bottom: 0.25rem;
}

.beneficios_cupon {
    font-size: 0.85rem;
    color: #64748b;
}

.enlace_volver {
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.enlace_volver:hover {
    gap: 0.75rem;
}

/* Resumen pedido */
.resumen_pedido {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    position: sticky;
    top: 6rem;
}

.titulo_resumen {
   
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 1.5rem;
}

.lineas_resumen {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.linea_resumen {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #64748b;
}

.linea_resumen span:last-child {
    font-weight: 600;
    color: #000;
}

.linea_total {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    text-transform: uppercase;
}

.importe_total {
   
    font-size: 1.3rem;
    color: #000;
    font-weight: 600;
}

.zona_cupon {
    padding: 1.25rem 0;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.etiqueta_cupon {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: block;
}

.input_cupon {
    font-size: 0.9rem;
}

.input_cupon:focus {
    border-color: var(--color-primary);
    box-shadow: none;
}

.boton_cupon {
    background-color: #e2e8f0;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.boton_cupon:hover {
    background-color: #cbd5e1;
}

.pago_seguro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .linea_carrito {
        flex-direction: column;
    }

    .imagen_carrito {
        width: 100%;
        height: 200px;
    }
}


/* ================================================
   ESTADOS DE PEDIDO
   ================================================ */
.estado {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 500;
}

.enviado { color: #5cdb13; }
.entregado { color: #b5a66b; }
.proceso { color: #EBB52D; }


/* ================================================
   HISTORIAL DE PEDIDOS
   ================================================ */
#historial h2,
#historial h3 {
    color: black;
    font-weight: bold;
}

#historial a { color: #ffffff; }

#historial .table thead tr th {
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

#historial .clase_estado .label {
    display: inline;
    padding: 0.2em 0.6em 0.3em;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 3px;
}

#historial .pendiente_pago { background-color: #C98209; color: #000 !important; }
#historial .pendiente_envio { background-color: #2FC898; color: #000 !important; }
#historial .enviado { background-color: #1175AE; }
#historial .completado { background-color: #858181; color: #000 !important; }
#historial .cancelado { background-color: #FC0F0F; color: #000 !important; }
#historial .error_pago { background-color: #FC0F0F; color: #000 !important; }
#historial .reintentar_pago { color: #000 !important; border: 1px solid red; padding: 0.2em 0.6em; font-size: 0.9em; }
#historial .pagado { background-color: #497D04; }

@media (max-width: 767.98px) {
    #historial table { width: 100%; border: none; }
    #historial thead { display: none; }
    #historial td { border: none !important; text-align: left !important; }
    #historial table tr { display: flex; flex-direction: column; border: 1px solid #ccc; margin-bottom: 10px; padding: 8px; }
    #historial table td[data-titulo] { display: flex; }
    #historial table td[data-titulo]::before {
        content: attr(data-titulo);
        font-weight: 600;
        width: 100px;
        font-size: 0.8em;
        text-transform: uppercase;
        color: #000;
    }
}


/* ================================================
   PASOS DEL CHECKOUT
   ================================================ */
.pasos ol.breadcrumb {
    padding: 0;
    margin-bottom: 20px;
    list-style: none;
   
    font-weight: 500;
    font-size: 0.85em;
}

.pasos ol.breadcrumb li {
    color: #000;
    margin-right: 10px;
}

.pasos ol.breadcrumb li a { color: #000; }

.pasos .progress-bar {
    font-size: 1em;
    font-weight: 500;
    line-height: 27px;
}

.pasos .progress { height: 29px; }

.pasos .breadcrumb > li + li::before {
    content: "/\00a0";
    padding: 0 5px;
    color: #ccc;
}

/* ================================================
   PASO 1 — DATOS DE ENVÍO
   ================================================ */

   .pasos h2 {
    color: #000;
    font-size: clamp(1.5rem, 1.343rem + 0.79vw, 2.375rem);
    margin-top: 40px;
    font-weight: 600;
}

.carrito_compra_paso1 .caja_formulario {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.carrito_compra_paso1 .titulo_formulario {
    font-size: clamp(1.5rem, 1.343rem + 0.79vw, 2.375rem);
    font-weight: 600;
    margin-bottom: 2rem;
}

.carrito_compra_paso1 .subtitulo_formulario {
    font-size: clamp(1.25rem, 1.16rem + 0.45vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.carrito_compra_paso1 .etiqueta_campo {
    display: block;
    font-size:0.87em;
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
    color:#374151;
}

.carrito_compra_paso1 .campo_input {
    padding: 0.75rem 1rem;
    border-color: #ddd;
    border-radius: 0.5rem;
    color: #666;
    transition: border-color 0.2s;
}

.carrito_compra_paso1 .campo_input:focus {
    border-color: #647C04;
    box-shadow: none;
    color: #000;
}

.carrito_compra_paso1 .boton_continuar {
    transition: background-color 0.2s;
    width: 100%;
}

@media (min-width: 768px) {
    .carrito_compra_paso1 .boton_continuar {
        width: auto;
    }
}



/* ================================================
   PASO 2 — TRANSPORTE
   ================================================ */

.pasos .caja_transporte {
    margin-top: 30px;
    cursor: pointer;
}

.pasos .relleno_transp {
    background-color: #eee;
    padding: 25px 15px;
    display: block;
}

.pasos .relleno_transp:hover { background-color: #fff; }



.pasos .nombre_transp {
    font-size: 1.2em;
    font-weight: 600 !important;
    color: #000;
    display: inline-block;
    text-transform: uppercase;
}

.pasos .desarrollo {
    font-size: 0.9em;
    color: #666;
    padding-left: 30px;
}
.politica a{font-size: 0.85em; color:#666;}

.pasos .precio_transp {
    font-size: 1.5em;
    color: #e82c0c;
    display: inline-block;
    padding-left: 28px;
    padding-right: 10px;
    font-weight: 600;
}

.pasos .precio_transp_tachado {
    font-size: 1.3em;
    color: #e82c0c;
    display: inline-block;
    padding-left: 20px;
    text-decoration: line-through;
    font-weight: 600;
}

.pasos .gratis {
    color: #338808;
    display: inline-block;
    padding-left: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

/* ================================================
   CONFIRMACIÓN DE PEDIDO (PASO 3)
   ================================================ */


#tabla_det td {
    vertical-align: middle;
    padding: 10px;
   
}

.cart-product-price, .cc-pr{ white-space: nowrap;}

#tabla_det th {
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
}

#tabla_det .totales_paso_confirmacion {
    text-transform: uppercase;
    color: #000;
    text-align: left;
    font-weight: 600;
    font-size: 0.8em;
}

#tabla_det tfoot tr td:not(:first-child) { background-color: #efefef; }
#tabla_det tfoot { font-size: 1.3em; font-weight: 700; }
#tabla_det tfoot .fondo_total { text-align: left; color: #000; }
#tabla_det .politica { text-align: end; }

.fondo_total {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    font-weight: 800;
}

#paso3 .fondo_total {
    background-color: #000;
}

#paso3 .cart-product-description {
    font-size: 1.1em;
    text-align: left;
}

.cart-product-description {
    font-weight: 400;
    color: #000;
}

.cart-product-sub-total,
.cart-sub-total {
    text-align: right !important;
}

.cart-product-sub-total {
    font-weight: 600;
    color: #000;
}

.precio_total {
    color: #000;
    font-weight: 700;
    font-size: 1em;
    text-align: right !important;
}

.capa_total_pedido {
    margin-top: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

.total_g {
    font-size: 1.1em;
    color: #000;
}

.pedido_final { font-size: 1.7em; }

/*------movil------*/

.item-price-special.prec{text-align: end; font-weight: 500!important;}
.item-price-special.prec b{ font-weight: 500!important;}

.pasos .nombre_p b { display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #333;
    color: #fff!important;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 4px;}

.pasos .nombre_p {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.table.total-table .precio{font-weight: 600;}
.table.total-table .total-table-title{font-size: 0.75em; letter-spacing: 1px;}
.totales_precio{font-weight: 600; color:#000;}
.btn#continua_pago{text-wrap:balance ;}
/* ================================================
   TABLA DE TOTALES
   ================================================ */
.total-table {
    background-color: transparent !important;
    color: #777;
    text-transform: uppercase;
}

.total-table .total-table-title { font-size: 0.85em; }

.total-table > tbody > tr > td {
    padding: 5px;
    text-align: inherit;
    color: #333;
}

.total-table > tfoot > tr > td {
    padding: 5px;
    
    font-weight: 600;
    background: #f4f4f4;
    text-align: inherit;
}

.total-table > tfoot > tr > td:first-child { color: #333; font-size: larger;}

.total-table > tfoot > tr > td:last-child {
    color: #000;
   font-size: larger;
}
.der { text-align: right !important; }
.der.subtotal { font-weight: 600; color: #000 !important; }


/* ================================================
   DATOS CLIENTE
   ================================================ */
.tienda_datos_cliente h2 { color: #000; }

.tienda_datos_cliente .zona_boton {
    margin: 25px 0;
    padding-top: 25px;
    border-top: 4px dotted #ccc;
}





