/* Estilos modernos con efecto 3D y bordes redondeados para botones de contratos */

/* --- NUEVOS ESTILOS PARA EL PANEL FLOTANTE --- */

.floatingTabContainer {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(100%);
    z-index: 1050;
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floatingTabContainer.open {
    transform: translateY(-50%) translateX(0);
}

.floatingTabButton {
    position: absolute;
    left: -38px;
    height: 112px;
    width: 38px;
    background: linear-gradient(145deg, #f57c00 0%, #ff9800 100%); /* Naranja llamativo */
    border: 2px solid #e65100;
    border-right: none;
    color: white;
    border-radius: 12px 0 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.floatingTabButton:hover {
    background: linear-gradient(145deg, #fb8c00 0%, #ffa726 100%);
    width: 43px;
    left: -43px;
    box-shadow: -6px 0px 16px rgba(0,0,0,0.4);
}

.tabText {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 0.7rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.tabIcon {
    margin-top: 4px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
}

.floatingPanel {
    background: linear-gradient(180deg, #2a2e33 0%, #1f2226 100%);
    width: 272px;
    height: 85vh;
    max-height: 900px;
    padding: 1.2rem;
    border-radius: 16px 0 0 16px;
    box-shadow: -8px 0px 24px rgba(0,0,0,0.5);
    border: 1px solid #4a5056;
    border-right: none;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar para el panel interior */
.floatingPanel div::-webkit-scrollbar {
    width: 6px;
}
.floatingPanel div::-webkit-scrollbar-track {
    background: #1f2226;
    border-radius: 4px;
}
.floatingPanel div::-webkit-scrollbar-thumb {
    background: #4a5056;
    border-radius: 4px;
}
.floatingPanel div::-webkit-scrollbar-thumb:hover {
    background: #6a6d62;
}

/* --- ESTILOS DE LOS BOTONES --- */

/* Estilo base común para todos los botones */
.btnTramitar,
.btnGenerar,
.btnGenerarAlt,
.btnCupsElectrico,
.btnCupsGas,
.btnEnviar,
.btnVolver {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #6a6d62 0%, #575a4f 50%, #4e5147 100%);
    border: 1px solid #575a4f;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Botón principal - Tramitar Contrato */
.btnTramitar {
    background: linear-gradient(145deg, #4caf50 0%, #388e3c 100%);
    border-color: #2e7d32;
    font-size: 0.9rem;
    justify-content: center;
    text-align: center;
    padding: 0.8rem;
    box-shadow:
        0 5px 10px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btnVolver {
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, #d32f2f 0%, #c62828 100%);
    border-color: #b71c1c;
}

.btnTramitar:hover,
.btnGenerar:hover,
.btnGenerarAlt:hover,
.btnCupsElectrico:hover,
.btnCupsGas:hover,
.btnEnviar:hover,
.btnVolver:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.btnGenerar:hover,
.btnGenerarAlt:hover,
.btnCupsElectrico:hover,
.btnCupsGas:hover,
.btnEnviar:hover {
    background: linear-gradient(145deg, #787c6e 0%, #646759 50%, #5a5d52 100%);
    border-color: #646759;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btnTramitar:hover {
    background: linear-gradient(145deg, #66bb6a 0%, #43a047 100%);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.4);
}

.btnVolver:hover {
    background: linear-gradient(145deg, #ef5350 0%, #e53935 100%);
    box-shadow: 0 8px 16px rgba(211, 47, 47, 0.3);
}

.btnTramitar:active,
.btnGenerar:active,
.btnGenerarAlt:active,
.btnCupsElectrico:active,
.btnCupsGas:active,
.btnEnviar:active,
.btnVolver:active {
    transform: translateY(1px);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Efecto de brillo sutil en hover */
.btnTramitar::before,
.btnGenerar::before,
.btnGenerarAlt::before,
.btnCupsElectrico::before,
.btnCupsGas::before,
.btnEnviar::before,
.btnVolver::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.btnTramitar:hover::before,
.btnGenerar:hover::before,
.btnGenerarAlt:hover::before,
.btnCupsElectrico:hover::before,
.btnCupsGas:hover::before,
.btnEnviar:hover::before,
.btnVolver:hover::before {
    left: 100%;
}

/* Cursor pointer */
.btnTramitar,
.btnGenerar,
.btnGenerarAlt,
.btnCupsElectrico,
.btnCupsGas,
.btnEnviar,
.btnVolver {
    cursor: pointer;
    user-select: none;
}

/* Deshabilitado */
.btnTramitar:disabled,
.btnGenerar:disabled,
.btnGenerarAlt:disabled,
.btnCupsElectrico:disabled,
.btnCupsGas:disabled,
.btnEnviar:disabled,
.btnVolver:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}
