/* GRID PRINCIPAL */
.pedido-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

/* FORMULARIO */
.pedido-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

.pedido-form input,
.pedido-form textarea {
    width: 100%;
    padding: 7px 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-enviar {
    margin-top: 20px;
    padding: 12px 20px;
    background: #c40000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-enviar:hover {
    background: #a30000;
}

/* CARRITO REDUCIDO */
.pedido-resumen {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

#resumen-carrito .item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 13px;
}

#resumen-carrito .item img {
    max-width: 60px;
    margin-bottom: 5px;
}

.resumen-total {
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
}

/* MODAL */
#modal-gracias {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
}

#modal-gracias.activo {
    display: flex;
}

.modal-contenido {
    background: #fff;
    padding: 25px 35px;
    border-radius: 8px;
    text-align: center;
    max-width: 420px;
}

.modal-icono {
    font-size: 45px;
    color: #28a745;
    margin-bottom: 10px;
}

#modal-aceptar {
    margin-top: 15px;
    padding: 10px 20px;
    background: #c40000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* FOOTER */
.footer {
    background: #111;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}

.logo-footer {
    height: 45px;
    margin-bottom: 10px;
}
/* FOOTER */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
    background: #f5f5f5;
}

.footer-logo img {
    width: 160px;
    margin-bottom: 10px;
}
/* ================================
   BLOQUES DE ENVÍO POR DESTINO
   ================================ */

#formularios-envio-multiples {
    margin-top: 25px;
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#formularios-envio-multiples h2 {
    margin-bottom: 15px;
}

.bloque-envio-destino {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.bloque-envio-destino h3 {
    margin-bottom: 10px;
    color: #333;
}

/* ================================
   RESUMEN POR DESTINO (DERECHA)
   ================================ */

.bloque-resumen-destino {
    border: 2px solid #ccc;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
    background: #fafafa;
}

.bloque-resumen-destino h3 {
    margin-bottom: 10px;
    color: #222;
}

.productos-destino .item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

.productos-destino .item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.totales-destino {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.totales-destino div {
    margin-bottom: 5px;
}

.direccion-asignada {
    margin-top: 15px;
    padding: 10px;
    background: #eef7ff;
    border-left: 4px solid #0077cc;
    border-radius: 6px;
}

.direccion-asignada h4 {
    margin-bottom: 5px;
}
.bloque-resumen-final {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px 22px;
    margin-top: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    font-size: 15px;
}

.bloque-resumen-final {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px 22px;
    margin-top: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    font-size: 15px;
}

.bloque-resumen-final h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

.linea-resumen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.linea-resumen .texto {
    flex: 1;
    color: #444;
}

.linea-resumen .importe {
    width: 120px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #222;
}

.total-final {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.total-final .importe {
    width: 140px;
    text-align: right;
}
/* FOTO MÁS GRANDE (doble) */
.productos-destino .item img {
    width: 260px !important;   /* antes 200px */
    height: auto !important;
}

/* CONTENEDOR DE LA FOTO MÁS ANCHO */
.productos-destino .item > div:first-child {
    flex: 0 0 260px !important;
}

/* RESUMEN DEL PEDIDO MÁS ESTRECHO */
.bloque-resumen-final {
    max-width: 300px !important;   /* ajusta si quieres 340 / 380 */
}
/* FORZAR FOTO GRANDE DE VERDAD */
.productos-destino .item img {
    width: 260px !important;
    height: auto !important;
    max-width: 260px !important;
}

/* FORZAR QUE EL CONTENEDOR DE LA FOTO PERMITA ESE TAMAÑO */
.productos-destino .item > div:first-child {
    flex: 0 0 260px !important;
    max-width: 260px !important;
}
/* Ocultar el botón feo del input file */
input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Contenedor para el botón bonito */
.file-wrapper {
    display: inline-block;
    position: relative;
}

/* Botón moderno */
.file-wrapper label {
    background-color: #b40000;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    transition: 0.2s ease;
}

/* Hover */
.file-wrapper label:hover {
    background-color: #8e0000;
}
/* Oculta el botón feo del input file */
.file-wrapper input[type="file"] {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
}

/* Estilo del label que actuará como botón */
.file-wrapper {
    display: inline-block;
    background-color: #b40000;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.2s ease;
    position: relative;
}

/* Hover */
.file-wrapper:hover {
    background-color: #8e0000;
}
/* Alinear checkbox y texto en la misma línea */
.forma-pago label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 6px;
}

/* Ajustar tamaño del checkbox para que no quede alto */
.forma-pago input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}
.forma-pago label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 15px;
}

.forma-pago input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
}
footer, .footer {
    font-size: 11px !important;
    color: #666 !important;
}

.footer-links a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 13px !important;
}
.footer-links a {
    margin: 0 12px;   /* separa los enlaces */
}
#formularios-envio-multiples input,
#formularios-envio-multiples textarea,
#formularios-envio-multiples select {
    width: 100% !important;
    box-sizing: border-box !important;
}
#formularios-envio-multiples label {
    display: block;
    margin-bottom: 12px;
}
