/* Estilos generales del cotizador */



.cotizador-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #F6F2FF;
}

.cotizador-bloque {
    background: #F6F2FF;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cotizador-bloque h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.form-group small {
    color: #666;
    font-style: italic;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* Estilos para los items de producto y nota */
.producto-item,
.nota-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #eee;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.producto-item:hover,
.nota-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.producto-item .form-group,
.nota-item .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Mejorar el campo concepto */
.concepto {
    min-width: 200px;
    position: relative;
}

.eliminar-producto,
.eliminar-nota {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    margin-top: 25px;
}

.eliminar-producto:hover,
.eliminar-nota:hover {
    background: #c82333;
}

.btn-principal,
.btn-secundario {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-principal:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secundario {
    background: #6c757d;
}

.btn-secundario:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Estilos para los totales */
.totales {
    max-width: 400px;
    margin-left: auto;
    background: white;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.total-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.total-final {
    font-weight: bold;
    font-size: 1.3em;
    border-bottom: none;
    border-top: 2px solid #007cba;
    color: #007cba;
    padding-top: 15px;
    margin-top: 5px;
}

.total-letra {
    text-align: center;
    font-style: italic;
    color: #555;
    padding: 20px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 15px;
    margin-top: 10px;
}

.total-letra span {
    font-weight: bold;
    color: #333;
}

/* Elimina o comenta estas secciones del CSS */
/*
.captcha-placeholder {
    padding: 30px;
    background: #f8f9fa;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    font-size: 16px;
}
*/

/* Y cualquier otro estilo relacionado con CAPTCHA */

/* Estilos para las sugerencias de productos */
.sugerencias-productos {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    top: 100%;
    left: 0;
    margin-top: 2px;
    display: none;
    max-width: 400px;
}

.sugerencia-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sugerencia-item:hover {
    background: #007cba;
    color: white;
}

.sugerencia-item:last-child {
    border-bottom: none;
}

/* Estilos para campos de solo lectura */
.costo {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: bold !important;
    cursor: not-allowed !important;
}

/* Estilos para el formulario de envío */
#enviar-cotizacion {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

#enviar-cotizacion:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .cotizador-container {
        padding: 10px;
    }
    
    .cotizador-bloque {
        padding: 15px;
    }
    
    .producto-item {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .producto-item .form-group {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    
    .concepto {
        min-width: 100%;
    }
    
    .eliminar-producto,
    .eliminar-nota {
        align-self: flex-end;
        position: absolute;
        top: 10px;
        right: 10px;
        margin-top: 0;
    }
    
    .nota-item {
        flex-direction: column;
    }
    
    .nota-item .form-group {
        width: 100%;
    }
    
    .totales {
        max-width: 100%;
        margin-left: 0;
    }
    
    .sugerencias-productos {
        max-width: 100%;
    }
    
    .btn-principal,
    .btn-secundario {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .cotizador-bloque h3 {
        font-size: 1.1em;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .total-item {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .total-final {
        font-size: 1.1em;
    }
    
    .total-letra {
        font-size: 13px;
        padding: 15px;
    }
}

/* Estados de carga */
.cotizador-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.cotizador-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejoras para accesibilidad */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.btn-principal:focus,
.btn-secundario:focus,
.eliminar-producto:focus,
.eliminar-nota:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Estilos para mensajes de estado */
.cotizador-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.cotizador-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cotizador-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para campos requeridos */
.form-group input:required,
.form-group textarea:required {
    border-left: 3px solid #007cba;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #7132FF;
    background-color: #f8f8f8;
}

/* Mejoras visuales para el campo de fecha */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Estilos para el campo de email múltiple */
input[type="email"][multiple] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray" viewBox="0 0 16 16"><path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555zM0 4.697v7.104l5.803-3.558L0 4.697zM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757zm3.436-.586L16 11.801V4.697l-5.803 3.546z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 35px;
}

/* Estilos para mensajes temporales */
.cotizador-mensaje-temporal {
    position: relative;
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.cotizador-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}




