.contenedor-mensaje-whatsapp-preview {
    display: flex;
    align-items: center;
    /* Alinea en la parte superior */
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    /* Para móviles, permite que bajen a la siguiente línea */
}

.tabla-scroll.producto {
    width: 100%;
    overflow-x: auto;
    /* para que en caso de tabla ancha se pueda scrollear */
    margin-bottom: 20px;
    box-sizing: border-box;
}

.tabla-productos {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.tabla-productos th,
.tabla-productos td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
    text-align: center;
}

.tabla-productos th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.tabla-productos td.titulo,
.tabla-productos td.oferta {
    text-align: left;
}

.tabla-productos td.titulo {
    max-width: 300px !important;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.tabla-productos td.terminos {
    max-width: 150px !important;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.tabla-productos td.marca {
    max-width: 100px !important;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Imagen dentro de la tabla */
.tabla-productos td.titulo div img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Inputs de cantidad */
.tabla-productos input.cantidad {
    width: 60px;
    padding: 4px;
    font-size: 14px;
    text-align: center;
}

/* Botón "Agregar a Cotización" */
#guardar-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#guardar-btn:hover {
    background-color: #005177;
}




.solo-pdf {
    display: none;
}

.col-accion {
    display: block !important;
}



#informacionPresupuesto {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: "Segoe UI", sans-serif;
    background-color: #f9f9f9;
    font-size: 14px;
}

#informacionPresupuesto h3 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

#informacionPresupuesto label {
    font-weight: 500;
    margin-right: 10px;
    min-width: 110px;
    display: inline-block;
    vertical-align: middle;
}

#informacionPresupuesto input[type="text"],
#informacionPresupuesto input[type="tel"],
#informacionPresupuesto select,
#informacionPresupuesto textarea {
    padding: 4px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: calc(100% - 120px);
    max-width: 300px;
    display: inline-block;
    vertical-align: middle;
}



#informacionPresupuesto textarea {
    max-height: 70px;
}

#informacionPresupuesto .form-row {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#informacionPresupuesto .form-row.full {
    align-items: flex-start;
}

.form-row {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

#informacionPresupuesto p {
    margin: 6px 0;
}

#columna-derecha {
    flex: 0 0 40%;
}

#columna-izquierda {
    flex: 1;
}

.select-rif-container {
    display: flex;
    gap: 5px;
    width: 75%;
    /*width: calc(68% - 120px)!important;*/
}

.select-rif-container select {
    width: 15px !important;
}

.select-rif-container input {
    flex: 1;
    width: 60% !important;
}


.campo-invalido {
    border: 2px solid red !important;
    background-color: #fff4f4;
}

.selectorDolares {
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

.selectorDolares:hover {
    color: #005077;
}

.flecha {
    margin-left: 6px;
}

.formulario-edicion {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.selectorDolares {
    display: block;
    /*margin: 15px 0;*/
}

.etiqueta-cotizar {
    display: inline-flex;
    align-items: center;
    background-color: #1e88e5;
    /* azul AcuaPPTO */
    color: white;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.etiqueta-cotizar:hover {
    background-color: #166cc1;
    transform: translateY(-1px);
}

.etiqueta-cotizar .flecha {
    margin-left: 10px;
    font-size: 1.2em;
}

/********** B o t o n    i r   a   l a    t i e n d a   ******************/
.boton-ir-tienda {
    display: inline-block;
    padding: 10px 18px;
    background-color: #00a7e1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-ir-tienda:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}

/******************************/
.input-cantidad-personalizado {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.input-cantidad {
    width: 60px;
    text-align: center;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-left: none;
    border-right: none;
    -moz-appearance: textfield;
}

.input-cantidad::-webkit-inner-spin-button,
.input-cantidad::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-mas,
.btn-menos {
    background-color: #007bff;
    color: white;
    border: 1px solid #ccc;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: bold;
}

.btn-mas:hover,
.btn-menos:hover {
    background-color: #0056b3;
}


/* Ocultar el checkbox nativo */
.multiplicadores-grid input[type="checkbox"] {
    display: none;
}

/* Estilo base del label */
.multiplicador-label {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px 0;
    background: #f9f9f9;
    font-weight: 600;
}

/* Estado hover */
.multiplicador-label:hover {
    border-color: #888;
}

/* Cuando el checkbox está marcado */
.multiplicadores-grid input[type="checkbox"]:checked+.multiplicador-label {
    background: #00a7e1;
    color: white;
    border-color: #00a7e1;
}

/* Cuando el checkbox está deshabilitado */
.multiplicadores-grid input[type="checkbox"]:disabled+.multiplicador-label {
    opacity: 0.5;
    cursor: not-allowed;
}

#actualizar-presupuesto-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #ec7f00;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    ;
}

.botonEliWhaPDF.disabled {
    opacity: 0.5;
    /* se ve atenuado */
    pointer-events: none;
    /* bloquea clicks */
    cursor: not-allowed;
    /* cursor visual de inhabilitado */
}


.contenedor-header {
    display: flex;
    justify-content: space-between;
    /* coloca cada elemento en un extremo */
    align-items: center;
    /* centra verticalmente */
    margin-top: 10px;
    flex-wrap: wrap;
    /* permite que se acomoden en varias filas si no hay espacio */
}

.contenedor-header h4 {
    margin: 0;
}

.contenedor-header button {
    margin: 0;
}

/* Versión móvil */
@media (max-width: 768px) {
    .contenedor-header {
        flex-direction: column;
        /* se apilan */
        align-items: flex-start;
        /* alineados a la izquierda */
        gap: 10px;
        /* espacio entre elementos */
    }

    .contenedor-header button {
        align-self: flex-end;
        /* botón a la derecha */
    }
}

@media print {
    .mensaje-stock {
        background: none !important;
        background-color: transparent !important;
        color: black !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
}

.montoNotaCredito {
    white-space: nowrap;
    display: inline-block !important;
    align-items: right;
    /* centra verticalmente */
    gap: 8px;
    /* espacio entre el texto y el input */
    width: 295px !important;
}

.btn-limpiar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #ccc;
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-limpiar:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-reiniciar:hover {
    background-color: #d32f2f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-limpiar img {
    width: 20px;
    height: 20px;
}
.btn-reiniciar img {
    width: 30px;
    height: 30px;    
}
.btn-reiniciar{
    padding: 10px 20px !important;
    border: 2px solid #ccc !important;
}



.botonEliWhaPDF {
    background: none;
    border: none;
    padding: 5px;
    /* un poco de área clickeable extra */
    margin: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    /* optimiza interacción táctil */
}

.botonEliWhaPDF img {
    width: 40px;
    /* tamaño base */
    height: auto;
    display: block;
}

.botonEliWhaPDF:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    /* Elimina el fondo gris por defecto */
    background-color: transparent !important;
    /* Elimina bordes o sombras que el navegador añade */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    /* Asegura que la imagen interna no se desplace */
    padding: 0; 
}

/* 🔹 Ajuste automático en pantallas móviles */
@media (max-width: 768px) {
    .botonEliWhaPDF img {
        width: 50px;
        /* más grandes en móvil para ser más táctiles */
    }
}

.form-row.full {
    display: flex;
    gap: 12px;
    /* separación automática entre los botones */
    flex-wrap: wrap;
    /* para que si no hay espacio se bajen */
}

.btn-actualizar-contacto {
    background: #27ae60;
    /* verde */
    color: #fff;
    border: 2px solid #ccc;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-actualizar-contacto:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.btn-actualizar-contacto:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* --- Botón Crear Contacto --- */
.btn-crear-contacto {
    background-color: #1a73e8;
    /* Azul Google */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

/* Ícono (el +) */
.btn-crear-contacto::before {
    content: "➕";
    font-size: 18px;
}

/* Hover */
.btn-crear-contacto:hover {
    background-color: #0c59cf;
    /* Azul más oscuro */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Estado activo (cuando se presiona) */
.btn-crear-contacto:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Deshabilitado (por si en algún momento lo inhabilitas) */
.btn-crear-contacto:disabled {
    background-color: #b3d1ff;
    color: #f0f0f0;
    cursor: not-allowed;
}

/* Rehabilitar flechas en inputs numéricos */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: inner-spin-button;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    /* evita estilo raro en Firefox */
}

.opcionesPrecios.activo {
    background-color: #00a7e1;
    color: #ffffff !important;
    border-radius: 12px;

}

.opcionesPrecios.activo .spanTitulo,
.opcionesPrecios.activo .spanPrecio {
    color: #ffffff !important;
}

.btn-abrir-pdf-movil {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: #00a7e1;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
}

#bloquePresupuesto {
    transition: max-height 0.3s ease;
}

.bloque-colapsado {
    display: none !important;
}


#vaciar-tabla-btn {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#vaciar-tabla-btn img {
    transition: transform 0.2s ease, filter 0.2s ease;
}

#vaciar-tabla-btn:hover img {
    transform: scale(1.1) rotate(-5deg);
    filter: brightness(1.1) saturate(1.2);
}

#vaciar-tabla-btn:active img {
    transform: scale(0.95);
}

.pdf-preview-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
}

#cerrar-preview-pdf {
    background: #1e88e5;
    border: 1px solid #052644;
    color: #fafafa;
    font-size: 18px;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#cerrar-preview-pdf:hover {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 6px;
    width: 400px;
    max-width: 90%;
    position: relative;
}

/* Contenedor principal de tasas */
.contenedor-tasa-incremento {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
}

/* Contenedor izquierdo - layout horizontal de tarjetas */
.contenedor-tasa-incremento .contenedor-interno.izquierdo {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 1 100% !important; /* Ocupa todo el ancho disponible */
    gap: 10px;
    min-width: 280px;
    max-width: none !important;
    flex-wrap: nowrap !important; /* Mantener en una sola fila */
    overflow-x: auto; /* Scroll horizontal si es necesario */
}

/* Cada tarjeta de tasa dentro del contenedor izquierdo */
.contenedor-tasa-incremento .contenedor-interno.izquierdo > div {
    flex: 1 1 0 !important; /* Distribuir espacio equitativamente */
    min-width: 120px !important;
    max-width: none !important;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    white-space: normal;
}

/* El último div (botón admin) debe estar separado */
.contenedor-tasa-incremento > div:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 150px;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .contenedor-tasa-incremento {
        flex-direction: column !important;
    }
    
    .contenedor-tasa-incremento .contenedor-interno.izquierdo {
        flex-direction: column !important;
        flex: 1 1 100% !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }

    .contenedor-tasa-incremento .contenedor-interno.izquierdo > div {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .contenedor-tasa-incremento > div:last-child {
        justify-content: flex-start !important;
        width: 100%;
    }
}

/* Ocultar el checkbox real */
.exento-checkbox-input {
    display: none !important;
}

/* Estilo base (reutilizando tu clase multiplicador-label) */
.exento-control .multiplicador-label {
    cursor: pointer;
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    user-select: none;
    margin-top: 4px;
}

/* Efecto cuando está seleccionado (Checked) */
.exento-checkbox-input:checked + .multiplicador-label {
    background-color: #00a7e1; /* Color primario de WP o el que uses */
    color: white;
    border-color: #005a87;
    font-weight: bold;
}

#refrescar-contactos {
    /*display: none;*/
    position: relative;
    z-index: 9999; /* Por encima del dropdown de Select2 */
    margin-bottom: 5px;
}

.select2-dropdown {
    overflow: visible !important;
}

.iti {
    width: 70% !important; /* Ajusta según el espacio de tu label */
    display: inline-block !important;
    vertical-align: middle;
}

/* El Input */
#telefono {
    width: 100% !important;
    height: 45px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* IMPORTANTE: No pongas un padding-left fijo aquí, 
    la librería lo calculará o lo manejaremos en el JS */
    box-sizing: border-box;
}

/* Asegurar que el prefijo (+58) y la bandera no tapen el texto */
.iti__selected-container {
    padding-right: 8px; /* Espacio entre el código y el inicio del texto */
}

/* Si el código de país se ve muy grande, ajustamos su fuente */
.iti__selected-dial-code {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

/* Estilo para el label (opcional, para alinear) */
.form-row label {
    display: inline-block;
    width: 25%; /* Ajusta para que sume con el .iti */
    vertical-align: middle;
}

/* Lista de países */
.iti__country-list {
    width: 300px;
    max-height: 300px;
    z-index: 9999;
}

.botonEliWhaPDF:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}