
.btn-solicitar-soporte {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid #7384E6; /* Color fucsia/morado del borde */
    border-radius: 30px; /* Bordes redondeados */
    color: #387BB0; /* Color del texto */
    text-decoration: none;
    font-weight: 600; /* Texto en negrita */
    font-family: sans-serif; /* Puedes cambiar la fuente si quieres */
    transition: all 0.3s ease; /* Transición suave para el hover */
    background-color: transparent; /* Fondo transparente */
}

.btn-solicitar-soporte .icon-ticket {
    margin-right: 8px; /* Espacio entre el icono y el texto */
    display: flex;
    align-items: center;
}

/* Efecto Hover (opcional, para que cambie al pasar el mouse) */
.btn-solicitar-soporte:hover {
    background-color: #3B11BA;
    color: white;
}

/* Ajustar el tamaño de la imagen PNG */
.btn-solicitar-soporte .icon-ticket img {
    width: 30px;       /* Ajusta este tamaño si lo quieres más grande/chico */
    height: auto;      /* Mantiene la proporción */
    display: block;
    object-fit: contain;
}

/* TRUCO PRO: Volver el icono blanco al pasar el mouse */
/* (Esto funciona invirtiendo los colores con un filtro) */
.btn-solicitar-soporte:hover .icon-ticket img {
    filter: brightness(0) invert(1);
}

/* estilos del contrato por credito de servicio */

.contract-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 0 auto;
}

.contract-title {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: #111;
    text-transform: uppercase;
}

/* Caja con Scroll para el texto legal */
.contract-scroll-box {
    height: 300px; /* Altura fija */
    overflow-y: scroll; /* Barra de desplazamiento */
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    padding: 20px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
    text-align: justify;
}

.contract-scroll-box h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #000;
    font-size: 14px;
}

/* Checkbox de Aceptación */
.acceptance-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #eff6ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.acceptance-group input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
    cursor: pointer;
}

.acceptance-label {
    font-size: 13px;
    color: #1e3a8a;
    cursor: pointer;
}

/* Botón de Firmar */
/* --- Botón de Firmar (Estado DESACTIVADO / APAGADO) --- */
.btn-sign-start {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: not-allowed; /* Muestra icono de prohibido */
    transition: all 0.3s;
    pointer-events: none; /* No deja dar clic */
    
    /* 👇 AQUÍ CAMBIAS EL COLOR DESACTIVADO 👇 */
    background-color: #d1d5db; /* Gris claro */
    color: #6b7280;            /* Texto gris oscuro */
    opacity: 1;                /* Importante: Dejar en 1 para ver el color real */
}

/* --- Botón de Firmar (Estado ACTIVADO / LISTO) --- */
.btn-sign-start.enabled {
    /* 👇 AQUÍ CAMBIAS EL COLOR ACTIVADO 👇 */
    background-color: #4f46e5; /* El morado original */
    color: #fff;               /* Texto blanco */
    
    cursor: pointer;
    pointer-events: auto;
}

.btn-sign-start.enabled:hover {
    background-color: #4338ca; /* Morado más oscuro al pasar el mouse */
}

/* === MODAL DE FIRMA === */
/* --- Fondo Oscuro (Overlay) --- */
.signature-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 99999;
    display: none; justify-content: center; align-items: center;
    
    /* Animación del fondo */
    opacity: 0; 
    transition: opacity 0.5s ease; 
    backdrop-filter: blur(4px); /* Desenfoque elegante */
}

/* Estado activo del fondo */
.signature-modal-overlay.active { 
    display: flex; 
    opacity: 1; 
}

/* --- Tarjeta del Modal (La hoja de firma) --- */
.signature-card {
    background: #fff; width: 95%; max-width: 450px;
    padding: 25px; border-radius: 16px;
    display: flex; flex-direction: column; gap: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* ANIMACIÓN DE ENTRADA */
    opacity: 0;
    /* Empieza un poco más abajo y pequeña */
    transform: translateY(30px) scale(0.95);
    
    /* Curva suave para que no se sienta golpeado */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Estado activo de la tarjeta */
.signature-modal-overlay.active .signature-card { 
    opacity: 1;
    transform: translateY(0) scale(1); 
}

.sig-title { font-size: 18px; font-weight: 700; text-align: center; margin: 0; }
.sig-desc { font-size: 12px; text-align: center; color: #666; margin-bottom: 10px; }

.sig-input {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px;
    font-size: 14px; box-sizing: border-box;
}

/* El Lienzo para dibujar */
.signature-pad-wrapper {
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #fff;
    position: relative;
    height: 200px;
    width: 100%;
    touch-action: none; /* Importante para móviles */
}

canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.sig-actions {
    display: flex; gap: 10px;
}
.btn-sig {
    flex: 1; padding: 12px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer;
}
.btn-sig-clear { background: #fee2e2; color: #dc2626; }
.btn-sig-save { background: #22c55e; color: #fff; }

.close-sig-modal {
    position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; color: #fff;
}


